MBKEngineers / collect

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

Add CDEC Rating Flag for BRT/ART #99

Closed CAbrahamMBK closed 11 months ago

CAbrahamMBK commented 11 months ago

Adds a new column ("RATING_FLAG") to the DataFrame returned by get_raw_station_csv() that indicates if the data was BRT (below rating table) or ART (above rating table). Removes duplicate 'DATE_TIME' column.

Example:

cdec.get_station_data('CBP', start=dt.datetime(2023, 11, 24, 12), end=dt.datetime(2023, 11, 26, 12), sensors=[20, 1, 41])

Result:

image