Skip to content

Create 1-hour dead fuel moisture grids

You are viewing in-progress documentation for v2. Switch to the stable version for the current production release.

The Fosberg endpoint estimates 1-hour dead fuel moisture content (DFMC) — the moisture in the fine dead fuels that drive fire spread — across a domain. It is a derived grid: it takes no raster of its own, but combines two grids you have already built, plus the weather and scenario inputs in the request.

InputBand it readsWhat it contributes
Topography grid (2D)slope, aspect (degrees)terrain geometry
Surface irradiance grid (2D)irradiance.surface.relativeshading, as 1 − irradiance

The one endpoint, grids/fuel-moisture/dead/fosberg, reads those two grids at each cell, applies the Fosberg (1971) model with your reference weather, and writes a single 2D fuel_moisture.1hr band — a percent of oven-dry fuel weight — on the topography grid’s lattice. This guide builds one, walks each input, and then shows how the weather inputs move the result. For how the model turns those inputs into moisture, see The Fosberg 1-hour model.

  1. An API key. my-api-key.

  2. A domain. your-domain-id.

  3. A completed 2D topography grid with slope and aspect bands. your-topography-grid-id. Build one from 3DEP requesting "bands": ["slope", "aspect"]. Fosberg reads both in degrees. If the same grid drapes the irradiance grid over terrain, request elevation too. The irradiance request rejects a terrain grid without it.

  4. A completed leaflux surface irradiance grid with an irradiance.surface.relative band. your-irradiance-grid-id. Build one from solar irradiance requesting "bands": ["irradiance.surface.relative"]. Fosberg reads it as shading: a cell where relative irradiance is 0.2 is 0.8 shaded, and shaded fuel holds more moisture.

The whole flow — create, poll, and read the band back — in one script:

1-hour DFMC from two source grids
"""Create a Fosberg 1-hr dead fuel moisture grid, poll it, and read it back.
Point the two source grids at a completed 2D topography grid (slope + aspect)
and a completed leaflux surface irradiance grid on the same domain.
"""
import numpy as np
import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
topography = ff.get_grid("your-domain-id", "your-topography-grid-id")
irradiance = ff.get_grid("your-domain-id", "your-irradiance-grid-id")
# 1. Create the grid and poll it to completed.
grid = ff.grids.create_dead_fuel_moisture_grid_from_fosberg(
topography,
irradiance,
dry_bulb_temp=75, # Fahrenheit
relative_humidity=30, # percent
time=1200, # HHMM, 0800-1959
month="June",
)
grid.wait()
# 2. Read the 2D band back as one (y, x) array — the SDK fetches every chunk
# and places it at its offset for you.
moisture = grid.to_numpy("fuel_moisture.1hr")
# 3. Values are 1-hr dead fuel moisture content, percent of oven-dry weight.
cells = moisture[np.isfinite(moisture)]
print(f"1-hr DFMC (%): min {cells.min():.1f}, mean {cells.mean():.1f}, max {cells.max():.1f}")

Post the two source grid ids and the reference weather. The response is a pending Grid. Poll it to completed as with any other grid.

POST — 1-hour DFMC
curl -X 'POST' \
'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/fuel-moisture/dead/fosberg' \
-H 'accept: application/json' \
-H 'api-key: my-api-key' \
-H 'Content-Type: application/json' \
-d '{
"source_topography_grid_id": "your-topography-grid-id",
"source_irradiance_grid_id": "your-irradiance-grid-id",
"dry_bulb_temp": 75,
"relative_humidity": 30,
"time": 1200,
"month": "June"
}'

The request fields:

FieldRequiredWhat it is
source_topography_grid_idyesThe 2D topography grid — slope + aspect in degrees.
source_irradiance_grid_idyesThe leaflux surface irradiance grid — irradiance.surface.relative.
dry_bulb_tempyesDry-bulb air temperature in °F, at least 10.
relative_humidityyesRelative humidity as a percent, 0–100.
timeyesLocal time of day as a 24-hour HHMM integer (e.g. 1200 for noon).
monthyesFull month name ("June") — picks the seasonal correction table.
elevationnobelow | near | above, default near.
name, description, tagsnoOptional metadata.

Record the id as your-moisture-grid-id and poll it. The completed grid is 2D: georeference.shape is (y, x), and it exports and reads back as a raster.

GET grid status
curl -X 'GET' \
'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/your-moisture-grid-id' \
-H 'accept: application/json' \
-H 'api-key: my-api-key'

The completed grid inherits the topography grid’s lattice — same crs, transform, and shape ([442, 654] here: a 442 × 654 grid of 2 m cells). The source block records both input grids and every weather input, with the source grids’ checksums, so the grid is reproducible and you can tell if a source has changed since. If you rebuild a source grid, rebuild the moisture grid too.

