olm.USGS.DataRetrieval.GetDailyDischarge

olm.USGS.DataRetrieval.GetDailyDischarge(location, date)[source]

Retrieve daily average discharge value from USGS database for given date and USGS site.

Parameters:
locationstring

Full USGS site number starting with ‘USGS-’ or a string that just contains the bare integer number of a USGS site.

datestring

String containing the date for which discharge will be retrieved. Should be given as YYYY-MM-DD.

Returns:
datadict {‘discharge’:float, ‘quality’:string, ‘name’:string}

Returns a dicionary that contains three items, the average discharge value for the site and date given, the quality code assigned to that discharge value, and the name of the site.

Notes

Currently hard-wired to retrieve USGS pcode 00060, daily discharge in cfs.