Skip to content

Lazy cube interpolation #6002

@fnattino

Description

@fnattino

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions