olm.USGS.DataRetrieval.GetDailyDischargeRecord¶
- olm.USGS.DataRetrieval.GetDailyDischargeRecord(location, start_date, end_date=None)[source]¶
Retrieve daily average discharge values from USGS database for given date range and USGS site.
- Parameters:
- locationstr
Full USGS site number starting with ‘USGS-’ or a string that just contains the bare integer number of a USGS site.
- start_datestr
String containing the beginning date in the range for which discharge will be retrieved. Should be given as YYYY-MM-DD.
- end_datestr (optional)
String containing the ending date in the range for which discharge will be retrieved. Should be given as YYYY-MM-DD. If not provided then data will be retrieved up to the current date.
- Returns:
- datapandas dataframe
Returns a Pandas dataframe with an index of the date, a column ‘discharge’ of discharge values, and a column ‘quality’ of the USGS quality rating.
Notes
Currently hard-wired to retrieve USGS pcode 00060, daily discharge in cfs.