# MI - Fimex: quality-extraction Configuration

# quality-extraction Configuration

Warning:
  The quality-extraction is still in a very early stage of development. The configuration and the outcome is very likely to change in further developments. Any feedback is strongly welcome.

In cases where the data should be extracted if certain conditions (qualities) apply, i.e. the status-flag indicates a properly working instrument, or the sea-surface-temperature is above 300K, the MetNoFimex::CDMQualityExtractor allows to add these rules. The cdmQualityConfig.xml file as shown above gives an example of such an configuration.

- The variable "bla" will only be set, if "blub" has integer-values between 1 and 6.
- The variable "air_temperature" will only be extracted for an "altitude" above 1000. The value 1000 is the actual data value in the variable "altitude" without any scaling or unit-conversion applied.

The following use-values can be selected:

- `all` select all valid values (within valid_max, valid_min or valid_range, without _FillValue)
- `highest` the highest numerical value found in the data-slice which is valid
- `lowest` the lowest numerical value fond in the data-slice which is valid
- `max:xxx.x` all valid-values below or equal xxx.x
- `min:xxx.x` all valid values above or equal xxx.x

All values which do not match the quality-criteria will be set to the _FillValue of the variable.