Skip to content
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

Lazy cube interpolation #6002

Open
fnattino opened this issue Jun 12, 2024 · 0 comments
Open

Lazy cube interpolation #6002

fnattino opened this issue Jun 12, 2024 · 0 comments
Assignees

Comments

@fnattino
Copy link
Contributor

It would be great if the Iris cube (rectilinear) interpolation could run lazily, since this would enable a few of the ESMValCore preprocessor to work lazily as well.

Right now the cube data is immediately realised when setting up the interpolator:

if src_cube.has_lazy_data():
src_cube.data

and the _RegularGridInterpolator that does the actual weight calculation and interpolation does not seem to support lazy data due to the interaction with scipy's sparse matrices.

Could we maybe contribute in making the interpolation lazy by dropping the immediate data realisation, and by including support for Dask arrays in the _RegularGridInterpolator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants