Skip to content

support 1-dimensional coordinates in NDPointIndex #10940

@keewis

Description

@keewis

What is your issue?

NDPointIndex supports indexing along multiple indexed coordinates at the same time, but only for coordinates that have 2 or more dimensions (usually curvilinear grids, like the one used by the ROMS_example tutorial dataset).

This excludes indexing scattered points or trajectories.

For example, what I'd like to index is something like this:

import xarray as xr
import numpy as np

ds = xr.Dataset(
    coords={
        "x": ("points", np.linspace(0, 10, 20)),
        "y": ("points", np.linspace(15, 8, 20)),
    }
)

cc @dcherian, @benbovy, @quentinf00

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