xugrid.Ugrid2d.sel_points#

Ugrid2d.sel_points(obj, x: ndarray, y: ndarray)[source]#

Select points in the unstructured grid.

Out-of-bounds points are ignored. They may be identified via the index coordinate of the returned selection.

Parameters:
  • x (1d array of floats with shape (n_points,)) –

  • y (1d array of floats with shape (n_points,)) –

  • obj (xr.DataArray or xr.Dataset) –

Returns:

selection – The name of the topology is prefixed in the x, y coordinates.

Return type:

xr.DataArray or xr.Dataset