New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rolling mean of dask array conflicting sizes for data and coordinate in rolling operation #2113
Comments
Probably isn't a good first issue but I wouldn't like to spend some time on this. Welcome to suggest places to look and things to try. |
@raybellwaves thanks for the bug report! Here's a slightly simplified version that shows the issue for dask:
The traceback is probably the place to start looking into this. I like to drop into a Python debugger (type |
I realized there with an issue before that in without
The culprit lies in a dask function xarray/xarray/core/dask_array_ops.py Line 24 in 6d8ac11
Not sure if this is an issue with the function or the way the data is going into the function. For the Line 308 in 6d8ac11
is slicing the data. |
EDIT |
Code Sample, a copy-pastable example if possible
Problem description
Initially discussed on SO: https://stackoverflow.com/questions/50265586/xarray-rolling-mean-of-dask-array-conflicting-sizes-for-data-and-coordinate-in
The rolling operation gives a
ValueError: conflicting sizes for dimension 'dayofyear': length 351 on the data but length 366 on coordinate 'dayofyear'
The length of 351 in the data is created in the rolling operation.Here's the full traceback:
Expected Output
The rolling operation would work on the dask array as it would on the dataarray e.g.
Output of
xr.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Darwin
OS-release: 17.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
xarray: 0.10.3
pandas: 0.22.0
numpy: 1.14.2
scipy: 1.0.1
netCDF4: 1.3.1
h5netcdf: 0.5.1
h5py: 2.7.1
Nio: None
zarr: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.17.4
distributed: 1.21.8
matplotlib: 2.2.2
cartopy: 0.16.0
seaborn: None
setuptools: 39.1.0
pip: 9.0.3
conda: None
pytest: None
IPython: 6.3.1
sphinx: None
The text was updated successfully, but these errors were encountered: