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 recent release of xarray (v2024.03.0) implemented a more CF conform interpretation of the scale_factor and offset parameters (pydata/xarray#2304). Now the dtype of scale_factor and offset influence the returned dtype.
Some of the tests are impacted by this, in particular those that rely on the air_temperature xarray tutorial dataset:
short air(time=2920, lat=25, lon=53);
:long_name = "4xDaily Air temperature at sigma level 995";
:units = "degK";
...
:actual_range = 185.16f, 322.1f; // float
:scale_factor = 0.01; // double
Because the scale_factor is double, the returned value is now float64, while previously has been float32.
The text was updated successfully, but these errors were encountered:
The recent release of xarray (v2024.03.0) implemented a more CF conform interpretation of the
scale_factor
andoffset
parameters (pydata/xarray#2304). Now the dtype ofscale_factor
andoffset
influence the returned dtype.Some of the tests are impacted by this, in particular those that rely on the
air_temperature
xarray tutorial dataset:Because the
scale_factor
is double, the returned value is now float64, while previously has been float32.The text was updated successfully, but these errors were encountered: