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.18.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.18.0
File Size Uploaded Provenance Actions
fastfuels_core-0.18.0.tar.gz 1.6 MB Without provenance Details for fastfuels_core-0.18.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.5 MB

Release files / fastfuels_core-0.18.0.tar.gz

Download URL fastfuels_core-0.18.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
51b2cd3161c816f6347afeeaca8287dc0209c825f434a113cbea69e344a18260
BLAKE2b-256 checksum
How to use checksums
07f1142b33dca87272bafa6a8d0dfd98802e8ae0a8b4768f67a268a8df2b1726
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.18.0-py3-none-any.whl

Download URL fastfuels_core-0.18.0-py3-none-any.whl
Size 861.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b919dc3b8b4deabe5cf17b8feffc14206ceceead6662edce665d3dbd62d2c1f
BLAKE2b-256 checksum
How to use checksums
0e0652a50d279db00bf2394f2e5f99a7a49be12ca5a475f1c973c28cc3f24c70
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.18.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.18.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