predictions_from_wcs

postprocessinglib.forecast.forecast.predictions_from_wcs(wcs: WebCoverageService, layer: str, ref_time: str, lat: float, lon: float, width: int, time: str) Dataset

Queries the WMS for a subset of the model grid for a single timestep from the forecast of interest. For example, we could query for the a grid subset with a bounding box of [ lat: (50, 52), lon: (-118, 116) ] at timestep 2023-04-15T03:00:00 for the forecast published (issued) at 2023-04-15T00:00:00.

Parameters:
  • wcs (WebCoverageService) – A connection object for the WCS API.

  • layer_name (str) – Name of the GeoMet layer.

  • ref_time (str) – The issue / publication time for the forecast of interest.

  • lat (float) – The latitude of the target gauge station.

  • lon (float) – The longitude of the target gauge station. Uses [-180, 180] convention.

  • width (int) – The half-width of the grid subset that will be queried.

  • time (str) – The foreacst timestep.

Returns:

A subset of the model grid at a given forecast timestep for the forecast of interest.

Return type:

xr.Dataset