Qualifiers to parameters
Where to Use?
Why to Use?
To reduce the number of parameters
Gives a qualifier to a parameter, like "minimum" of "observed"
To be able to give additional information to a parameter without creating lots of extra parameters, we introduced the feature of qualifiers. Qualifiers are used to define a unique time series, next to the locationId and parameterId. Examples are series where you want to derive the daily minimum, maximum and mean values of an observed series of water levels. The original series is a regular series with parameterId "H" and no qualifier, where the other series have the same parameterId "H", but qualifiers like "min", "mean" and "max".
Qualifiers are defined in the regionConfigFiles directory. When available on the file system, the name of the XML file is for example:
Qualifiers 1.00 default.xml
An example looks like:
Qualifiers can also be defined by referring to a csv file in the configuration. For that the <file> and <id> are required. By using %% can be referred to the content of columns in the csv file. So the next example below the columns "qualifierId" and "qualifierName" determine the id and name of all qualifiers present in the csv file. The columns can be used multiple times also in combination with other text as is done for the definition of the attribute "ExternalQualifierId" which will start with "LNG_KLAS_" for all qualifiers followed by the content in the "qualifierId" column. The <group> elements determines to which group of qualifiers a qualifier belongs, this is used to determine whether timeseries can be summed. Time series with different qualifiers of the same group can be summed.
Csv file "vissen_lengteklasse.csv" (located in MaplayerFiles config directory):
The most useful way is first to read all locations from the DBF into one locationSet, where all attributes are assigned.
See for example:
Qualifier Panel (since 2014.02)
The qualifier panel can be explicitly turned on or of in the Explorer.xml by the element <qualifierListSize> within <panelSizes> element. It is turned off when specifying 0 and turned on with a value above 0.
When <qualifierListSize> is not present the qualfier panel will be visible within FEWS when there are filters based on constraints that contain qualifiers configured such as in the example Filters.xml below.
From build 55796 the qualifier panel also works for filters based on a combination of timeSeriesSets and qualifierConstraints like specified below:
By selecting filter "Rain_Gauges" from example above the qualifiers panel will be visible because there are filters based on qualifier constraints defined, but it is empty because the selected filter is not based on qualifier constraints:
By selecting filter "Qualifiers" the qualifier panel will be filled with the qualifiers matching the constraint (they must also be avilable within the data viewer selection and within the data present at system time)
The title of the qualifier panel can be configured in Explorer.xml by <qualifierPanelHeader> (from 2015.02):
A qualifier tree can also be configured in Qualifiers.xml by defining a qualifierRootNode that contains other qualifier nodes that in their turn can be nested.
For qualifier nodes constraints can be defined to make a selection of which qualifiers it should contain. Qualifiers can match multiple sets of contraints which makes it possible for qualifiers to appear under multiple different nodes at the same time.
- the qualifier node "Alle taxa" will contain all qualifiers that have the attribute "Qualifier_TAXA".
- the qualifier node "ALGAE" will contain only qualifiers that have a text attribute "Type" equal to "MACFT" and a text attribute "Groep" equal to "ALGAE"
- the qualifier node "Macrofyten" does not have constraints itself but will contain only other qualifier nodes that have a constaint on qualifier attribute "Type" to be equal to "MACFT"
Qualifier nodes for which there is no data will not be shown so in a FEWS system with only data for time series with qualifiers that have a "Groep" attribute of "ANGIO", "Type" attribute of "MACFT" and a "Qualifier_TAXA" attribute present the tree configured above would look like:
Qualifier nodes that contain only 1 qualifier for which there is data will also not be shown since it is not distinguishable.
For instance the qualifier nodes "Analyse code" and "Compartiment" from the configuration above will not be shown in the tree because all data just has "PTB" and "OW" (shown as "Opp. Water") as qualifiers:
Change qualifier labels
When using the (right click) context menu in the qualifier tree it is possible to change the labels of the qualifiers by making a selection of the attributes.
A label picker window will pop up where all attributes of the qualifiers can be selected. Multiple can be selected in any order, if a qualifier does not have that attribute defined it is skipped, when multiple a chosen all beyond the first will be surrounded by brackets. The qualifiers will be order alphabetically on their complete label.
After picking new labels the qualifier tree has to be rebuild and it will reopen the tree at the last part of the tree that was clicked.
Before the label all qualifiers have a checkbox which indicates whether they should be taken into account for time series selection. In the next example for each selected qualifier one time series is found so they wil appear in the time series display.
Selecting multiple qualifiers within a groups results in selecting more time series:
But selecting qualifiers over different groups results in selecting less time series:
The icon of a qualifier node indicates what kind of time series selection should be made. The folder icon as shown in the picture above means show all time series separate.
The icon can be clicked to change to a summation icon which mean a total should be calculated of the selected time series with qualifiers belonging to the same group: