USDA-ARS-NWRC / weather_forecast_retrieval

Weather forecast retrieval gathers relavant gridded weather forecasts to ingest into physically based models for water supply forecasts
Other
6 stars 1 forks source link

Expose library structure via API #33

Closed jomey closed 3 years ago

jomey commented 3 years ago

This sets up the library to allow imports such as:

import weather_forecast_retrieval as wfr

and then use relative references based of the alias.

Also exposes the variables as a list for outside references.

scotthavens commented 3 years ago

With this, what would the import for the HRRR grib file loader look like?

jomey commented 3 years ago

With this, what would the import for the HRRR grib file loader look like?

Example in the SMRF PR: https://github.com/USDA-ARS-NWRC/smrf/blob/293d9750cb91a4c43d0c4475058b0cda2299fcdf/smrf/data/hrrr_grib.py#L73

scotthavens commented 3 years ago

Is this going to need a new release for SMRF to work?

jomey commented 3 years ago

Is this going to need a new release for SMRF to work?

SRMF is pinned at >=0.7 and should pick it up right away if we tag this 0.7.1