-
Notifications
You must be signed in to change notification settings - Fork 35
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
regrid_dataset broken with xarray=0.16.1 #36
Comments
Is anyone working on trying to pin the xarray version to <=1.15? Just wondering since I spent a few hours debugging this exact issue. 😄 |
Just ran into this same issue as described above. I can also confirm that downgrading to 0.16.0 fixes the issue. Xarray=0.16.1 did have a fair bit of churn around |
cc @chiaral |
@kmuehlbauer probably knows whats going wrong. |
@dcherian Thanks for the ping. The error looks familiar. I'll have to look inside to be sure. Coming back the next day. |
xESMF is not required to reproduce. So this is an upstream issue: import xarray as xr
ds = xr.tutorial.open_dataset('air_temperature').chunk({'time':1})
ds['foo'] = ds.air # second field required
def func(da):
return da[:, 1:4, 1:7]
xr.apply_ufunc(
func,
ds,
dask="parallelized",
input_core_dims=[["lon", "lat"]],
output_core_dims=[["lat_new", "lon_new"]],
output_sizes={"lat_new": 3, "lon_new": 6},
) This most likely happens because |
Indeed, this is a bug upstream. A bit of background:
I'll open a PR upstream to fix this. |
First off, thanks everyone for keeping this great package going!
Unfortunately, regridding of chunked/dask datasets seems to have broken with the latest 0.16.1 xarray release, maybe related to #4060?
Minimal Example
Fails with:
Regridding the tutorial dataset with single field
air
works fine, but adding a second variable raises this error with dimension names.The text was updated successfully, but these errors were encountered: