Skip to content

[PI] Quality Flag Handling #3358

@abooton

Description

@abooton

Provision of support for "Quality Flags"

Required work
The relevant PRs to implement support for quality flags are below:


Description:

Quality flags can be encoded in CF compliant data by using the "ancillary variable" and with "flag" values. This convention allows for a more explicit descriptions of the "quality flags" that one would like to associate with the data. (See snipped below for example)

According to the CF conventions: http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#ancillary-data

However, at present, there are a couple of small issues when creating a "flag" auxiliary coordinate, as the current implementation does allow the issues below to be correctly handled:

  1. The status_flag standard name should be recognised as so if the cube name is also a standard_name. (At present it come in as a long name.) See Appendix C, Standard Name Modifiers.
  2. The ancillary_variable should be a local attribute, as it is directly associated the specific data. (i.e. like a latitude coord would be local to the data).
  3. status_flags should not have units (they are described instead). See Appendix C, Standard Name Modifiers.

""
image

The following code was used to generate the flag coordinate, the meta data for which is shown above:

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions