MBKEngineers / collect

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

New functions for pulling exact copy of deterministic and ensemble forecast data from the CNRFC website #92

Closed hyphy8 closed 1 year ago

hyphy8 commented 1 year ago

Summary: The two new functions, get_deterministic_forecast_watershed_IO and get_ensemble_forecast_watershed_IO, allow for pulling forecast data from the CNRFC website exactly as is (i.e., a CSV file). These methods circumvent the parsing that is done using pandas. The function ensures the default filenames mirror the filenames on the CNRFC website, and when provided with None as the path entry, these functions will set the default path to the local folder in which the script calling this method is located. Lastly, the script does not pull the last available forecast when the indicated one is not available.

Tests: Try on non-Windows OS. And test out some bad inputs.

This pull request closes #59 .

hyphy8 commented 1 year ago

I didn't run into any issues as I tested out the function for both sets of forecasts.