-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TimeResampler("ME") can't deal with missing months #9360
Labels
Comments
phofl
added
bug
needs triage
Issue that has not been reviewed by xarray team member
labels
Aug 14, 2024
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Aug 14, 2024
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Aug 14, 2024
3 tasks
dcherian
added
topic-chunked-arrays
Managing different chunked backends, e.g. dask
and removed
needs triage
Issue that has not been reviewed by xarray team member
labels
Aug 14, 2024
Fixed in #9364 |
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Oct 20, 2024
3 tasks
dcherian
added a commit
that referenced
this issue
Oct 21, 2024
* Fix multiple grouping with missing groups Closes #9360 * Small repr improvement * Small optimization in mask * Add whats-new * fix doctests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
This is a little odd, if I rechunk with
TimeResampler("ME")
that only has January-March, it introduces unknown chunks causing Dask to raise an error.What did you expect to happen?
Just calculate the chunks for January - March and ignore the missing months
cc @dcherian is this an expected limitation?
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
xarray tries to change the time dimension chunks from
to
Environment
INSTALLED VERSIONS
commit: None
python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:34:54) [Clang 16.0.6 ]
python-bits: 64
OS: Darwin
OS-release: 23.4.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: None
LOCALE: (None, 'UTF-8')
libhdf5: 1.14.3
libnetcdf: None
xarray: 2024.7.0
pandas: 2.2.2
numpy: 1.26.4
scipy: 1.14.0
netCDF4: None
pydap: None
h5netcdf: None
h5py: 3.11.0
zarr: 2.18.2
cftime: None
nc_time_axis: None
iris: None
bottleneck: None
dask: 2024.8.0+14.g60f2c1a8e.dirty
distributed: 2024.8.0+6.gfd92ab83
matplotlib: 3.9.1
cartopy: None
seaborn: None
numbagg: None
fsspec: 2024.6.1
cupy: None
pint: None
sparse: 0.15.4
flox: 0.9.9
numpy_groupies: 0.11.2
setuptools: 71.0.4
pip: 24.0
conda: None
pytest: 8.3.1
mypy: None
IPython: 8.26.0
sphinx: None
None
The text was updated successfully, but these errors were encountered: