-
Notifications
You must be signed in to change notification settings - Fork 59
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
sdba - Broadcasting with two new coordinates of differing dimensions fails #449
Comments
xarray's interp doesn't understand multidimensionnal interpolation when the new coordinates have differing set of coords, so I tried to broadcast all arrays of the Kinda stuck on this. A way would be to call a |
Is there an open issue about this ? |
Not that I can found. |
I suggest you design a short, self-contained example illustrating the issue and open an issue with it. |
I didn't realize up to now, but it is worth noting that xarray raises a "NotImplementedError". It's not a real bug. |
Corresponds to issue pydata/xarray#4058. |
Description
In
QuantileDeltaMapping.adjust
with grouping (here 'time.month') there is a broadcasting operation that fails whensim
andhist
have additional dimensions (other thenquantiles
andtime
).In fact, calls of
xclim.sdba.utils.broadcast
fails when grouping is used, interp is not 'nearest' and bothgrouped
and the coordinate insel
have dimensions that are not trageted by the broadcasting operation.What I Did
Where,
ref
has one spatial dim + 'time' andhist
andsim
have the same spatial dim, 'time' and an additional dim, in my caserealization
.What I Received
The traceback is quite long, but it all comes down to
xr.interp
.The text was updated successfully, but these errors were encountered: