-
Notifications
You must be signed in to change notification settings - Fork 296
Closed
Milestone
Description
Part of #3358
According to CF, flags contain flag_values
, flag_masks
and flag_meanings
attributes.
This ticket is to check whether flags require any special handling to ensure that they are correctly loaded/saved.
Additional, 2019-12-12
(from @pp-mo)
Following the "CF-metadata" email list, it seems to me that some of the expected forms and vocabulary usages for flags still rather fluid + changing,
That is, maybe despite statements already accepted in the cf 1.7 document
See cf-convention/cf-conventions#216 in particular,
which is also the issue referenced by this comment from @stephenworsley below
Acceptance Criteria
- Decide criteria for identifying a flag variable which should be unitless (eg. standard name, standard name modifier)
- When loading such a flag variable, the units in iris should be "no_unit" (see [FB] [PI-3474] (WIP) Ensure flags load/save without units #3613)
- Loading then saving should result in a flag variable without units (see [PI] Aligning save behaviour of cube with units "unknown" and "no-unit" #3394)
- Added tests for loading a NetCDF file with a flag variable (see [FB] [PI-3474] (WIP) Ensure flags load/save without units #3613)
- Added tests for saving a cube with a flag Ancillary Variable to NetCDF file (see [FB] [PI-3474] Add tests for the loading and saving of ancillary variables #3799)