using WildfireData
using CairoMakie
CairoMakie.activate!()
prods = LANDFIRE.products()
category_counts = Dict{Symbol, Int}()
for (_, v) in prods
cat = v.category
category_counts[cat] = get(category_counts, cat, 0) + 1
end
cats = collect(keys(category_counts))
counts = [category_counts[c] for c in cats]
labels = [replace(string(c), "_" => " ") for c in cats]
order = sortperm(counts)
labels = labels[order]
counts = counts[order]
fig = Figure(size=(700, 400))
ax = Axis(fig[1, 1], title="LANDFIRE Products by Category",
xlabel="Number of Products", yticks=(1:length(labels), labels))
barplot!(ax, 1:length(counts), counts, direction=:x, color=:seagreen)
figLANDFIRE
Landscape Fire and Resource Management Planning Tools
Overview
The LANDFIRE module provides access to the LANDFIRE program’s geospatial data products. LANDFIRE provides nationwide, consistent vegetation, fuel, and fire regime data for the United States.
Data Source: LANDFIRE
Available Products
Fuel Products
| Product | Description |
|---|---|
:FBFM13 |
Anderson 13 Fire Behavior Fuel Models |
:FBFM40 |
Scott and Burgan 40 Fire Behavior Fuel Models |
:CFFDRS |
Canadian Forest Fire Danger Rating System |
:CBD |
Canopy Bulk Density |
:CBH |
Canopy Base Height |
:CC |
Canopy Cover |
:CH |
Canopy Height |
:FVC |
Fuel Vegetation Cover |
:FVH |
Fuel Vegetation Height |
:FVT |
Fuel Vegetation Type |
Vegetation Products
| Product | Description |
|---|---|
:BPS |
Biophysical Settings |
:EVC |
Existing Vegetation Cover |
:EVH |
Existing Vegetation Height |
:EVT |
Existing Vegetation Type |
:SCLASS |
Succession Class |
:VCC |
Vegetation Condition Class |
:VDEP |
Vegetation Departure |
Disturbance Products
| Product | Description |
|---|---|
:Dist |
Annual Disturbance |
:HDist |
Historical Disturbance (1999-present) |
Topographic Products
| Product | Description |
|---|---|
:Elev |
Elevation |
:Slp |
Slope |
:Asp |
Aspect |
Fire Regime Products
| Product | Description |
|---|---|
:FRG |
Fire Regime Groups |
:MFRI |
Mean Fire Return Interval |
:PLS |
Percent Low Severity Fire |
:PMS |
Percent Mixed Severity Fire |
:PRS |
Percent Replacement Severity Fire |
Regions
| Region | Description |
|---|---|
:conus |
Continental United States |
:alaska |
Alaska |
:hawaii |
Hawaii |
Versions
LANDFIRE data is versioned by year: :LF2001, :LF2008, :LF2010, :LF2012, :LF2014, :LF2016, :LF2020, :LF2022, :LF2023, :LF2024
Basic Usage
using WildfireData
# List all products
LANDFIRE.products()
# Filter by category
LANDFIRE.products(category=:fuel)
LANDFIRE.products(category=:vegetation)
# Convenience category functions
LANDFIRE.fuel_products()
LANDFIRE.vegetation_products()
LANDFIRE.topographic_products()
LANDFIRE.fire_regime_products()
LANDFIRE.disturbance_products()
# Print general info
LANDFIRE.info()Web Coverage Service (WCS)
Access LANDFIRE data via WCS for streaming or custom area downloads:
# Get WCS URL
url = LANDFIRE.wcs_url(:conus, :LF2024)
# Get WCS GetCapabilities URL
url = LANDFIRE.wcs_capabilities_url(:conus, :LF2024)Web Map Service (WMS)
Access LANDFIRE data via WMS for visualization:
# Get WMS URL
url = LANDFIRE.wms_url(:conus, :LF2024)
# Get WMS GetCapabilities URL
url = LANDFIRE.wms_capabilities_url(:conus, :LF2024)Downloading Full Extent
Warning
Full extent downloads are very large (hundreds of MB to several GB). Use WCS for smaller areas when possible.
# Download full extent GeoTIFF
path = LANDFIRE.download_product(:FBFM40, :conus, :LF2024)
# Force re-download
path = LANDFIRE.download_product(:FBFM40, :conus, :LF2024, force=true)
# Get the download URL without downloading
url = LANDFIRE.download_url(:FBFM40, :conus, :LF2024)
# List previously downloaded files
LANDFIRE.list_downloads()Plot Example
API Reference
Functions
products(; category=nothing)- List available productsinfo()- Print LANDFIRE informationregions()- List available regionsversions()- List available versionswcs_url(region, version)- Get WCS base URLwcs_capabilities_url(region, version)- Get WCS GetCapabilities URLwms_url(region, version)- Get WMS base URLwms_capabilities_url(region, version)- Get WMS GetCapabilities URLdownload_product(product, region, version; force, verbose)- Download full extentdownload_url(product, region, version)- Get download URLlist_downloads()- List locally downloaded filesfuel_products()- List fuel productsvegetation_products()- List vegetation productstopographic_products()- List topographic productsfire_regime_products()- List fire regime productsdisturbance_products()- List disturbance productsdir()- Get local data directory path