Merged
Conversation
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.
Beginner-oriented walkthrough of all 7 fire module functions with synthetic data: dNBR, RdNBR, burn severity classification, fireline intensity, flame length, rate of spread (with fuel model comparison and moisture sensitivity), and multi-day KBDI accumulation.
- API reference page (docs/source/reference/fire.rst) with autosummary directives for all 7 public functions - User guide notebook (docs/source/user_guide/fire.ipynb) with synthetic data examples for burn severity, fire behavior, and KBDI - Updated reference and user guide toctrees
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New
xrspatial/fire.pymodule with 7 per-cell functions, all with numpy/cupy/dask/dask+cupy backends:dnbr,rdnbr,burn_severity_class(USGS 7-class, int8)fireline_intensity(Byram),flame_length,rate_of_spread(simplified Rothermel, Anderson 13 fuel models)kbdi(single time-step Keetch-Byram Drought Index)burn_severity_classandflame_lengthaccept Dataset inputs via@supports_dataset. Accessor methods on.xrsfor all 7 (DataArray) and those 2 (Dataset). Top-level imports and changelog updated.Test plan
54 tests in
test_fire.py, all passing:burn_severity_classandflame_lengthrate_of_spreadspecifics: all 13 fuel models produce finite positive output; spread increases with slope and wind; high moisture suppresses spread; out-of-range fuel_model raises ValueErrorCloses #922