Build surface fuels from a tree grid with DUET
You are viewing in-progress documentation for v2. Switch to the stable version for the current production release.
POST grids/duet turns a completed 3D tree grid into 2D surface-fuel bands:
grass, litter, and their total, each as a load, a depth, and a moisture. For
how DUET builds the layer from the canopy, see
DUET: surface fuel from the canopy.
Prerequisites
Section titled “Prerequisites”-
An API key: my-api-key.
-
A domain: your-domain-id.
-
A completed tree inventory with
height,dbh,crown_base_height, andfia_species_codeon every tree: your-inventory-id. A TreeMap inventory has them. For a CHM or uploaded inventory, fill them in with GDAM allometry first. -
To calibrate, target values for the fuels you calibrate: field measurements, published data, or a stated scenario.
Build the tree grid
Section titled “Build the tree grid”DUET reads three bands from the tree grid:
bulk_density.foliage.live, the foliage mass in each voxelspcd, the FIA species code of the tree in each voxelfuel_moisture.live, the live canopy moisture
The default voxelization produces only bulk_density.foliage.live. Request all
three:
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/voxelize/inventory/tree' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "DUET-compatible canopy grid", "source_inventory_id": "your-inventory-id", "resolution": { "horizontal": 2, "vertical": 1 }, "bands": [ "bulk_density.foliage.live", "spcd", "fuel_moisture.live" ], "seed": 42}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
# A completed inventory with height, dbh, crown_base_height, and fia_species_code.inventory = ff.get_inventory("your-domain-id", "your-inventory-id")
# DUET needs all three bands. The default voxelization produces only the first.tree_grid = inventory.voxelize( horizontal_resolution_m=2, vertical_resolution_m=1, bands=["bulk_density.foliage.live", "spcd", "fuel_moisture.live"], seed=42, name="DUET-compatible canopy grid",){ "id": "your-tree-grid-id", "domain_id": "your-domain-id", "name": "DUET-compatible canopy grid", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-03T21:34:41.157467", "modified_on": "2026-11-03T21:34:41.157467", "checksum": "ce24568216f8453e9db7a162189e8007", "source": { "operation": "voxelize", "input": "inventory", "entity": "tree", "source_inventory_id": "your-inventory-id", "source_inventory_checksum": "0ba9a68926954a96b50f837d546e3e06", "resolution": { "horizontal": 2.0, "vertical": 1.0 }, "bands": ["bulk_density.foliage.live", "spcd", "fuel_moisture.live"], "crown_profile_model": "purves", "biomass_source": { "type": "allometry", "equations": "nsvb", "components": ["foliage"], "component_states": { "foliage": { "live": 1.0, "dead": 0.0 } } }, "max_crown_radius_source": { "type": "allometry" }, "crown_geometry_source": { "type": "parametric" }, "moisture_model": { "live": { "method": "uniform", "value": 100.0 } }, "seed": 42 }, "modifications": [], "bands": [ { "key": "bulk_density.foliage.live", "name": "Live Foliage Bulk Density", "description": "Per-voxel bulk density of live foliage.", "type": "continuous", "unit": "kg/m**3", "index": 0, "nodata": null, "summary": null }, { "key": "spcd", "name": "Species Code", "description": "FIA species code (SPCD) of the dominant tree in the voxel.", "type": "categorical", "unit": null, "index": 1, "nodata": null, "summary": null }, { "key": "fuel_moisture.live", "name": "Live Fuel Moisture", "description": "Moisture content of live canopy fuels (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 2, "nodata": null, "summary": null } ], "georeference": null, "error": null, "chunks": null, "tags": []}Record the id as your-tree-grid-id and poll it to completed:
curl -X 'GET' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/your-tree-grid-id' \ -H 'accept: application/json' \ -H 'api-key: my-api-key'tree_grid.wait(){ "id": "your-tree-grid-id", "domain_id": "your-domain-id", "name": "DUET-compatible canopy grid", "description": "", "status": "completed", "progress": { "percent": 100, "message": "Complete" }, "created_on": "2026-11-03T21:34:41.157467Z", "modified_on": "2026-11-03T21:34:57.082934Z", "checksum": "ce24568216f8453e9db7a162189e8007", "source": { "bands": ["bulk_density.foliage.live", "spcd", "fuel_moisture.live"], "input": "inventory", "operation": "voxelize", "biomass_source": { "type": "allometry", "equations": "nsvb", "components": ["foliage"], "component_states": { "foliage": { "dead": 0.0, "live": 1.0 } } }, "crown_geometry_source": { "type": "parametric" }, "crown_profile_model": "purves", "moisture_model": { "live": { "method": "uniform", "value": 100.0 } }, "source_inventory_id": "your-inventory-id", "source_inventory_checksum": "0ba9a68926954a96b50f837d546e3e06", "resolution": { "vertical": 1.0, "horizontal": 2.0 }, "entity": "tree", "seed": 42, "max_crown_radius_source": { "type": "allometry" } }, "modifications": [], "bands": [ { "key": "bulk_density.foliage.live", "name": "Live Foliage Bulk Density", "description": "Per-voxel bulk density of live foliage.", "type": "continuous", "unit": "kg/m**3", "index": 0, "nodata": null, "summary": null }, { "key": "spcd", "name": "Species Code", "description": "FIA species code (SPCD) of the dominant tree in the voxel.", "type": "categorical", "unit": null, "index": 1, "nodata": null, "summary": null }, { "key": "fuel_moisture.live", "name": "Live Fuel Moisture", "description": "Moisture content of live canopy fuels (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32611", "transform": [2.0, 0.0, 720226.0, 0.0, -2.0, 5190646.0], "shape": [33, 442, 654], "z_resolution": 1.0, "z_origin": 0.0 }, "error": null, "chunks": { "shape": [33, 442, 442], "count": 2, "count_by_axis": { "x": 2, "y": 1, "z": 1 } }, "tags": []}This tree grid has 2 m cells and 1 m layers, with a shape of
[33, 442, 654]: layers, rows, columns. DUET’s output is a 2D
[442, 654] grid on the same horizontal lattice.
Run DUET
Section titled “Run DUET”To run DUET, send the tree grid’s id, the years since the last fire, and the wind. This request asks for every band: load, depth, and moisture of grass, litter, coniferous litter, deciduous litter, and the total.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/duet' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "DUET surface fuels (raw pattern)", "source_grid_id": "your-tree-grid-id", "years_since_burn": 25, "wind_direction": 270, "wind_variability": 30, "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.litter.coniferous", "fuel_load.litter.deciduous", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.litter.coniferous", "fuel_depth.litter.deciduous", "fuel_depth.total", "fuel_moisture.grass", "fuel_moisture.litter", "fuel_moisture.litter.coniferous", "fuel_moisture.litter.deciduous", "fuel_moisture.total" ]}'# Omitting `calibration` stores DUET's modeled values without rescaling.raw_grid = ff.grids.create_surface_fuel_grid_from_duet( tree_grid, years_since_burn=25, wind_direction=270, wind_variability=30, bands=[ "fuel_load.grass", "fuel_load.litter", "fuel_load.litter.coniferous", "fuel_load.litter.deciduous", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.litter.coniferous", "fuel_depth.litter.deciduous", "fuel_depth.total", "fuel_moisture.grass", "fuel_moisture.litter", "fuel_moisture.litter.coniferous", "fuel_moisture.litter.deciduous", "fuel_moisture.total", ], name="DUET surface fuels (raw pattern)",){ "id": "your-raw-duet-grid-id", "domain_id": "your-domain-id", "name": "DUET surface fuels (raw pattern)", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-03T21:35:02.008084", "modified_on": "2026-11-03T21:35:02.008084", "checksum": "978508146c2d42529f941ac2907508f4", "source": { "years_since_burn": 25, "wind_direction": 270, "wind_variability": 30, "operation": "duet", "input": "grid", "entity": "tree", "source_grid_id": "your-tree-grid-id", "source_grid_checksum": "ce24568216f8453e9db7a162189e8007", "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.litter.coniferous", "fuel_load.litter.deciduous", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.litter.coniferous", "fuel_depth.litter.deciduous", "fuel_depth.total", "fuel_moisture.grass", "fuel_moisture.litter", "fuel_moisture.litter.coniferous", "fuel_moisture.litter.deciduous", "fuel_moisture.total" ] }, "modifications": [], "bands": [ { "key": "fuel_load.grass", "name": "Grass Fuel Load", "description": "Oven-dry mass per unit ground area of grass.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.litter", "name": "Litter Fuel Load", "description": "Oven-dry mass per unit ground area of litter.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.litter.coniferous", "name": "Coniferous Litter Fuel Load", "description": "Oven-dry mass per unit ground area of coniferous litter.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null }, { "key": "fuel_load.litter.deciduous", "name": "Deciduous Litter Fuel Load", "description": "Oven-dry mass per unit ground area of deciduous litter.", "type": "continuous", "unit": "kg/m**2", "index": 3, "nodata": null, "summary": null }, { "key": "fuel_load.total", "name": "Total Surface Fuel Load", "description": "Oven-dry mass per unit ground area of all surface fuel (grass plus litter).", "type": "continuous", "unit": "kg/m**2", "index": 4, "nodata": null, "summary": null }, { "key": "fuel_depth.grass", "name": "Grass Fuel Depth", "description": "Vertical depth of the grass fuel bed.", "type": "continuous", "unit": "m", "index": 5, "nodata": null, "summary": null }, { "key": "fuel_depth.litter", "name": "Litter Fuel Depth", "description": "Vertical depth of the litter fuel bed.", "type": "continuous", "unit": "m", "index": 6, "nodata": null, "summary": null }, { "key": "fuel_depth.litter.coniferous", "name": "Coniferous Litter Fuel Depth", "description": "Vertical depth of the coniferous litter fuel bed.", "type": "continuous", "unit": "m", "index": 7, "nodata": null, "summary": null }, { "key": "fuel_depth.litter.deciduous", "name": "Deciduous Litter Fuel Depth", "description": "Vertical depth of the deciduous litter fuel bed.", "type": "continuous", "unit": "m", "index": 8, "nodata": null, "summary": null }, { "key": "fuel_depth.total", "name": "Total Surface Fuel Depth", "description": "Vertical depth of the total surface fuel bed (grass plus litter).", "type": "continuous", "unit": "m", "index": 9, "nodata": null, "summary": null }, { "key": "fuel_moisture.grass", "name": "Grass Fuel Moisture", "description": "Moisture content of grass (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 10, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter", "name": "Litter Fuel Moisture", "description": "Moisture content of litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 11, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter.coniferous", "name": "Coniferous Litter Fuel Moisture", "description": "Moisture content of coniferous litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 12, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter.deciduous", "name": "Deciduous Litter Fuel Moisture", "description": "Moisture content of deciduous litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 13, "nodata": null, "summary": null }, { "key": "fuel_moisture.total", "name": "Total Surface Fuel Moisture", "description": "Moisture content of all surface fuel (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 14, "nodata": null, "summary": null } ], "georeference": null, "error": null, "chunks": null, "tags": []}Choose the output bands
Section titled “Choose the output bands”DUET separates fuel by type, not by dead-fuel timelag class. Choose bands for the task:
| Task | Bands |
|---|---|
| Compare grass and all litter | fuel_load.grass, fuel_load.litter |
| Keep mixed-stand litter types separate | fuel_load.litter.coniferous, fuel_load.litter.deciduous |
| Supply one combined surface layer | fuel_load.total, fuel_depth.total, fuel_moisture.total |
| Inspect bed structure rather than mass | fuel_depth.grass, fuel_depth.litter |
| Inspect moisture by fuel type | fuel_moisture.grass, fuel_moisture.litter |
The same fuel-type suffixes are available for load, depth, and moisture.
Without bands, the grid has fuel_load.grass and fuel_load.litter. The
live API reference
lists every band and validation rule.
Set stand history and wind
Section titled “Set stand history and wind”| Field | What to set |
|---|---|
years_since_burn | Completed years since the most recent fire, from 1 to 100. Litter accumulates with each year, and runtime grows with it. |
wind_direction | Prevailing wind direction in whole degrees clockwise from north. Defaults to 270. |
wind_variability | Angular spread around that direction, in whole degrees. Defaults to 30. |
The example uses 25 years and a west wind (270° ± 30°).
Poll the grid
Section titled “Poll the grid”Record the id as your-raw-duet-grid-id and poll it to completed:
curl -X 'GET' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/your-raw-duet-grid-id' \ -H 'accept: application/json' \ -H 'api-key: my-api-key'raw_grid.wait(){ "id": "your-raw-duet-grid-id", "domain_id": "your-domain-id", "name": "DUET surface fuels (raw pattern)", "description": "", "status": "completed", "progress": { "percent": 100, "message": "Complete" }, "created_on": "2026-11-03T21:35:02.008084Z", "modified_on": "2026-11-03T21:35:57.721360Z", "checksum": "978508146c2d42529f941ac2907508f4", "source": { "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.litter.coniferous", "fuel_load.litter.deciduous", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.litter.coniferous", "fuel_depth.litter.deciduous", "fuel_depth.total", "fuel_moisture.grass", "fuel_moisture.litter", "fuel_moisture.litter.coniferous", "fuel_moisture.litter.deciduous", "fuel_moisture.total" ], "input": "grid", "source_grid_checksum": "ce24568216f8453e9db7a162189e8007", "wind_direction": 270, "operation": "duet", "wind_variability": 30, "source_grid_id": "your-tree-grid-id", "entity": "tree", "years_since_burn": 25 }, "modifications": [], "bands": [ { "key": "fuel_load.grass", "name": "Grass Fuel Load", "description": "Oven-dry mass per unit ground area of grass.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.litter", "name": "Litter Fuel Load", "description": "Oven-dry mass per unit ground area of litter.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.litter.coniferous", "name": "Coniferous Litter Fuel Load", "description": "Oven-dry mass per unit ground area of coniferous litter.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null }, { "key": "fuel_load.litter.deciduous", "name": "Deciduous Litter Fuel Load", "description": "Oven-dry mass per unit ground area of deciduous litter.", "type": "continuous", "unit": "kg/m**2", "index": 3, "nodata": null, "summary": null }, { "key": "fuel_load.total", "name": "Total Surface Fuel Load", "description": "Oven-dry mass per unit ground area of all surface fuel (grass plus litter).", "type": "continuous", "unit": "kg/m**2", "index": 4, "nodata": null, "summary": null }, { "key": "fuel_depth.grass", "name": "Grass Fuel Depth", "description": "Vertical depth of the grass fuel bed.", "type": "continuous", "unit": "m", "index": 5, "nodata": null, "summary": null }, { "key": "fuel_depth.litter", "name": "Litter Fuel Depth", "description": "Vertical depth of the litter fuel bed.", "type": "continuous", "unit": "m", "index": 6, "nodata": null, "summary": null }, { "key": "fuel_depth.litter.coniferous", "name": "Coniferous Litter Fuel Depth", "description": "Vertical depth of the coniferous litter fuel bed.", "type": "continuous", "unit": "m", "index": 7, "nodata": null, "summary": null }, { "key": "fuel_depth.litter.deciduous", "name": "Deciduous Litter Fuel Depth", "description": "Vertical depth of the deciduous litter fuel bed.", "type": "continuous", "unit": "m", "index": 8, "nodata": null, "summary": null }, { "key": "fuel_depth.total", "name": "Total Surface Fuel Depth", "description": "Vertical depth of the total surface fuel bed (grass plus litter).", "type": "continuous", "unit": "m", "index": 9, "nodata": null, "summary": null }, { "key": "fuel_moisture.grass", "name": "Grass Fuel Moisture", "description": "Moisture content of grass (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 10, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter", "name": "Litter Fuel Moisture", "description": "Moisture content of litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 11, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter.coniferous", "name": "Coniferous Litter Fuel Moisture", "description": "Moisture content of coniferous litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 12, "nodata": null, "summary": null }, { "key": "fuel_moisture.litter.deciduous", "name": "Deciduous Litter Fuel Moisture", "description": "Moisture content of deciduous litter (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 13, "nodata": null, "summary": null }, { "key": "fuel_moisture.total", "name": "Total Surface Fuel Moisture", "description": "Moisture content of all surface fuel (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 14, "nodata": null, "summary": null } ], "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": { "x": 2, "y": 1 } }, "tags": []}Without calibration, the bands carry DUET’s spatial pattern, and their
magnitudes are not physical values
(Pattern, not magnitude).
Check the pattern before you calibrate. Litter lies under and around the
crowns, and grass fills the openings between them:
A 150 m window of the Blue Mountain run: the tree grid’s foliage summed through its layers, then the uncalibrated litter and grass loads after 25 years. The inventory is 8,040 trees detected on the NAIP canopy height model and filled in with GDAM allometry.
If litter is missing under the crowns, check the inventory’s species codes and
the run’s years_since_burn.
Calibrate the output
Section titled “Calibrate the output”To set the magnitudes, add a calibration object to the create request. It
takes a target for each parameter (fuel_load, fuel_depth,
fuel_moisture) and fuel type (grass, litter, coniferous, deciduous,
or all). all calibrates every fuel type together and cannot be combined
with another fuel type. Parameters without a target keep DUET’s values.
Each target uses one method:
meansdrescales to a target mean and standard deviation. Use it when the targets come from a dataset large enough to approximate a normal distribution.maxminrescales to a target maximum and minimum. Use it when fuel data are limited, or when their distribution does not resemble DUET’s.constantassigns one value to every cell that carries the fuel. Use it when one value is all you have.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/duet' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "DUET surface fuels (example calibration targets)", "source_grid_id": "your-tree-grid-id", "years_since_burn": 25, "wind_direction": 270, "wind_variability": 30, "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.total", "fuel_moisture.total" ], "calibration": { "fuel_load": { "grass": { "method": "meansd", "mean": 0.5, "sd": 0.25 }, "litter": { "method": "maxmin", "max": 5.0, "min": 0.0 } }, "fuel_depth": { "grass": { "method": "constant", "value": 0.3 }, "litter": { "method": "constant", "value": 0.06 } }, "fuel_moisture": { "all": { "method": "constant", "value": 8.0 } } }}'# Example targets. Replace them with values for your fuelbed.calibration = ff.duet_calibration( fuel_load={ "grass": {"method": "meansd", "mean": 0.5, "sd": 0.25}, "litter": {"method": "maxmin", "max": 5.0, "min": 0.0}, }, fuel_depth={ "grass": {"method": "constant", "value": 0.3}, "litter": {"method": "constant", "value": 0.06}, }, fuel_moisture={"all": {"method": "constant", "value": 8.0}},)calibrated_grid = ff.grids.create_surface_fuel_grid_from_duet( tree_grid, years_since_burn=25, wind_direction=270, wind_variability=30, bands=[ "fuel_load.grass", "fuel_load.litter", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.total", "fuel_moisture.total", ], calibration=calibration, name="DUET surface fuels (example calibration targets)",){ "id": "your-calibrated-duet-grid-id", "domain_id": "your-domain-id", "name": "DUET surface fuels (example calibration targets)", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-03T21:35:59.875587", "modified_on": "2026-11-03T21:35:59.875587", "checksum": "777013a827954479abab1b6453ecc2a4", "source": { "years_since_burn": 25, "wind_direction": 270, "wind_variability": 30, "operation": "duet", "input": "grid", "entity": "tree", "source_grid_id": "your-tree-grid-id", "source_grid_checksum": "ce24568216f8453e9db7a162189e8007", "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.total", "fuel_moisture.total" ], "calibration": { "fuel_load": { "grass": { "method": "meansd", "mean": 0.5, "sd": 0.25 }, "litter": { "method": "maxmin", "max": 5.0, "min": 0.0 } }, "fuel_depth": { "grass": { "method": "constant", "value": 0.3 }, "litter": { "method": "constant", "value": 0.06 } }, "fuel_moisture": { "all": { "method": "constant", "value": 8.0 } } } }, "modifications": [], "bands": [ { "key": "fuel_load.grass", "name": "Grass Fuel Load", "description": "Oven-dry mass per unit ground area of grass.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.litter", "name": "Litter Fuel Load", "description": "Oven-dry mass per unit ground area of litter.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.total", "name": "Total Surface Fuel Load", "description": "Oven-dry mass per unit ground area of all surface fuel (grass plus litter).", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null }, { "key": "fuel_depth.grass", "name": "Grass Fuel Depth", "description": "Vertical depth of the grass fuel bed.", "type": "continuous", "unit": "m", "index": 3, "nodata": null, "summary": null }, { "key": "fuel_depth.litter", "name": "Litter Fuel Depth", "description": "Vertical depth of the litter fuel bed.", "type": "continuous", "unit": "m", "index": 4, "nodata": null, "summary": null }, { "key": "fuel_depth.total", "name": "Total Surface Fuel Depth", "description": "Vertical depth of the total surface fuel bed (grass plus litter).", "type": "continuous", "unit": "m", "index": 5, "nodata": null, "summary": null }, { "key": "fuel_moisture.total", "name": "Total Surface Fuel Moisture", "description": "Moisture content of all surface fuel (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 6, "nodata": null, "summary": null } ], "georeference": null, "error": null, "chunks": null, "tags": []}Record the id as your-calibrated-duet-grid-id and poll it to
completed:
curl -X 'GET' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/your-calibrated-duet-grid-id' \ -H 'accept: application/json' \ -H 'api-key: my-api-key'calibrated_grid.wait(){ "id": "your-calibrated-duet-grid-id", "domain_id": "your-domain-id", "name": "DUET surface fuels (example calibration targets)", "description": "", "status": "completed", "progress": { "percent": 100, "message": "Complete" }, "created_on": "2026-11-03T21:35:59.875587Z", "modified_on": "2026-11-03T21:36:45.897554Z", "checksum": "777013a827954479abab1b6453ecc2a4", "source": { "bands": [ "fuel_load.grass", "fuel_load.litter", "fuel_load.total", "fuel_depth.grass", "fuel_depth.litter", "fuel_depth.total", "fuel_moisture.total" ], "input": "grid", "source_grid_checksum": "ce24568216f8453e9db7a162189e8007", "calibration": { "fuel_load": { "litter": { "min": 0.0, "method": "maxmin", "max": 5.0 }, "grass": { "mean": 0.5, "method": "meansd", "sd": 0.25 } }, "fuel_moisture": { "all": { "method": "constant", "value": 8.0 } }, "fuel_depth": { "litter": { "method": "constant", "value": 0.06 }, "grass": { "method": "constant", "value": 0.3 } } }, "wind_direction": 270, "operation": "duet", "wind_variability": 30, "source_grid_id": "your-tree-grid-id", "entity": "tree", "years_since_burn": 25 }, "modifications": [], "bands": [ { "key": "fuel_load.grass", "name": "Grass Fuel Load", "description": "Oven-dry mass per unit ground area of grass.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.litter", "name": "Litter Fuel Load", "description": "Oven-dry mass per unit ground area of litter.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.total", "name": "Total Surface Fuel Load", "description": "Oven-dry mass per unit ground area of all surface fuel (grass plus litter).", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null }, { "key": "fuel_depth.grass", "name": "Grass Fuel Depth", "description": "Vertical depth of the grass fuel bed.", "type": "continuous", "unit": "m", "index": 3, "nodata": null, "summary": null }, { "key": "fuel_depth.litter", "name": "Litter Fuel Depth", "description": "Vertical depth of the litter fuel bed.", "type": "continuous", "unit": "m", "index": 4, "nodata": null, "summary": null }, { "key": "fuel_depth.total", "name": "Total Surface Fuel Depth", "description": "Vertical depth of the total surface fuel bed (grass plus litter).", "type": "continuous", "unit": "m", "index": 5, "nodata": null, "summary": null }, { "key": "fuel_moisture.total", "name": "Total Surface Fuel Moisture", "description": "Moisture content of all surface fuel (% of oven-dry weight).", "type": "continuous", "unit": "%", "index": 6, "nodata": null, "summary": null } ], "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": { "x": 2, "y": 1 } }, "tags": []}Calibration rescales only the cells that carry that fuel, and cells without
it stay at zero. A meansd target is the mean of the fuel-bearing cells, not
of the whole domain. In this run grass covers every cell. Its
calibrated mean is 0.570 kg/m² and its standard deviation 0.120 kg/m², against
the 0.5 ± 0.25 target. When the rescaled values would fall below zero, meansd
compresses the values below the median into the range from zero to the median,
which moves the mean and standard deviation off the target. Litter covers 49.1%
of cells, and maxmin places it on the target range, 0 to 5 kg/m².
Calibrated grass and litter loads of the cells that carry each fuel, in the calibrated grid from the Blue Mountain run. Grass has a target mean of 0.5 kg/m² and a target standard deviation of 0.25 kg/m², and the result has a mean of 0.570 kg/m². Litter has a target range of 0 to 5 kg/m², and its counts are on a log scale.
Check the result
Section titled “Check the result”The example below reads the calibrated grid. To read the uncalibrated grid, use your-raw-duet-grid-id instead. Check the metadata first:
statusiscompleted.georeference.shapeis the tree grid’s horizontal shape.- Every requested band is present with its unit:
kg/m**2,m, or%. - On a calibrated grid,
source.calibrationrecords the targets you sent.
Then read representative bands and check their coverage and range:
import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
# Use the uncalibrated grid id instead if you omitted calibration.grid = ff.get_grid("your-domain-id", "your-calibrated-duet-grid-id")grid.wait()
# Check the metadata before reading values.print(grid.status, grid.to_dict()["georeference"]["shape"])
# to_numpy fetches every chunk of a band and reassembles it into one 2D array.for band in ("fuel_load.grass", "fuel_load.litter", "fuel_load.total"): values = grid.to_numpy(band) positive = values[values > 0] print( band, f"coverage={positive.size / values.size:.1%}", f"range={positive.min():.3f}–{positive.max():.3f}", )grid.to_numpy(band) fetches every chunk of a band and reassembles it into one
2D array. The
grid-data guide covers JSON,
sparse, and binary reads.
Use the grid downstream
Section titled “Use the grid downstream”- Align before combining. The DUET grid has the source tree grid’s horizontal lattice. Resample or reproject other 2D grids to match it. A 3D tree grid cannot be resampled.
- Export calibrated bands by role. A QUIC-Fire export takes calibrated
fuel_load.total,fuel_depth.total, andfuel_moisture.totalas its surface load, depth, and moisture roles. DUET does not produce surface SAVR. Fortreesss.dat, supply both canopy and surface SAVR from other aligned grids, or omit both SAVR roles. The QUIC-Fire inputs tutorial assembles a full export. - Export for GIS or analysis. Use a GeoTIFF export for selected 2D bands, or NetCDF or Zarr.
Common pitfalls
Section titled “Common pitfalls”- Missing source bands. A tree grid from a default voxelization has only
bulk_density.foliage.live, andPOST grids/duetrejects it with422. Voxelize the inventory again withspcdandfuel_moisture.live. - Invalid species codes. A
fia_species_codethat is not an FIA species fails the job withUNRESOLVABLE_SPECIES. Correct the inventory and voxelize again. FIA species that DUET has no parameters for run as a species of the same genus, or of the same softwood or hardwood class. - Calibrating a fuel type that is absent. A target for a fuel type DUET did
not produce, such as deciduous litter in a pure conifer stand, fails the job
with
CALIBRATION_FAILED. Check the uncalibrated split-litter bands and remove targets for fuel types that are all zero. - Too few years since burn. DUET starts in the year of the last fire with
no grass or litter, so a low
years_since_burnleaves little litter. - Long runs. Runtime grows with
years_since_burnand grid size. Poll the grid, and treatfailedas terminal. - Using the wrong bands at export. DUET’s grass and litter bands do not map
to the FBFM lookup’s
1hr,10hr, and100hrbands. Assign each DUET band to the downstream role that matches its quantity and unit.