Commit 25b355b
committed
Add fire module: burn severity, fire behavior, and KBDI (#922)
Seven per-cell raster functions with numpy/cupy/dask/dask+cupy backends:
Burn severity: dnbr, rdnbr, burn_severity_class (USGS 7-class)
Fire behavior: fireline_intensity (Byram), flame_length, rate_of_spread
(simplified Rothermel with Anderson 13 fuel model lookup)
Fire danger: kbdi (single time-step Keetch-Byram Drought Index)
Includes 54 tests covering known values, NaN propagation, edge cases,
input validation, cross-backend parity, Dataset support, and accessor
smoke tests. Adds .xrs accessor methods for both DataArray and Dataset.1 parent 9931145 commit 25b355b
File tree
5 files changed
+1697
-0
lines changed- xrspatial
- tests
5 files changed
+1697
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
260 | 290 | | |
261 | 291 | | |
262 | 292 | | |
| |||
471 | 501 | | |
472 | 502 | | |
473 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
474 | 514 | | |
475 | 515 | | |
476 | 516 | | |
| |||
0 commit comments