xugrid.UgridDataArrayAccessor.sel_points#

UgridDataArrayAccessor.sel_points(x, y)[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 (ndarray of floats with shape (n_points,)) –

  • y (ndarray of floats with shape (n_points,)) –

Returns:

points

Return type:

Union[xr.DataArray, xr.Dataset]