Create QUIC-Fire Input Files
QUIC-Fire requires the following gridded binary input files to run a fire simulation with custom fuels and topography data:
- treesrhof.dat: Fuel bulk density (kg/m^3).
- treesmoist.dat: Fuel moisture content (unitless).
- treesfueldepth.dat: Surface fuel bed depth (m).
- topo.dat: Elevation (m).
The FastFuels API provides a way to create these input files by aligning common data sources to a common grid and format, and then writing the data to the required binary format for QUIC-Fire. This tutorial walks users through the process of creating fuels and topography data for a small area in the Blue Mountain Recreation Area south of Missoula, Montana, and exporting the data to the required QUIC-Fire input files for a fire simulation.
Tutorial
-
Obtain a GeoJSON for your Region of Interest
Spatial data is passed to the API via the GeoJSON format. You can use a tool like geojson.io to create a GeoJSON file for your region of interest. Or, many GIS software packages can export data to the GeoJSON format.
The GeoJSON we will use for this tutorial is a simple polygon encapsulated in a FeatureCollection for an area in the Blue Mountain Recreation Area south of Missoula, Montana.
-
Create a Domain Resource
Submit a POST request to the
/v1/domains
endpoint with the GeoJSON, in addition to name, description, and resolution fields in the request body.An example response is shown below:
-
Create Road and Water Feature Resources
This example uses Open Street Maps to collect road and water polygons (called features by the FastFuels API) in the domain. These features are used to remove fuel from the domain where roads and water are present.
Submit a POST request to
/v1/domains/{domainId}/features/road
and/v1/domains/{domainId}/features/water
endpoints with the domain ID and road and water feature data in the request body.Both resources will return similar responses to one another. An example response for the road feature is shown below:
Note the
status
field which has a value ofpending
until the feature is processed. -
Create a Tree Inventory Resource
This example uses the TreeMap raster product in combination with the Forest Inventory and Analysis (FIA) database to create a tree inventory resource for the domain. In addition, we utilize the road and water features created in the previous step to remove trees from the domain where roads and water are present.
Submit a POST request to the
/v1/domains/{domainId}/inventories/tree
endpoint with the domain ID and tree inventory data in the request body.An example response is shown below:
-
Create a Tree Grid
In this example we use our tree inventory data to create a 3D grid of voxelized canopy fuel. We select bulk density, and moisture content as attributes to include in the 3D grid. The bulk density information is calculated from individual trees in the tree inventory using allometric equations. We set live fuel moisture content to be a uniform 100% across all occupied cells in the grid.
Submit a POST request to the
/v1/domains/{domainId}/grids/tree
endpoint with the domain ID and tree grid data in the request body.An example response is shown below:
-
Create a Surface Grid
We use national coverage data of the 40 Fire Behavior Fuel Models from the LANDFIRE program to create a surface grid of relevant attributes needed for the QUIC-Fire module. In this example we include fuel load, fuel bed depth, and fuel moisture content in the surface grid. In addition, we specify the proportion of 10-hour fuels and the curing of live herbaceous and live woody components that should be included in the fuel bed. We also provide measurements of fuel moisture content for each of the size classes in the fuel bed.
Submit a POST request to the
/v1/domains/{domainId}/grids/surface
endpoint with the domain ID and surface grid data in the request body.An example response is shown below:
-
Create a Topography Grid
In this tutorial we use data from LANDFIRE to create a grid of elevation values for the gridded domain.
Submit a POST request to the
/v1/domains/{domainId}/grids/topography
endpoint with the domain ID and topography grid data in the request body.An example response is shown below:
-
Create a QUIC-Fire Grid Export
To export grids to the set of QUIC-Fire input files we need to create an Export off of the Grids resource.
To do this, submit a POST request to the
/v1/domains/{domainId}/grids/exports/QUICFire
endpoint.An example response is shown below:
-
Download QUIC-Fire Input Files
Once the Export resource reaches a status of
completed
, you can download the QUIC-Fire input files by submitting a GET request to the/v1/domains/{domainId}/grids/exports/QUICFire
endpoint. The response body contains asignedURL
field which will download the compressed input files when accessed.