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
Thanks for opening your first issue here at xarray! Be sure to follow the issue template!
If you have an idea for a solution, we would really welcome a Pull Request with proposed changes.
See the Contributing Guide for more.
It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better.
Thank you!
@whatnick Thanks for the report. It would help here if you could provide an MCVE.
kmuehlbauer
added
needs mcve
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports
and removed
needs triage
Issue that has not been reviewed by xarray team member
labels
Nov 14, 2024
What happened?
Data was loaded into Xarray via OpenDataCube
dc.load
method. This Xarray was persisted to Zarr usingWhen this zarr is loaded back using
The round tripped dataset has scaling applied with encodings saved in bands e.g.
ds_z.red.encoding
asThe values returned do not have the scaling auto-applied.
What did you expect to happen?
Scaling to DataArrays is auto-applied when rounding tripping to-from Zarr via Xarray.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
xarray: 2024.10.0
pandas: 2.2.3
numpy: 1.26.4
scipy: 1.14.1
netCDF4: 1.7.2
pydap: 3.5
h5netcdf: 1.4.0
h5py: 3.12.1
zarr: 2.18.3
cftime: 1.6.4.post1
nc_time_axis: 1.4.1
iris: None
bottleneck: 1.4.2
dask: 2024.7.1
distributed: 2024.7.1
matplotlib: 3.8.4
cartopy: 0.24.1
seaborn: 0.13.2
numbagg: 0.8.2
fsspec: 2024.10.0
cupy: None
pint: 0.24.4
sparse: 0.15.4
flox: 0.9.14
numpy_groupies: 0.11.2
setuptools: 75.3.0
pip: 24.3.1
conda: None
pytest: 8.3.3
mypy: None
IPython: 8.29.0
sphinx: None
The text was updated successfully, but these errors were encountered: