Several methods are available for estimating the average precipitation for a watershed from a few observations at rain gauges. The Thiessen polygon method involves forming polygons around the gauges, assigning the gauge’s observed precipitation to each point in the polygon, and computing the weighted average precipitation using the areas of the polygons as weights.
The polygons can be determined by connecting the gauges with lines, drawing the perpendicular bisectors of the connecting lines, and finding the intersections of the bisectors to form the polygons. An example is shown below.
Write a function that takes the precipitation amounts and the (x, y) coordinates of the boundary and the gauges and compute the average precipitation for the watershed.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Given two arrays, find the maximum overlap
1725 Solvers
-
How to find the position of an element in a vector without using the find function
2814 Solvers
-
345 Solvers
-
Find last zero for each column
698 Solvers
-
Set the Euler-Mascheroni constant with an identity using available MATLAB functions
18 Solvers
More from this Author323
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I have a WIP solution that passes all tests but returns 298.45625 for test 3, rather than 299.094. Can you confirm your value is correct?
I modified the test. Try it now.
Thanks, Chris!