You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NetCDF data models allows storing attributes of dimensions.
This is helpful when it comes to store CF metadata of axis dimensions, e.g. unit and standard_name of axis air pressure. However, such attributes are currently ignored by open_dataset and savedataset:
using YAXArrays
using NetCDF
using Downloads
cf_example_file = Downloads.download("https://www.unidata.ucar.edu/software/netcdf/examples/sresa1b_ncar_ccsm3-example.nc", "example.nc")
ds_nc = NetCDF.open(cf_example_file)
ds_yax =open_dataset(cf_example_file)
ds_yax.plev # no metadata# plev [100000.0, 92500.0, …, 2000.0, 1000.0]
ds_nc["plev"].atts # metadata# Dict{Any, Any} with 5 entries:# "units" => "Pa"# "long_name" => "pressure"# "axis" => "Z"# "standard_name" => "air_pressure"# "positive" => "down"
This could be fixed by utilising the metadata field of the Lookup of the Dimension:
The NetCDF data models allows storing attributes of dimensions.
This is helpful when it comes to store CF metadata of axis dimensions, e.g. unit and standard_name of axis air pressure. However, such attributes are currently ignored by
open_dataset
andsavedataset
:This could be fixed by utilising the
metadata
field of theLookup
of theDimension
:The text was updated successfully, but these errors were encountered: