MBKEngineers / collect

MBK Python scripts for scraping water data from the web
MIT License
3 stars 1 forks source link

Snowpack percentage function #82

Closed jinducil closed 1 year ago

jinducil commented 1 year ago

Closes #81; also addresses MBKEngineers/safca-portal#77

Code to test

from collect.dwr import cdec

data = cdec.get_daily_snowpack_data('CENTRAL')
print(data['meta'])
print(data['data'])
jinducil commented 1 year ago

@narlesky Changes made!

Updated code to test

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'])