hyriver / pygeohydro

A part of HyRiver software stack for accessing hydrology data through web services
https://docs.hyriver.io
Other
68 stars 23 forks source link

Allow access to NWIS Instantaneous values? #77

Closed rsignell-usgs closed 2 years ago

rsignell-usgs commented 2 years ago

It appears that there is only support for daily values from NWIS.
Could the instantaneous NWIS values be optionally supported as well? cc @jmccreight

cheginit commented 2 years ago

NWIS supports it. I added support for iv in the xarray commit:

from pygeohydro import NWIS

nwis = NWIS()
qobs = nwis.get_streamflow("01646500", ("2005-01-01 12:00", "2005-01-12 15:00"), freq="iv")

If you've installed pygeohydro from the main branch you should be able to use this new feature.

rsignell-usgs commented 2 years ago

Woohoo! Thanks @cheginit!