Problem 57635. Compute the average precipitation for a watershed using the Thiessen polygon method
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
Christian Schröder
on 3 Feb 2023
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?
ChrisR
on 4 Feb 2023
I modified the test. Try it now.
Christian Schröder
on 4 Feb 2023
Thanks, Chris!
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
193 Solvers
-
Create logical matrix with a specific row and column sums
303 Solvers
-
256 Solvers
-
651 Solvers
-
List the households affected by leaks in water distribution
21 Solvers
More from this Author281
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!