Commit 8d6a707
committed
Add flood prediction tools: flood_depth, inundation, curve_number_runoff, travel_time (#923)
New xrspatial.flood module with four per-cell flood analysis functions
that build on the existing hydrology toolkit (HAND, flow_length, etc.):
- flood_depth: water depth from HAND raster and water level
- inundation: binary flood/no-flood mask
- curve_number_runoff: SCS/NRCS curve number runoff estimation
- travel_time: overland flow travel time via simplified Manning's equation
All four support numpy, cupy, dask, and dask+cupy backends.
Includes 45 tests covering known values, NaN propagation, edge cases,
input validation, and cross-backend equivalence.1 parent b734348 commit 8d6a707
File tree
4 files changed
+995
-0
lines changed- xrspatial
- tests
4 files changed
+995
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
118 | 136 | | |
119 | 137 | | |
120 | 138 | | |
| |||
373 | 391 | | |
374 | 392 | | |
375 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
376 | 412 | | |
377 | 413 | | |
378 | 414 | | |
| |||
0 commit comments