Fetch the fuel_moisture.1hr band the same way as any other 2D grid — per band, per chunk — using the loop in Fetch and stream grid data.

Two maps of the same domain, north up. Left: shading, near zero over the open south-east and dense speckle where tree crowns shade the ground across the west, the south, and a band to the north-east. Right: the 1-hour moisture, at the lowest level over all the open ground and at the highest level where the left map is shaded, with a narrow diagonal band one level up on a steep slope in the west. Two maps of the same domain, north up. Left: shading, near zero over the open south-east and dense speckle where tree crowns shade the ground across the west, the south, and a band to the north-east. Right: the 1-hour moisture, at the lowest level over all the open ground and at the highest level where the left map is shaded, with a narrow diagonal band one level up on a steep slope in the west.

Shading from the source irradiance grid, as 1 − irradiance.surface.relative, and the 1-hour moisture it drives. This is Blue Mountain at 75 °F and 30% relative humidity, at noon in June. Exposed fuel reads 5%. Shaded fuel, 29% of the cells, reads 8%, and a few steep slopes read 6%.

The values are a percent of oven-dry fuel weight. For what they mean to a fire, see Fuel moisture.

Slope and aspect change the result through the model’s correction tables, and which table applies depends on month and time. The model classes each cell’s slope as up to or over a 30% grade, converting the topography grid’s degrees for you, and its aspect as north, east, south, or west. At noon in June the corrections barely differ by aspect, which is why the surface above is almost uniform outside the shade. Earlier and later in the day they do.

Three maps of the same domain. Left: aspect, with the domain split into broad diagonal bands of north- and east-facing ground, a few south- and west-facing patches in the north-east, and the steepest slopes outlined in the west and south. Middle: moisture at 09:00, where the east-facing bands read one level drier than the north-facing bands and the shaded crowns are wettest. Right: moisture at 17:00, where the aspect bands have almost disappeared and only the shaded crowns and a few steep slopes stand out. Three maps of the same domain. Left: aspect, with the domain split into broad diagonal bands of north- and east-facing ground, a few south- and west-facing patches in the north-east, and the steepest slopes outlined in the west and south. Middle: moisture at 09:00, where the east-facing bands read one level drier than the north-facing bands and the shaded crowns are wettest. Right: moisture at 17:00, where the aspect bands have almost disappeared and only the shaded crowns and a few steep slopes stand out.

Aspect from the topography grid, with slopes over 30% grade outlined, and the 1-hour moisture at 09:00 and at 17:00 on Blue Mountain. Both runs use the default example’s weather, 75 °F and 30% relative humidity in June.

At 09:00, open east-facing ground reads 7% and open north-facing ground 8%. Steep north-facing slopes read 9%. By 17:00, open ground reads 6% whichever way it faces, and steep east-facing slopes read 8%. Shaded fuel stays wettest all day, at 10% in the morning and 9% in the late afternoon. Set time and month to the burn period you are modelling, and build the irradiance grid at the same local time and month (its date_time). The API does not check that they agree.

The two source grids set the spatial pattern: where fuel is shaded, steep, or sun-facing. The weather inputs set the level. Raising relative_humidity makes the whole field wetter, and lowering it makes it drier. dry_bulb_temp has a much smaller effect (The Fosberg 1-hour model).

Three maps of the same domain side by side on one moisture scale from 2 to 11 percent, at 10, 30, and 60 percent relative humidity. Each map has the same pattern of shaded crowns and open ground. Only the level moves, from the driest colours at 10 percent to the wettest at 60 percent. Three maps of the same domain side by side on one moisture scale from 2 to 11 percent, at 10, 30, and 60 percent relative humidity. Each map has the same pattern of shaded crowns and open ground. Only the level moves, from the driest colours at 10 percent to the wettest at 60 percent.

The same Blue Mountain grids at three relative humidities, everything else held at the default example’s values. Exposed and shaded fuel read 2% and 5% at 10% humidity, 5% and 8% at 30%, and 8% and 11% at 60%. The pattern set by terrain and canopy does not change.

For a named grid with an elevation correction — a hot, dry August afternoon on a site above the reference weather station — pass the full request:

POST — with metadata and elevation
curl -X 'POST' \
'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/fuel-moisture/dead/fosberg' \
-H 'accept: application/json' \
-H 'api-key: my-api-key' \
-H 'Content-Type: application/json' \
-d '{
"name": "Peak burn-period 1-hr DFMC",
"description": "Midday August dead fuel moisture for the burn window.",
"tags": ["fuel-moisture", "surface-fuel"],
"source_topography_grid_id": "your-topography-grid-id",
"source_irradiance_grid_id": "your-irradiance-grid-id",
"dry_bulb_temp": 82,
"relative_humidity": 20,
"time": 1400,
"month": "August",
"elevation": "above"
}'