Closed xxyxxyxyx1 closed 1 week ago
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
We need help with this: https://github.com/pydata/xarray/issues/7704
There is a check that only allows "vectorizeable interpolators" for one-dimensional interpolation,
In that past these interpolators required 1D input. I think this has changed recently and we have not adapted.
Are you able to help?
Thank you for responding. I'm sorry to say that I'm probably too amateur to help at this time. I haven't used python much beyond making figures, and I have not used git. But I plan to learn more when I've got bandwidth.
If someone else is able to address this soon, they should. If the problem hasn't been addressed in a few months, perhaps I will be able to give it a go.
What happened?
I would like to use
xarray.Dataset.interp()
to interpolate data using the scipy "makima" interpolator,scipy.interpolate.Akima1DInterpolator(... method='makima')
. It seems to me this is possible according to the documentation here: https://docs.xarray.dev/en/latest/generated/xarray.Dataset.interp.html https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Akima1DInterpolator.html#scipy.interpolate.Akima1DInterpolatorHowever, I am not able to do this, I think due to two separate problems: 1) There is a check that only allows "vectorizeable interpolators" for one-dimensional interpolation, the motivation for which I do not understand. This makes 'akima', 'spline', and other documented interp methods unavailable.
2) The way kwargs are passed to the scipy interpolator results in multiple kwargs named "method", making specifically "makima" (modified akima) unavailable.
What did you expect to happen?
I expect interpolation to happen.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment