processing.select.select_point#

select_point(ds: Dataset, lat_point: float, lon_point: float, projection: str = None)[source]#

Select a point from the dataset based on the provided geographic coordinates.

Parameters:
  • ds (xarray.Dataset) – The input dataset from which to select the point.

  • lon_point (float) – Geographic longitude coordinate

  • lat_point (float) – Geographic latitude coordinate

  • projection (str, optional) – The projection of the dataset. The point will be projected to the dataset’s coordinate system before selection. Currently supported projections are ‘rotated_pole’ and ‘lcc’ (Lambert Conformal Coordinates).

Returns:

The dataset subset at the nearest point to the specified coordinates.

Return type:

xarray.Dataset