Closed jinducil closed 1 year ago
Closes #81; also addresses MBKEngineers/safca-portal#77
get_daily_snowpack_data
region
date_string
from collect.dwr import cdec data = cdec.get_daily_snowpack_data('CENTRAL') print(data['meta']) print(data['data'])
@narlesky Changes made!
from collect.dwr import cdec import datetime as dt data = cdec.get_daily_snowpack_data('CENTRAL', dt.datetime(2003, 2, 15), dt.datetime(2023, 2, 9)) print(data['data'])
Closes #81; also addresses MBKEngineers/safca-portal#77
get_daily_snowpack_data
function to CDEC queries.pyregion
anddate_string
(YYYYMMDD) as arguments;date_string
is optional argument, will use today's date if none providedCode to test