Skip to content

Fix fuel moisture examples to use percent instead of fractions - #187

Merged
amarcozzi merged 1 commit into
mainfrom
fix/fuel-moisture-percent-docs
Jul 6, 2026
Merged

Fix fuel moisture examples to use percent instead of fractions#187
amarcozzi merged 1 commit into
mainfrom
fix/fuel-moisture-percent-docs

Conversation

@amarcozzi

Copy link
Copy Markdown
Contributor

What

Fuel moisture is percent everywhere a user supplies it. The QUIC-Fire exporter divides by 100 (fmc_array /= 100) before writing treesmoist.dat, so a value of 0.08 stores 0.08% and ends up as 0.0008 — near-zero moisture. Several docstrings and the export tutorial showed fractions, so users copying them got moisture 100× too low.

Changes

  • docs/v1/tutorials/export_to_quicfire.md: 0.15 → 15.0, 0.05 → 5 (5%), 0.15 → 15, 0.08 → 8 (8%), 0.12 → 12; comment (0.0-1.0) → (%).
  • fastfuels_sdk/v1/convenience.py: export_roi default surface config 0.15 → 15, "5%" example 0.05 → 5; comment (0.0-1.0) → (%).
  • fastfuels_sdk/v1/grids/grids.py: create_surface_grid docstring example 0.1 → 15.0.

Docs-only; no runtime behavior changes. The pipeline was already correct — builder methods, guides/grids.md, and tree-grid examples already used percent and are untouched.

Reported by

A collaborator setting "8%" surface moisture followed the docs, sent 0.08, and saw 0.08% in their QUIC-Fire inputs; sending 8 produced the correct result.

Closes #186

Fuel moisture is percent at the API/grid/SDK-input level; the QUIC-Fire
exporter divides by 100 to produce the fraction treesmoist.dat expects.
Several docstrings and the export_to_quicfire tutorial showed fractions
(0.08, 0.15, ...), which store 100x too little moisture.

Replace the fraction values with their percent equivalents and correct
the accompanying "(0.0-1.0)" comments to "(%)".

Closes #186
@amarcozzi
amarcozzi merged commit 4ac7534 into main Jul 6, 2026
1 of 2 checks passed
@amarcozzi
amarcozzi deleted the fix/fuel-moisture-percent-docs branch July 6, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuel moisture docs/examples show fractions instead of percent

1 participant