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
When calling to_xarray() on GRIBReader objects in earthkit-data, somnetimes the data units are lost. This seems to happen when there is a single variable in the GRIB input - but when there are multiple variables, the units are correctly carried into the xarray object.
If you look at the global and variable attributes of ds, there are no units in either. However, if we slightly tweak the above request to as for two variables as below, then the two variables in ds both have their correct units in the variable attributes.
What happened?
When calling
to_xarray()
onGRIBReader
objects in earthkit-data, somnetimes the data units are lost. This seems to happen when there is a single variable in the GRIB input - but when there are multiple variables, the units are correctly carried into the xarray object.What are the steps to reproduce the bug?
If you look at the global and variable attributes of
ds
, there are no units in either. However, if we slightly tweak the above request to as for two variables as below, then the two variables inds
both have their correct units in the variable attributes.Version
0.11.4
Platform (OS and architecture)
MacOS
Relevant log output
No response
Accompanying data
No response
Organisation
ECMWF
The text was updated successfully, but these errors were encountered: