Skip to content

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.

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

  2. A domain within CONUS: your-domain-id. See Create a domain.

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:

GET topography/3dep/coverage
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'

available is one of:

  • true: tiles cover the domain. tiles lists them, and acquisition_dates gives their dates. For lidar project tiles these are USGS publication dates.
  • false: no tiles at this resolution. Use 10 or 30.
  • null: coverage is unknown because the USGS National Map search didn’t respond. unavailable_reason says why, and the status is still 200. Run the check again; null doesn’t mean there’s no lidar.

source_resolution picks the 3DEP product to read:

source_resolutionProduct
1Seamless 1-Meter DEM (S1M). Where S1M has no tiles, the 1 m lidar project DEM tiles.
2The 1 m lidar project DEM tiles, read at their 2 m overview.
10 (default)1/3 arc-second seamless DEM.
301 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.

POST topography/3dep
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"]
}'

To build the grid from lidar at 2 m, set source_resolution to 2:

POST topography/3dep — 2 m
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"]
}'

Record the grid id: your-grid-id.

GET grid status
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'

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.

  • Requesting source_resolution: 1 or 2 where there’s no lidar. The grid fails with COVERAGE_ERROR. The coverage check (step 1) tells you up front: if available is false, use 10 or 30.
  • Reading available: null as 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 with TILE_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.