nwm_eval.fetch_data#
Module for fetching forecast and observation data based on the provided configuration.
- Functions:
get_fcst_info: Get the forecast window size, time step, and reference time for a given NWM configuration.
check_existing_obs_data: Check existing parquet files of USGS observations and get the dates for previously downloaded data.
check_missing_obs_data: Check for missing observation data in the specified directory.
safe_fetch_usgs: Fetch USGS streamflow data for a list of gage IDs and a date range, and save to parquet files.
get_txdot_gage_list: Get the list of gage IDs for retrieving TxDOT streamflow observations.
process_txdot_data: Process raw TxDOT streamflow data for a specific gage ID.
fetch_txdot_gage_data: Fetch streamflow data for a list of TxDOT gage IDs and a date range, and resample temporally as needed.
retrieve_usgs_obs: Retrieve USGS streamflow observations given configuration and a list of gage IDs.
get_fcst_files: Get the list of forecast files for a given dataset.
retrieve_fcsts_ngencerf: Retrieve NWM forecasts given the configurations and list of locations from the ngenCERF data source.
retrieve_fcsts_gcs: Retrieve NWM forecasts from Google Cloud Storage based on the provided configuration and list of locations.
retrieve_fcsts: Retrieve NWM forecast data for the specified locations and configuration.
get_obs_files: Get the list of existing observation files.
read_obs_data: Read observation data from a list of file paths (in csv or parquet format) and concatenate them into a single DataFrame.
Functions
Check existing parquet files of usgs obs and get the dates for previously downloaded data. |
|
Check for missing observation data in the specified directory. |
|
Extract time and flow for specific gages from a NetCDF file. |
|
Fetch streamflow data for a list of TxDOT gage IDs and a date range, and resample temporally as needed. |
|
Get the list of forecast files for a given dataset. |
|
Get the forecast window size, time step, and reference time for a given NWM configuration. |
|
Get the agency for each gage ID based on the crosswalk file. |
|
Get the list of existing observation files. |
|
Get the list of gage IDs for retrieving TxDOT streamflow observations. |
|
Process raw TxDOT streamflow data for a specific gage ID. |
|
Read observation data from a list of file paths (in csv or parquet format) and concatenate them into a single DataFrame. |
|
Retrieve NWM forecast data for the specified locations and configuration. |
|
Retrieve NWM forecasts given the configurations and list of locations from Google Cloud Storage. |
|
Retrieve NWM forecasts given the configurations and list of locations from the ngenCERF data source. |
|
Retrieve NGEN simulation data for the specified configuration. |
|
Retrieve USGS streamflow observations given configuration and a list of gage IDs. |
|
Fetch USGS streamflow data for a list of gage IDs and a date range, and save to parquet files. |