Remove surface fuel under roads, water and buildings
You are viewing in-progress documentation for v2. Switch to the stable version for the current production release.
A surface fuel grid built from LANDFIRE assigns fuel to every cell, including
cells under roads, streams and houses. To set the fuel in those cells to zero,
add a modification rule for each feature when you create the fuel grid. Each
rule tests every cell against the feature’s geometry and changes the fuel load
bands in the cells that match. For how conditions, actions, buffer_m and
target work, see
About modifications.
Prerequisites
Section titled “Prerequisites”-
An API key: my-api-key.
-
A domain: your-domain-id. See Create a domain.
-
A completed road feature and water feature in that domain. See Create road and water features from OpenStreetMap and record your-road-feature-id and your-water-feature-id.
-
A completed building feature in that domain. See Create building features and record your-building-feature-id.
-
A completed FBFM40 grid at 2 m with LANDFIRE’s urban blocks removed. LANDFIRE classifies developed land as
NB1in 30 m blocks, which carry no fuel.remove_non_burnable: ["NB1"]replaces each block with the burnable fuel model around it, so the 2 m features decide where fuel is removed. See Build surface fuel from LANDFIRE, poll the grid tocompleted, and record your-fbfm40-grid-id:POST fbfm40/landfire curl -X 'POST' \'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/fbfm40/landfire' \-H 'accept: application/json' \-H 'api-key: my-api-key' \-H 'Content-Type: application/json' \-d '{"name": "FBFM40 — LF2024, 2 m, urban blocks removed","version": "2024","alignment": {"target": "domain", "resolution": 2.0},"remove_non_burnable": ["NB1"]}'Create the FBFM40 grid and wait import fastfuels_sdk.v2 as fffrom fastfuels_sdk.v2.client_library.models import LandfireFbfm40Versionff.set_api_key("my-api-key")domain = ff.Domain.from_id("your-domain-id")fbfm = ff.grids.create_fuel_model_grid_from_landfire_fbfm40(domain,version=LandfireFbfm40Version("2024"),output_resolution_m=2.0,remove_non_burnable=["NB1"],name="FBFM40 — LF2024, 2 m, urban blocks removed",)fbfm.wait(){"id": "your-fbfm40-grid-id","domain_id": "your-domain-id","name": "FBFM40 — LF2024, 2 m, urban blocks removed","description": "","status": "pending","progress": null,"created_on": "2026-11-06T22:23:11.119840","modified_on": "2026-11-06T22:23:11.119840","checksum": "68212a0c38d34669b86e0f39f76c8ade","source": {"name": "landfire","product": "fbfm40","version": "2024","description": "LANDFIRE FBFM40 fuel model codes (Scott-Burgan 40 classification)","extent_buffer_cells": 0,"alignment": {"target": "domain","resolution": 2.0,"method": null},"disturbance": null,"remove_non_burnable": ["NB1"],"boundary_scatter": null,"season": null,"year": 2024},"modifications": [],"bands": [{"key": "fbfm","name": "Scott & Burgan 40 Fuel Model","description": "Scott & Burgan 40 fire behavior fuel model code (e.g. GR1, TL3, SH5). Convert to fuel parameters via /grids/lookup/fbfm40.","type": "categorical","unit": null,"index": 0,"nodata": null,"summary": null}],"georeference": null,"error": null,"chunks": {"shape": [512, 512],"count": null,"count_by_axis": null},"tags": []}
The examples use the Pattee Canyon domain near Missoula, Montana:
fuel_load.1hr on the Pattee Canyon domain, from LANDFIRE FBFM40 at 2 m.
Left: LANDFIRE as classified, with its NB1 urban blocks (grey) carrying no
fuel. Right: with remove_non_burnable: ["NB1"], the grid the examples below
start from. Removing the blocks gives fuel to 34,850 cells.
Remove fuel under roads
Section titled “Remove fuel under roads”To remove fuel in every cell a road touches, add one rule: an intersects
condition on the road feature with target: "cell", and a replace action
that sets each fuel load band to 0. Road features are polygons the width of
the road, so the rule needs no buffer_m.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — roads masked", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-road-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] } ]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — roads masked", modifications=[ ff.mask("your-road-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ],)print(grid.id, grid.status){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — roads masked", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-06T22:24:41.349476", "modified_on": "2026-11-06T22:24:41.349476", "checksum": "7021d6b4faab4806ba5da0e9ce0ef815", "source": { "name": "lookup", "table": "fbfm40", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm", "herbaceous_curing": 0.67 }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-road-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}The 201 returns your modifications with defaults filled in, such as
"buffer_m": null, and mints a grid id. Record it: your-grid-id.
The rule runs while the grid is built.
Grids have no remove action, because every cell keeps its place in the grid.
Setting a band to 0 with replace removes its fuel.
Poll until completed
Section titled “Poll until completed”Poll the grid, or wait() on it:
curl -X 'GET' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/your-grid-id' \ -H 'accept: application/json' \ -H 'api-key: my-api-key'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
grid = ff.get_grid("your-domain-id", "your-grid-id")grid.wait(){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — roads masked", "description": "", "status": "completed", "progress": { "percent": 100, "message": "Complete" }, "created_on": "2026-11-06T22:24:41.349476Z", "modified_on": "2026-11-06T22:24:44.485075Z", "checksum": "7021d6b4faab4806ba5da0e9ce0ef815", "source": { "table": "fbfm40", "herbaceous_curing": 0.67, "name": "lookup", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm" }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-road-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": { "type": "continuous", "count": 235450, "nodata_count": 0, "min": 0.0, "max": 1.3001821041107178, "mean": 0.3193101393772547, "std": 0.3794673795049627 } }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": { "type": "continuous", "count": 235450, "nodata_count": 0, "min": 0.0, "max": 0.8966773152351379, "mean": 0.31576584792098855, "std": 0.16816596837337072 } }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": { "type": "continuous", "count": 235450, "nodata_count": 0, "min": 0.0, "max": 0.9863450527191162, "mean": 0.23578052714413253, "std": 0.21484812548544568 } } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": 2, "count_by_axis": { "y": 1, "x": 2 } }, "tags": []}On the Pattee Canyon domain the rule removes fuel from 10,939 cells, 38.9 t of dead fuel, or 4.5% of the domain’s 859.1 t.
fuel_load.1hr before and after the road rule, in a 220 × 160 m part of the
domain. Every cell a road polygon (outlined) touches has no fuel (grey).
Remove fuel in water
Section titled “Remove fuel in water”To remove fuel in water, reference the water feature in the same rule. Lakes
and ponds are polygons, and rivers, canals, streams, drains and ditches are
widened into polygons. Other waterway lines stay LineStrings, and with
target: "cell" the rule matches every cell a line crosses.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — water masked", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-water-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] } ]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — water masked", modifications=[ ff.mask("your-water-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ],)print(grid.id, grid.status){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — water masked", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-06T22:24:47.303637", "modified_on": "2026-11-06T22:24:47.303637", "checksum": "c53c46bbf18b4c92b4c36d25702b730f", "source": { "name": "lookup", "table": "fbfm40", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm", "herbaceous_curing": 0.67 }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-water-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}On the Pattee Canyon domain the rule removes fuel from 2,265 cells along Pattee Creek, 10.1 t of dead fuel.
fuel_load.1hr before and after the water rule. The grey strip follows
Pattee Creek (outlined). The grey patch at the right is LANDFIRE bare ground
(NB9), which has no fuel before the rule.
Remove fuel under buildings
Section titled “Remove fuel under buildings”To remove fuel under buildings, reference the building feature. Footprints are
polygons, so the rule needs no buffer_m.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — buildings masked", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-building-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] } ]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — buildings masked", modifications=[ ff.mask("your-building-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ],)print(grid.id, grid.status){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — buildings masked", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-06T22:24:53.182613", "modified_on": "2026-11-06T22:24:53.182613", "checksum": "370113be98ab4fcd81da85c0476a2f32", "source": { "name": "lookup", "table": "fbfm40", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm", "herbaceous_curing": 0.67 }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-building-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}On the Pattee Canyon domain the rule removes fuel from 1,922 cells under the 25 footprints, 8.4 t of dead fuel.
fuel_load.1hr before and after the building rule, around two houses. The
cells under each footprint (outlined) have no fuel.
Remove fuel under roads, water and buildings in one grid
Section titled “Remove fuel under roads, water and buildings in one grid”To remove fuel under several features in one grid, add one rule per feature. Conditions in a rule are ANDed, so a road condition and a water condition in the same rule match only the cells that touch both. Separate rules match the cells that touch any of them.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — roads, water and buildings masked", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-road-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] }, { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-water-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] }, { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-building-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.10hr", "modifier": "replace", "value": 0}, {"band": "fuel_load.100hr", "modifier": "replace", "value": 0} ] } ]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — roads, water and buildings masked", modifications=[ ff.mask("your-road-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ff.mask("your-water-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ff.mask("your-building-feature-id", dead_fuel_bands, 0, operator="intersects", target="cell"), ],)print(grid.id, grid.status){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — roads, water and buildings masked", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-06T22:24:59.074129", "modified_on": "2026-11-06T22:24:59.074129", "checksum": "64b95fd95fb14933a0440d8fb7a3e407", "source": { "name": "lookup", "table": "fbfm40", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm", "herbaceous_curing": 0.67 }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-road-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] }, { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-water-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] }, { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-building-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.10hr", "modifier": "replace", "value": 0 }, { "band": "fuel_load.100hr", "modifier": "replace", "value": 0 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}On the Pattee Canyon domain the three rules remove fuel from 15,068 cells, 57.1 t of dead fuel, or 6.6% of the domain’s total.
fuel_load.1hr over the Pattee Canyon domain before and after the three
rules.
Thin fuel instead of removing it
Section titled “Thin fuel instead of removing it”To keep part of the fuel, use a multiply action instead of replace. A
value of 0.1 keeps 10% of the load in each cell the feature touches.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — thinned to 10% inside roads", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-road-feature-id"} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "multiply", "value": 0.1}, {"band": "fuel_load.10hr", "modifier": "multiply", "value": 0.1}, {"band": "fuel_load.100hr", "modifier": "multiply", "value": 0.1} ] } ]}'import fastfuels_sdk.v2 as fffrom fastfuels_sdk.v2.modifications import ( GridFeatureSpatialCondition, GridModification, GridModificationAction, GridSpatialTarget, Modifier, SpatialOperator,)
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
# ff.mask() only replaces, so a multiply action is built directly.thin = GridModification( conditions=[ GridFeatureSpatialCondition( source="feature", operator=SpatialOperator.INTERSECTS, target=GridSpatialTarget.CELL, feature_id="your-road-feature-id", ) ], actions=[ GridModificationAction(band=band, modifier=Modifier.MULTIPLY, value=0.1) for band in dead_fuel_bands ],)
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — thinned to 10% inside roads", modifications=[thin],)print(grid.id, grid.status){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Dead surface fuel — thinned to 10% inside roads", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-06T22:25:04.703129", "modified_on": "2026-11-06T22:25:04.703129", "checksum": "51d04a6891ad455e96c545f6da476595", "source": { "name": "lookup", "table": "fbfm40", "source_grid_id": "your-fbfm40-grid-id", "source_grid_checksum": "68212a0c38d34669b86e0f39f76c8ade", "source_band": "fbfm", "herbaceous_curing": 0.67 }, "modifications": [ { "conditions": [ { "source": "feature", "operator": "intersects", "feature_id": "your-road-feature-id", "buffer_m": null, "target": "cell" } ], "actions": [ { "band": "fuel_load.1hr", "modifier": "multiply", "value": 0.1 }, { "band": "fuel_load.10hr", "modifier": "multiply", "value": 0.1 }, { "band": "fuel_load.100hr", "modifier": "multiply", "value": 0.1 } ] } ], "bands": [ { "key": "fuel_load.1hr", "name": "1-hour Fuel Load", "description": "Oven-dry mass per unit area of 1-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 0, "nodata": null, "summary": null }, { "key": "fuel_load.10hr", "name": "10-hour Fuel Load", "description": "Oven-dry mass per unit area of 10-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 1, "nodata": null, "summary": null }, { "key": "fuel_load.100hr", "name": "100-hour Fuel Load", "description": "Oven-dry mass per unit area of 100-hour timelag dead fuels.", "type": "continuous", "unit": "kg/m**2", "index": 2, "nodata": null, "summary": null } ], "georeference": { "crs": "EPSG:32612", "transform": [2.0, 0.0, 272704.14070633065, 0.0, -2.0, 5190558.273101079], "shape": [425, 554] }, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": []}In the SDK, ff.mask() only replaces a band with a value, so the example
builds the rule with GridModification and a multiply action.
On the Pattee Canyon domain thinning the same 10,939 road cells removes 35.0 t
of dead fuel, against 38.9 t for replace.
fuel_load.1hr along the roads before any rule, with replace and 0, and
with multiply and 0.1. Thinned cells keep a tenth of their load.
Widen the mask with buffer_m
Section titled “Widen the mask with buffer_m”To also reach the cells beside a feature, add buffer_m (meters) to the
condition. The feature’s geometry grows by that distance on every side before
the test.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/lookup/fbfm40' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Dead surface fuel — thinned to 10% within 5 m of roads", "source_grid_id": "your-fbfm40-grid-id", "bands": ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"], "modifications": [ { "conditions": [ {"source": "feature", "operator": "intersects", "target": "cell", "feature_id": "your-road-feature-id", "buffer_m": 5} ], "actions": [ {"band": "fuel_load.1hr", "modifier": "multiply", "value": 0.1}, {"band": "fuel_load.10hr", "modifier": "multiply", "value": 0.1}, {"band": "fuel_load.100hr", "modifier": "multiply", "value": 0.1} ] } ]}'import fastfuels_sdk.v2 as fffrom fastfuels_sdk.v2.modifications import ( GridFeatureSpatialCondition, GridModification, GridModificationAction, GridSpatialTarget, Modifier, SpatialOperator,)
ff.set_api_key("my-api-key")
fbfm = ff.get_grid("your-domain-id", "your-fbfm40-grid-id")
dead_fuel_bands = ["fuel_load.1hr", "fuel_load.10hr", "fuel_load.100hr"]
# ff.mask() only replaces, so a multiply action is built directly.thin = GridModification( conditions=[ GridFeatureSpatialCondition( source="feature", operator=SpatialOperator.INTERSECTS, target=GridSpatialTarget.CELL, feature_id="your-road-feature-id", buffer_m=5, ) ], actions=[ GridModificationAction(band=band, modifier=Modifier.MULTIPLY, value=0.1) for band in dead_fuel_bands ],)
grid = ff.grids.create_fuel_grid_from_fbfm40_lookup( fbfm, bands=dead_fuel_bands, name="Dead surface fuel — thinned to 10% within 5 m of roads", modifications=[thin],)print(grid.id, grid.status)On the Pattee Canyon domain a 5 m buffer raises the thinned cells from 10,939 to 23,969, and the dead fuel removed from 35.0 t to 76.6 t.
fuel_load.1hr thinned to 10% under the roads (outlined), without a buffer
and with buffer_m: 5.
Mask features smaller than a cell
Section titled “Mask features smaller than a cell”To mask every feature, including ones narrower than a cell, set
target: "cell", as the examples above do. The default, target: "centroid",
matches a cell only if its center falls inside the geometry, so a narrow path
or a small building that contains no cell center masks nothing. With cell,
every cell a feature touches is masked whole, so the masked area is larger
than the feature.
On the Pattee Canyon domain the building rule masks 1,922 cells with cell
and 1,396 with centroid. None of the 25 footprints is smaller than one 2 m
cell, and all 25 are smaller than one 30 m cell, so on a 30 m grid centroid
can miss whole houses.
The building rule with target: "centroid" and with target: "cell". With
cell, the cells along each footprint’s edge are masked too.
Common errors
Section titled “Common errors”-
422for a badfeature_id. The create call checks every referenced feature before it creates the grid. The feature must exist, belong to this domain and becompleted. A failed check creates no grid:{"detail": "Modification references feature_id 'does-not-exist', which does not exist in this domain."} -
422for a feature that isn’tcompleted. The message names the feature’s current status. Poll the feature tocompletedfirst. -
422for a feature from another domain. The message is the same as for an unknown feature. The feature and the grid must share a domain. -
Fuel left in other bands. Each action names one
band. If your grid carries live or herbaceous loads, add an action for each of those bands, or they keep their values inside the feature. -
Masked roads with no change. If LANDFIRE’s
NB1blocks are kept, many road and building cells already have no fuel, and the rules change little. Setremove_non_burnable: ["NB1"]on the FBFM40 grid first.
Next steps
Section titled “Next steps”- Remove trees with road, water and building features to remove trees near the same features.
- About modifications for the
operators,
buffer_mand how rules combine.