Skip to content

Awnder/streamflow-forecast-shiroma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Streamflow Forecast

Screenshot of an example Streamflow Forecast plot.

What is Streamflow Forecast?

Using an anchor date, this python file retrieves government-monitored river water data from the current year and the past nine years. This data is graphed to display certain unique or outstanding waterflow years.

What is this program's purpose?

This program was designed for two hypothetical companies: first is the local water district that wants to predict how quickly their reservoir is filling up and the second a whitewater rafting company that wants to forecast river flows for the next week.

For real-world experience, this class project was created to demonstrate:

  1. proficiency in Python
  2. basic data analysis and data manipulation through Pandas and a touch of calculus
  3. elementary data graphing using matplotlib's pyplot
  4. descriptive variable naming to let docstrings and comments be secondary descriptors

How to use this program?

Clone the repository!

Note this project uses the following packages. Use pip install to install relevant uninstalled packages.

  1. pandas
  2. matplotlib
  3. datetime
  4. argparse
  5. hydrofunctions - downloads water data from the United States Geological Survey (USGS) National Water Information System (NWIS)

Commandline arguments are used to get desired government water sensor and date. Use the -h or -help flag to get details.

There are three control inputs:

  1. -n or -name: the name of the desired river. As data is retrieved using the sensor ID, this does not impact data retrieval. This is displayed in the graph title, however. Default is "Trinity River at Burnt Range Gorge".
  2. -s or -sensor: the sensor ID. The user will have to manually find this ID from the USGS NWIS website. Default is "11527000".
  3. -d or -date: the anchor date on which to start data retrieval. Default is today's date.

Finally, run the program using your version of python with the desired flags and see your results!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages