Skip to main content

fastfuels-core

Core algorithms for FastFuels

FastFuels Platform

The algorithms and methods in fastfuels-core serve as the foundation for the FastFuels Platform and the FastFuelsAPI. The FastFuels API is a JSON API that connects various data sources to the algorithms in fastfuels-core in order to create, modify, and export fuel data for use in fire behavior models.

Documentation for the FastFuels Platform, including reference documentation for the API can be found at the following links:

  1. https://docs.fastfuels.silvxlabs.com/
  2. https://api.fastfuels.silvxlabs.com/redoc

Crown ratio and crown base height

Tree, the tree DataFrames (CBH column) and canopy_fuel (crown_base_height column) take crown base height in meters, the height of the lowest live foliage, as crown geometry. CR / crown_ratio is FIA's compacted crown ratio. The uncompacted crown ratio model, a national refit to FIA trees with both CR and UNCRCD recorded, estimates crown base height from it, on arrays or on one Tree:

from fastfuels_core.allometry.crown_ratio import estimate_crown_base_height
from fastfuels_core.trees import Tree

# Vectorized, e.g. over DataFrame columns
trees["CBH"] = estimate_crown_base_height(
    trees["SPCD"], trees["CR"], trees["DIA"], trees["HT"], pacific_northwest=False
)

# One tree: omit crown_base_height and it is estimated from crown_ratio
tree = Tree(202, 1, 30.0, 20.0, crown_ratio=0.4, pacific_northwest=False)

Both call the same function, so they give identical values. A crown_base_height passed to Tree is used as is, and crown_ratio is then carried as data only. A tree-frame row with a NaN CBH and a valid CR is estimated with pacific_northwest=False. Set pacific_northwest=True for trees in PACIFIC_NORTHWEST_STATES (CA, OR, WA). crown_base_height = height - height * crown_ratio reproduces the pre-0.18 behaviour.

equation= (and Tree(..., crown_ratio_equation=...)) selects the published regional equations instead of the refit; their coefficients are rows of fastfuels_core/data/REF_CROWN_RATIO.csv, stored as printed with the table and page in TABLE:

equation Region Predictors Coverage Source
fia_national_logit_2026 (default) National, CA/OR/WA rows via pacific_northwest CCR, ln DBH, ln height Every FIA species (genus and softwood/hardwood fallbacks) National FIA refit of the published form
monleon_2004_eq1 CA, OR, WA CCR, ln DBH, ln height, height/DBH 28 species, other Pinus and Quercus Monleon, Azuma & Gedney 2004, West. J. Appl. For. 19(4):260–267, Table 2, doi:10.1093/wjaf/19.4.260
monleon_2004_eq2 CA, OR, WA CCR, ln DBH 28 species, other Pinus and Quercus Same paper, Table 4 (and Table 2 rows without height terms)
toney_reeves_2009 ID, MT, WY, NV, UT, CO, AZ, NM CCR, ln diameter 35 species, no fallback; 4 woodland species fitted on root-collar diameter give NaN Toney & Reeves 2009, West. J. Appl. For. 24(2):76–82, Table 3, doi:10.1093/wjaf/24.2.76
randolph_2010 AL, AR, FL, GA, KY, LA, NC, SC, TN, TX, VA CCR, ln diameter; woodland junipers ln height 24 species, 10 genera, forest and woodland junipers Randolph 2010, South. J. Appl. For. 34(3):118–123, Table 3 and text p. 121, doi:10.1093/sjaf/34.3.118
westfall_2019 24 Northern Research Station states CCR, ln DBH 27 groups by FIA eastern species group Westfall, Westfall & Randolph 2019, For. Sci. 65(5):593–601, Table 2, doi:10.1093/forsci/fxz029 (erratum doi:10.1093/forsci/fxz067 corrects an author name only)

Each published equation applies its own paper's rule: UCR = CCR above CCR 0.90 (Monleon, Toney & Reeves, Randolph), or UCR = CCR only where the prediction falls below CCR (Westfall). A species an equation does not cover gives NaN, and pacific_northwest=True with a published equation raises. fastfuels_core.allometry.crown_ratio documents each equation's sample, caveats and not-recommended species (RECOMMENDED 0).

Metadata

Release files for fastfuels-core 0.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastfuels-core 0.21.0
File Size Uploaded Provenance Actions
fastfuels_core-0.21.0.tar.gz 1.6 MB Without provenance Details for fastfuels_core-0.21.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastfuels-core 0.21.0
File Interpreter ABI Platform Actions
fastfuels_core-0.21.0-py3-none-any.whl Python 3 none any Details for fastfuels_core-0.21.0-py3-none-any.whl

Total release size: 2.5 MB

Release files / fastfuels_core-0.21.0.tar.gz

Download URL fastfuels_core-0.21.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
9112a77888cc42ac1d5d6df140374f69eac9e002a979a1dc3f65c2a6fc47edf8
BLAKE2b-256 checksum
How to use checksums
a45dd60baf0a621db866247e4f2ba41698650a9e069045f55af3f0e9385af984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / fastfuels_core-0.21.0-py3-none-any.whl

Download URL fastfuels_core-0.21.0-py3-none-any.whl
Size 864.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd318a8fd090a7fa1ab91a9cbb03e764abf71901d850b5f0a8945f0a1cd447cc
BLAKE2b-256 checksum
How to use checksums
0fd2dabf45e4a660d5df7bd58819966732c0166979acad05d9ebbfecd862d6ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for fastfuels-core 0.21.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.21.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page