Restrict number of displayed variables from a server

Issue #520 new
Jens-Uwe Grooß created an issue

Due to the increasing number of variables to be displayed (“layers”), it becomes more and more difficult to find the desired variable in the list.

Typically people want to look always at the same set of variables. Therefore, it would be nice to have the opportunity to restrict the variable list to only those that one would lie to see. It is not straight forward, how this could be done. One way may be to define it by a list of regex expressions like

layer_filter = {'http://myserver.com':[
                 'CLaMS*_pl',
         'DYN Thermal Tropopause',
         'DYN Polar Vortex*'
         ],
        'http://myotherserver.com/msswms':[
        '*Cloud*'
        ]}

For each chosen server, only the layers that match one of the corresponding regex expressions would be chosen to select. The dict. layer_filter could be either defined in the config file and/or (even better) in some input box in the user interface. A saved filter array shold be possible to save and restore. This is just one idea, how this could be solved, maybe there are other better ways to realize that.

Comments (6)

  1. Reimar Bauer

    the regex may be one solution, but somehow I dislike this. I don't think regex ist the best soltution as we have users they don't program.

    Somehow my feeling is we should have some view masks which can be loaded for some usecases. And that we should control those by mscolab too.

    We likly won't want different kind of regex failures in users json file while we want to talk on some layers they never can see.

  2. Log in to comment