Build a topography grid from 3DEP
You are viewing in-progress documentation for v2. Switch to the stable version for the current production release.
Terrain shapes fire behavior — most directly, slope drives how fast a fire spreads uphill. This guide builds a topography grid — elevation, slope, and aspect — for your domain from the USGS 3DEP elevation program.
Prerequisites
Section titled “Prerequisites”-
An API key: my-api-key.
-
A domain within CONUS: your-domain-id. See Create a domain.
Step 1 (optional) — Check 3DEP coverage
Section titled “Step 1 (optional) — Check 3DEP coverage”The 10 m and 30 m sources cover all of CONUS. The 1 m and 2 m sources are
built from lidar and cover only the areas that have been flown. Check the
domain at the resolution you plan to request. This example checks the default
10 m source; for lidar, use resolution=1 or resolution=2:
curl -X 'GET' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/topography/3dep/coverage?resolution=10' \ -H 'accept: application/json' \ -H 'api-key: my-api-key'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
domain = ff.Domain.from_id("your-domain-id")
coverage = ff.grids.check_3dep_coverage(domain, resolution_m=10)print(coverage.available){ "resolution": 10, "available": true, "tile_count": 1, "tiles": [ "https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/current/n47w115/USGS_13_n47w115.tif" ], "acquisition_dates": null, "unavailable_reason": null}available is one of:
true: tiles cover the domain.tileslists them, andacquisition_datesgives their dates. For lidar project tiles these are USGS publication dates.false: no tiles at this resolution. Use10or30.null: coverage is unknown because the USGS National Map search didn’t respond.unavailable_reasonsays why, and the status is still200. Run the check again;nulldoesn’t mean there’s no lidar.
Step 2 — Create the topography grid
Section titled “Step 2 — Create the topography grid”source_resolution picks the 3DEP product to read:
source_resolution | Product |
|---|---|
1 | Seamless 1-Meter DEM (S1M). Where S1M has no tiles, the 1 m lidar project DEM tiles. |
2 | The 1 m lidar project DEM tiles, read at their 2 m overview. |
10 (default) | 1/3 arc-second seamless DEM. |
30 | 1 arc-second seamless DEM. |
2 is the same lidar elevation as 1 with a quarter of the cells. On a 2 m
grid, it matches 1 resampled to 2 m to within about 0.1 mm. For a 2 m grid,
use 2; for a 1 m grid, use 1. Where lidar project tiles overlap, the most
recently published tile is used. Gaps in lidar coverage are not filled from
the 10 m DEM.
source_resolution sets the product; alignment.resolution sets the output
cell size. bands selects which surfaces to compute. slope and aspect are
derived from the elevation surface.
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/topography/3dep' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Topography (3DEP 10 m)", "source_resolution": 10, "bands": ["elevation", "slope", "aspect"]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
domain = ff.Domain.from_id("your-domain-id")
grid = ff.grids.create_topography_grid_from_3dep( domain, source_resolution_m=10, bands=["elevation", "slope", "aspect"], name="Topography (3DEP 10 m)",){ "id": "your-grid-id", "domain_id": "your-domain-id", "name": "Topography (3DEP 10 m)", "description": "", "status": "pending", "progress": null, "created_on": "2026-11-13T23:58:45.113705", "modified_on": "2026-11-13T23:58:45.113705", "checksum": "6b3ceb95eebb42c483b48e4e31dc72df", "source": { "name": "3dep", "product": "topography", "source_resolution": 10, "description": "3DEP topographic data (elevation, slope, aspect)", "extent_buffer_cells": 0, "alignment": { "target": "domain", "resolution": null, "method": null }, "bands": ["elevation", "slope", "aspect"], "tile_metadata": null }, "modifications": [], "bands": [ { "key": "elevation", "name": "Elevation", "description": "Height above sea level.", "type": "continuous", "unit": "m", "index": 0, "nodata": null, "summary": null }, { "key": "slope", "name": "Slope", "description": "Terrain slope (0-90 degrees).", "type": "continuous", "unit": "deg", "index": 1, "nodata": null, "summary": null }, { "key": "aspect", "name": "Aspect", "description": "Downslope compass direction, degrees clockwise from north (0-360). Flat cells are 0.", "type": "continuous", "unit": "deg", "index": 2, "nodata": null, "summary": null } ], "georeference": null, "error": null, "chunks": { "shape": [512, 512], "count": null, "count_by_axis": null }, "tags": [], "attributions": []}To build the grid from lidar at 2 m, set source_resolution to 2:
curl -X 'POST' \ 'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/grids/topography/3dep' \ -H 'accept: application/json' \ -H 'api-key: my-api-key' \ -H 'Content-Type: application/json' \ -d '{ "name": "Topography (3DEP 2 m)", "source_resolution": 2, "bands": ["elevation", "slope", "aspect"]}'import fastfuels_sdk.v2 as ff
ff.set_api_key("my-api-key")
domain = ff.Domain.from_id("your-domain-id")
grid = ff.grids.create_topography_grid_from_3dep( domain, source_resolution_m=2, bands=["elevation", "slope", "aspect"], name="Topography (3DEP 2 m)",)Record the grid id: your-grid-id.
Step 3 — Poll until completed
Section titled “Step 3 — Poll until completed”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": "Topography (3DEP 10 m)", "description": "", "status": "completed", "progress": { "percent": 100, "message": "Complete" }, "created_on": "2026-11-13T23:58:45.113705Z", "modified_on": "2026-11-13T23:58:47.666165Z", "checksum": "6b3ceb95eebb42c483b48e4e31dc72df", "source": { "extent_buffer_cells": 0, "bands": ["elevation", "slope", "aspect"], "product": "topography", "tile_metadata": { "native_crs": "EPSG:4326", "tile_source": null, "tiles": [ "https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/current/n47w115/USGS_13_n47w115.tif" ], "acquisition_dates": null, "tile_count": 1 }, "description": "3DEP topographic data (elevation, slope, aspect)", "alignment": { "method": null, "target": "domain", "resolution": null }, "name": "3dep", "source_resolution": 10 }, "modifications": [], "bands": [ { "key": "elevation", "name": "Elevation", "description": "Height above sea level.", "type": "continuous", "unit": "m", "index": 0, "nodata": -999999.0, "summary": { "type": "continuous", "count": 19435, "nodata_count": 0, "min": 957.2491455078125, "max": 1170.220947265625, "mean": 1035.1221123509154, "std": 43.26826392505437 } }, { "key": "slope", "name": "Slope", "description": "Terrain slope (0-90 degrees).", "type": "continuous", "unit": "deg", "index": 1, "nodata": null, "summary": { "type": "continuous", "count": 19435, "nodata_count": 0, "min": 0.03334927186369896, "max": 26.68025016784668, "mean": 10.063933507550114, "std": 5.003488313570728 } }, { "key": "aspect", "name": "Aspect", "description": "Downslope compass direction, degrees clockwise from north (0-360). Flat cells are 0.", "type": "continuous", "unit": "deg", "index": 2, "nodata": null, "summary": { "type": "continuous", "count": 19435, "nodata_count": 0, "min": 0.006588902790099382, "max": 359.9889831542969, "mean": 133.30367792884545, "std": 127.14684230175233 } } ], "georeference": { "crs": "EPSG:32611", "transform": [ 7.7301175133338464, 0.0, 720227.9398802927, 0.0, -7.730117513336364, 5190652.2875135 ], "shape": [115, 169] }, "error": null, "chunks": { "shape": [512, 512], "count": 1, "count_by_axis": { "x": 1, "y": 1 } }, "tags": [], "attributions": [ { "dataset": "USGS 3DEP 1/3 arc-second DEM", "license_name": "LicenseRef-US-Government-Public-Domain", "license_url": "https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits", "citation": "U.S. Geological Survey, 3D Elevation Program 1/3 Arc-Second Digital Elevation Model, accessed November 13, 2026 at https://www.usgs.gov/3d-elevation-program.", "access_url": "https://www.usgs.gov/3d-elevation-program", "accessed_on": "2026-11-13" } ]}The three bands come back with units m (elevation) and deg (slope,
aspect).
The completed grid’s attributions lists each 3DEP product it was built
from, with one entry per lidar project for the 1 m and 2 m sources. Each entry
gives the dataset, its license, and a citation. Reproduce each citation
wherever you use or share the data.
Common pitfalls
Section titled “Common pitfalls”- Requesting
source_resolution: 1or2where there’s no lidar. The grid fails withCOVERAGE_ERROR. The coverage check (step 1) tells you up front: ifavailableisfalse, use10or30. - Reading
available: nullas no coverage. It means the USGS search didn’t respond. Check again. If the search doesn’t respond while a 1 m or 2 m grid is building, the grid fails withTILE_SOURCE_UNAVAILABLE; create it again. - Domain outside CONUS. 3DEP is a US program. Domains elsewhere have no coverage.
- Expecting slope/aspect without elevation. They’re derived from the elevation surface. The service computes them from the sampled DEM, so list the bands you want.