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)This page generates and displays all plots for the Marshall Fire analysis. Plots are only regenerated if they don’t already exist.
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)# 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


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
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.
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
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
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.
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