Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Rating Curve Analysis Template - Jupyter Notebook

Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI ( for information on this resource.
Type: Resource
Storage: The size of this resource is 212.5 KB
Created: Sep 14, 2016 at 5:07 p.m.
Last updated: Oct 18, 2016 at 10 p.m.
Citation: See how to cite this resource
Sharing Status: Public
Views: 3180
Downloads: 259
+1 Votes: Be the first one to 
Comments: 1 comment


A template Jupyter Python (3) Notebook for analyzing discharge rating curve data. Data is imported from an excel file and analyzed following Herschy 2009. After an initial analysis, a least squares regression, is performed on the input data. Eventually it would be nice to implement a weighted regression based on uncertainties.

Subject Keywords


How to Cite

Cox, C. (2016). Rating Curve Analysis Template - Jupyter Notebook, HydroShare,

This resource is shared under the Creative Commons Attribution CC BY.


Chris Cox 7 years, 6 months ago

A few tips:
- You will need to create an excel file with a 'ToPython' tab (or change the code) and the following columns: Date/time, Discharge, Uncertainty, Elevation
-- The uncertainty is % and is used to plot error bars in the regression.
-- Date/time isn't really used...

- When you run a cell with a figure, you will need to "de-activate" the figure before running another cell with a figure. (There is a "power" button at the top of the figure).

+1 Votes: Be the first one to 

New Comment