This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
from ulmo.usgs import nwis | |
# download and cache site data (this will take a long time the first time) | |
# currently downloads all available parameters | |
nwis.hdf5.update_site_data('06043500') | |
# read daily mean discharge data from cache (statistics code 00003) | |
data = nwis.hdf5.get_site_data('06043500', parameter_code='00060:00003')['00060:00003'] |