xugrid.UgridDatasetAccessor.sel_points#

UgridDatasetAccessor.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 – The name of the topology is prefixed in the x, y coordinates.

Return type:

Union[xr.DataArray, xr.Dataset]