On Fri, Aug 3, 2018 at 12:54 PM, Dave Allured <[email protected]> wrote:
> @DocOtak <https://github.com/DocOtak>, "Abstractions are good." How does > xarray handle *coordinates* and *flag_values* attributes? > I'm pretty sure xarray does something "smart" with coordinates, but not with flag_values. It is not intended to comply with teh CF data model. iris may handle flag_values for you -- though this mentions in the docs: When reading and writing NetCDF data, the CF ‘flag’ attributes, “flag_masks”, “flag_meanings” and “flag_values” are now preserved through Iris load and save. makes me think no -- other than preserving them. https://scitools.org.uk/iris/docs/latest/ However, that's not really the point -- we should expect folks to be able to work reasonably with non-cf, but netcdf-aware tools. And a given programing environment may not have distinct CHAR and String data types, so they should be treated the same in CF. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected]
