Estimating River Depth
Initial tool interface |
To learn a bit of JavaScript, I decided to write a simple tool that would allow users to measure the width of a river and estimate the depth with some uncertainty. The webpage itself is a static HTML file that is hosted on GitHub Pages and available here.
To use the tool the user can either enter river width measurements, or make measurements on the map by hand. For convenience, the ESRI World Imagery basemap is also available to help make the measurements. Once a number of width measurements have been made, the user can click the “Calculate Depth” button to estimate the depth.
Example tool usage and output |
The calculations are based off of functional relationships between river width, depth, and discharge as they were first described by Leopold and Maddock in 1953 (Link). Coefficients for the relationships, as well as the coefficients for the 95% confidence intervals were obtained from a more recent study by Moody and Troutman in 2002 (Link).
Naturally, this is more of a toy tool than a serious model for estimating river depth from width, but was a good exercise in web development and JavaScript.