This page generates and displays all plots for the Marshall Fire analysis. Plots are only regenerated if they don’t already exist.

Code
using Pkg
Pkg.activate(joinpath(@__DIR__, ".."))
Pkg.instantiate()

using MarshallWildfire
using GLMakie

# Set output directory inside report folder
output_dir = joinpath(@__DIR__, "images")
mkpath(output_dir)

2.1 Landfire Layers

Code
# Check if any landfire plots are missing
lf = MarshallWildfire.get_landfire_data()
missing_layers = filter(k -> !isfile(joinpath(output_dir, "landfire_$k.png")), keys(lf))

if !isempty(missing_layers)
    @info "Generating landfire layer plots"
    MarshallWildfire.plot_landfire_layers(; output_dir)
else
    @info "All landfire layer plots already exist"
end

Fuel Model

Slope

Aspect

2.2 Fuel Flammability

Code
path = joinpath(output_dir, "fuel_flammability.png")
if !isfile(path)
    @info "Generating fuel_flammability.png"
    MarshallWildfire.plot_fuel_flammability(; output_dir)
else
    @info "fuel_flammability.png already exists"
end

Fuel Flammability

2.3 Anderson 13 Fuel Models

The Anderson 13 fuel models are standard classifications used in fire behavior prediction. Each model has properties that determine how fire spreads: fuel load, depth, surface-area-to-volume ratio, and moisture of extinction.

Code
path = joinpath(output_dir, "fuel_models.png")
if !isfile(path)
    @info "Generating fuel_models.png"
    MarshallWildfire.plot_fuel_models(; output_dir)
else
    @info "fuel_models.png already exists"
end

Anderson 13 Fuel Models

2.4 HRRR Wind Animation

Code
path = joinpath(output_dir, "hrrr_wind.gif")
if !isfile(path)
    @info "Generating hrrr_wind.gif"
    MarshallWildfire.plot_hrrr_wind(; output_dir)
else
    @info "hrrr_wind.gif already exists"
end

HRRR Wind Animation

2.5 HRRR Wind Surrogate

Wind field visualization using the WindField surrogate model, which provides interpolation in both space and time. The surrogate uses a finer spatial grid and interpolated time steps to demonstrate smooth transitions.

Code
path = joinpath(output_dir, "hrrr_wind_surrogate.gif")
if !isfile(path)
    @info "Generating hrrr_wind_surrogate.gif"
    MarshallWildfire.plot_hrrr_wind_surrogate(; output_dir)
else
    @info "hrrr_wind_surrogate.gif already exists"
end

HRRR Wind Surrogate