find_stn_target_gridcell

postprocessinglib.forecast.forecast.find_stn_target_gridcell(ds: Dataset, nsrps_lat: float, nsrps_lon: float) float

Returns the lat / lon index labels for the grid cell containing the “model world” gauge station.

Parameters:
  • ds (xr.Dataset) – Dataset containing a subset of the model grid.

  • nsrps_lat (float) – Latitude for the gauge station on the model grid.

  • nsrps_lon (float) – Longitude for the gauge station on the model grid.

Returns:

Lat / lon index labels for the target grid cell.

Return type:

Union[float, float]