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
Calling decode_cf causes variables whose data is dask arrays to be wrapped in two layers of abstractions: DaskIndexingAdapter and LazilyIndexedArray. In the example above
This is especially problematic if we want to concatenate several such datasets together with dask. Chunking the decoded dataset creates a nested dask-within-dask array which is sure to cause undesirable behavior down the line
If we call decode_cf on a dataset made of dask arrays, it should preserve the chunks of the original dask arrays. Hopefully this can be addressed by #1752.
Code Sample, a copy-pastable example if possible
Problem description
Calling
decode_cf
causes variables whose data is dask arrays to be wrapped in two layers of abstractions:DaskIndexingAdapter
andLazilyIndexedArray
. In the example aboveAt least part of the problem comes from this line:
https://github.com/pydata/xarray/blob/master/xarray/conventions.py#L1045
This is especially problematic if we want to concatenate several such datasets together with dask. Chunking the decoded dataset creates a nested dask-within-dask array which is sure to cause undesirable behavior down the line
Expected Output
If we call
decode_cf
on a dataset made of dask arrays, it should preserve the chunks of the original dask arrays. Hopefully this can be addressed by #1752.Output of
xr.show_versions()
xarray: 0.10.0-52-gd8842a6
pandas: 0.20.3
numpy: 1.13.1
scipy: 0.19.1
netCDF4: 1.2.9
h5netcdf: 0.4.1
Nio: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.16.0
matplotlib: 2.1.0
cartopy: 0.15.1
seaborn: 0.8.1
setuptools: 36.3.0
pip: 9.0.1
conda: None
pytest: 3.2.1
IPython: 6.1.0
sphinx: 1.6.5
The text was updated successfully, but these errors were encountered: