Skip to content

interpolate/sample array at point #191

Closed
@cossatot

Description

@cossatot

This looks like an excellent project, thanks for all the work.

I am wondering if there is functionality for interpolation or sampling of a Dataset at a point (or sequence of points). The SciPy way of doing this uses scipy.ndimage.map_coordinates and is completely backwards for (geo)spatial data, requiring the point's coordinates to be converted to 'array' coordinates before interpolation.

Does this already have an implementation, given how super common an operation it is? If not, would it be difficult to wrap pandas.Series.interpolate() up? I might write a function to do this, but I don't known the xray internals well enough to know where to stick it.

Thanks,
Richard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions