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.
| Input | Band it reads | What it contributes |
|---|---|---|
| Topography grid (2D) | slope, aspect (degrees) | terrain geometry |
| Surface irradiance grid (2D) | irradiance.surface.relative | shading, 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.
Prerequisites
Section titled “Prerequisites”-
An API key. my-api-key.
-
A domain. your-domain-id.
-
A completed 2D topography grid with
slopeandaspectbands. 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, requestelevationtoo. The irradiance request rejects a terrain grid without it. -
A completed leaflux surface irradiance grid with an
irradiance.surface.relativeband. your-irradiance-grid-id. Build one from solar irradiance requesting"bands": ["irradiance.surface.relative"]. Fosberg reads it as shading: a cell where relative irradiance is0.2is0.8shaded, and shaded fuel holds more moisture.
The whole flow — create, poll, and read the band back — in one script:
"""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 npimport 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}")Create the grid
Section titled “Create the grid”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.
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"}'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")
# Temperature is Fahrenheit (the Fosberg tables are Fahrenheit); `time` is a# 24-hour HHMM clock value restricted to 0800-1959. `month` selects the seasonal# correction table; `elevation` defaults to "near" (no correction).grid = ff.grids.create_dead_fuel_moisture_grid_from_fosberg( topography, irradiance, dry_bulb_temp=75, relative_humidity=30, time=1200, month="June",){ "id": "your-moisture-grid-id", "domain_id": "your-domain-id", "status": "pending", "source": { "name": "fosberg", "source_topography_grid_id": "your-topography-grid-id", "source_topography_grid_checksum": "43bcf1dd199b4c21afcc955268c92368", "source_irradiance_grid_id": "your-irradiance-grid-id", "source_irradiance_grid_checksum": "a699c75bebdf40c886b4c5fb814014a4", "dry_bulb_temp": 75.0, "relative_humidity": 30.0, "time": 1200, "month": "June", "elevation": "near" }, "bands": [ { "key": "fuel_moisture.1hr", "type": "continuous", "index": 0, "name": "1-hour Dead Fuel Moisture", "description": "1-hour timelag dead fuel moisture content from the Fosberg & Deeming (1971) model, as a percent of oven-dry fuel weight.", "unit": "%", "nodata": null, "summary": null } ], "name": "", "description": "", "progress": null, "created_on": "2026-11-03T16:06:03.838888", "modified_on": "2026-11-03T16:06:03.838888", "checksum": "334b788a93e14002a0708f745f99b33f", "modifications": [], "georeference": null, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}The request fields:
| Field | Required | What it is |
|---|---|---|
source_topography_grid_id | yes | The 2D topography grid — slope + aspect in degrees. |
source_irradiance_grid_id | yes | The leaflux surface irradiance grid — irradiance.surface.relative. |
dry_bulb_temp | yes | Dry-bulb air temperature in °F, at least 10. |
relative_humidity | yes | Relative humidity as a percent, 0–100. |
time | yes | Local time of day as a 24-hour HHMM integer (e.g. 1200 for noon). |
month | yes | Full month name ("June") — picks the seasonal correction table. |
elevation | no | below | near | above, default near. |
name, description, tags | no | Optional metadata. |
Poll to completion
Section titled “Poll to completion”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.
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'grid.wait(){ "id": "your-moisture-grid-id", "domain_id": "your-domain-id", "status": "completed", "source": { "dry_bulb_temp": 75.0, "source_irradiance_grid_id": "your-irradiance-grid-id", "name": "fosberg", "source_topography_grid_id": "your-topography-grid-id", "relative_humidity": 30.0, "month": "June", "elevation": "near", "source_irradiance_grid_checksum": "a699c75bebdf40c886b4c5fb814014a4", "time": 1200, "source_topography_grid_checksum": "43bcf1dd199b4c21afcc955268c92368" }, "bands": [ { "key": "fuel_moisture.1hr", "type": "continuous", "index": 0, "name": "1-hour Dead Fuel Moisture", "description": "1-hour timelag dead fuel moisture content from the Fosberg & Deeming (1971) model, as a percent of oven-dry fuel weight.", "unit": "%", "nodata": null, "summary": { "type": "continuous", "count": 289068, "nodata_count": 0, "min": 5.0, "max": 8.0, "mean": 5.884387064635311, "std": 1.3519407159364496 } } ], "name": "", "description": "", "progress": { "message": "Complete", "percent": 100 }, "created_on": "2026-11-03T16:06:03.838888Z", "modified_on": "2026-11-03T16:06:07.045496Z", "checksum": "334b788a93e14002a0708f745f99b33f", "modifications": [], "georeference": { "crs": "EPSG:32611", "transform": [2.0, 0.0, 720226.0, 0.0, -2.0, 5190646.0], "shape": [442, 654] }, "error": null, "chunks": { "shape": [512, 512], "count": 2, "count_by_axis": { "y": 1, "x": 2 } }, "tags": []}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.
Read the moisture surface
Section titled “Read the moisture surface”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.
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.
Terrain and time of day
Section titled “Terrain and time of day”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.
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.
Move the weather
Section titled “Move the weather”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).
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:
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"}'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")
# A hot, dry August afternoon on a site 1000-2000 ft above the reference weather# station. `elevation` is a Fosberg correction category relative to the station,# not the topography elevation band.grid = ff.grids.create_dead_fuel_moisture_grid_from_fosberg( topography, irradiance, dry_bulb_temp=82, relative_humidity=20, time=1400, month="August", elevation="above", name="Peak burn-period 1-hr DFMC", description="Midday August dead fuel moisture for the burn window.", tags=["fuel-moisture", "surface-fuel"],){ "id": "your-moisture-grid-id", "domain_id": "your-domain-id", "status": "pending", "source": { "name": "fosberg", "source_topography_grid_id": "your-topography-grid-id", "source_topography_grid_checksum": "43bcf1dd199b4c21afcc955268c92368", "source_irradiance_grid_id": "your-irradiance-grid-id", "source_irradiance_grid_checksum": "a699c75bebdf40c886b4c5fb814014a4", "dry_bulb_temp": 82.0, "relative_humidity": 20.0, "time": 1400, "month": "August", "elevation": "above" }, "bands": [ { "key": "fuel_moisture.1hr", "type": "continuous", "index": 0, "name": "1-hour Dead Fuel Moisture", "description": "1-hour timelag dead fuel moisture content from the Fosberg & Deeming (1971) model, as a percent of oven-dry fuel weight.", "unit": "%", "nodata": null, "summary": null } ], "name": "Peak burn-period 1-hr DFMC", "description": "Midday August dead fuel moisture for the burn window.", "progress": null, "created_on": "2026-11-03T16:06:09.436816", "modified_on": "2026-11-03T16:06:09.436816", "checksum": "b8feedd13ad546e0aa3dc5cb3de2bb3c", "modifications": [], "georeference": null, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": ["fuel-moisture", "surface-fuel"]}