pywrdrb.pre.ObservationalDataRetriever#
- class pywrdrb.pre.ObservationalDataRetriever(start_date='1945-01-01', end_date=None)#
A retriever class for observational reservoir data using the DataPreprocessor interface.
This class collects inflow, release, and elevation data from USGS NWIS, processes and saves raw time series, and converts elevation to storage using predefined storage curves.
- __init__(start_date='1945-01-01', end_date=None)#
Initialize an ObservationalDataRetriever instance.
- Parameters:
start_date (str) – Start date for data retrieval, typically set to the model start date (e.g., ‘1980-01-01’).
end_date (str, optional) – End date for data retrieval, defaults to today’s date if not provided.
Methods
__init__
([start_date, end_date])Initialize an ObservationalDataRetriever instance.
elevation_to_storage
(elevation_df, ...)Convert reservoir elevation time series to volume using storage curves.
get
(gauges[, param_cd, stat_cd, label_map, type])Download USGS daily time series for specified gauges.
load
()Download raw observational data from USGS NWIS.
process
()Transform and combine elevation data into usable storage time series.
save
()Save raw and processed observational data.