An attempt at simulating the spread of forest fires using GIS data for elevation, wind, and fuel.
This project is maintained by maxcdietrich
Run python -m pip install --user numpy in the terminal
Run python -m pip install -U matplotlib from the terminal
Run python3 -m pip install -U pygame --user from the terminal
Run conda install GDAL from the terminal
Run pip install pyshp from the terminal
Acquiring detailed wind data is crucial for the representation of wildfire. WindNinja is a lightweight simulation tool which is made to study air flow over topographic regions.
Visit https://github.com/firelab/windninja/wiki/Building-WindNinja-on-Linux for instructions on building WindNinja using CMake.
https://www.firelab.org/document/windninja-software
Visit https://www.landfire.gov/getdata.php and follow prompts to Data Distribution site. This tool allows you to download data for a specified region.
All .py files can be run from the terminal.
Once all data sets are downloaded (elevation.json, norm_elevation.json, final_shape.lcp, final_shape.prj, and slope.json), then write_map.py can be run to create the data set used in the simulation, and then calculate_fire.py can be run to begin the simulation.
Large File Warning!
write_map.py produces a file that is about 1.3 gigabytes. Make sure there is space on your hard drive before running the program.
The program will automatically terminate if the fire is extinguished or if the iteration limit is reached. By default this limit is 5000 iterations, however this can be changed in the final line of calculate_fire.py. All programs can also be terminated by pressing ctrl+c in the terminal window running the program.