generate_nsrps

postprocessinglib.forecast.forecast.generate_nsrps(auth_path: str, stn_list: list[str], layer_name: str, stn_locs_file: str = None) DataFrame

Queries for streamflow forecasts from the WCS for a given list of gauge stations.

Parameters:
  • auth_path (str) – Path to configuration file containing authentication information.

  • stn_list (list[str]) – The list of stations where we want to query for forecasts.

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

  • stn_locs_file (str, optional) – Path to geoJSON file containing station locations, by default None.

Returns:

Tabulated forecasts at gauge stations. DataFrame has the format:

----------------------------------------------------------------
| time                |   00XX001   |   00XX002   |   ......   |
----------------------------------------------------------------
| YYYY-MM-DD HH:mm:ss |     xxxx    |     xxxx    |    ...     |
| ...                 |     ....    |     ....    |    ...     |
----------------------------------------------------------------

DataFrame index = time (in UTC)

Return type:

pd.DataFrame