nwm_eval.fetch_data.safe_fetch_usgs#

nwm_eval.fetch_data.safe_fetch_usgs(site_codes, dates, conf, out_dir, hourly=True)[source]#

Fetch USGS streamflow data for a list of gage IDs and a date range, and save to parquet files.

Parameters:
  • site_codes (list) – List of USGS gage IDs.

  • dates (list) – List of dates for which to fetch data.

  • conf (dict) – Dictionary containing configuration options.

  • out_dir (str | Path) – Directory to save the parquet files.

  • hourly (bool) – Whether to filter data to hourly values.

Returns:

None