Python implementation of a wildfire propagation example using m:n-CAk over Z and R.
<p dir="ltr"># m:n-CAk Wildfire Simulation Project</p><p dir="ltr"><br></p><p dir="ltr">## Overview</p><p dir="ltr">This project simulates the spread of a wildfire using a cellular automaton model based on m:n-CA...
Saved in:
| Main Author: | |
|---|---|
| Published: |
2025
|
| Subjects: | |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | <p dir="ltr"># m:n-CAk Wildfire Simulation Project</p><p dir="ltr"><br></p><p dir="ltr">## Overview</p><p dir="ltr">This project simulates the spread of a wildfire using a cellular automaton model based on m:n-CAk. The simulation takes into account various factors such as vegetation type, and humidity levels, to model the propagation of the fire over a landscape. The output of the simulation is a video that visually represents the spread of the wildfire over time, providing insights into how different conditions affect the fire's behavior.</p><p dir="ltr"><br></p><p dir="ltr">## Files in the Project</p><p dir="ltr"><br></p><p dir="ltr">### Python Scripts</p><p dir="ltr">- **Wildfire_on_m_n-CAk.py**: This file contains the main code for the fire cellular automaton. When executed, it displays a window with a slider that can be used to review the entire evolution of the model.</p><p dir="ltr"><br></p><p dir="ltr">### Fire Layer Vector Files</p><p dir="ltr">- **fire.dvc**: A vector file containing the description of the fire layer.</p><p dir="ltr">- **fire.vec**: A vector file containing the data of the fire layer.</p><p dir="ltr"><br></p><p dir="ltr">### Vegetation Layer Vector Files</p><p dir="ltr">- **vegetation.dvc**: A vector file containing the description of the vegetation layer.</p><p dir="ltr">- **vegetation.vec**: A vector file containing the data of the vegetation layer.</p><p dir="ltr"><br></p><p dir="ltr">### Humidity Layer Vector Files</p><p dir="ltr">- **humidity.dvc**: A vector file containing the description of the humidity layer.</p><p dir="ltr">- **humidity.vec**: A vector file containing the data of the humidity layer.</p><p dir="ltr"><br></p><p dir="ltr">### Vegetation Layer Raster Files</p><p dir="ltr">- **vegetation.doc**: A raster file containing the description of the vegetation layer.</p><p dir="ltr">- **vegetation.img**: A raster file containing the data of the vegetation layer.</p><p dir="ltr"><br></p><p dir="ltr">### Humidity Layer Raster Files</p><p dir="ltr">- **humidity.doc**: A raster file containing the description of the humidity layer.</p><p dir="ltr">- **humidity.img**: A raster file containing the data of the humidity layer.</p><p dir="ltr"><br></p><p dir="ltr">### Other Files</p><p dir="ltr">- **README.txt**: This file provides an overview of the project and explanations for the different files included.</p><p dir="ltr"><br></p><p dir="ltr">## Goal of Wildfire_on_m_n-CAk.py</p><p dir="ltr">The goal of the code in `Wildfire_on_m_n-CAk.py` is to simulate the spread of a wildfire using a cellular automaton model based on m:n-CAk. The simulation takes into account various factors such as vegetation type, and humidity levels to model the propagation of the fire over a landscape. The output of the simulation is a video that visually represents the spread of the wildfire over time, providing insights into how different conditions affect the fire's behavior.</p><p dir="ltr">The simulation can be done over Z and over R and the results are equivalent because vicinity, nucleous and combination function are euqivalent and both models are based over the discrete topology.</p><p dir="ltr"><br></p><p dir="ltr">## Running the Simulation</p><p dir="ltr">To run the simulation, execute the `Wildfire_on_m_n-CAk.py` script. </p><p dir="ltr">You must select to execute on R or on Z. Executing on Z implies the generation of the raster files from the vectorial files.</p><p dir="ltr">A window with a slider will appear, allowing you to review the entire evolution of the wildfire model.</p><p dir="ltr"><br></p><p dir="ltr">## Dependencies</p><p dir="ltr">Ensure you have the necessary dependencies installed. You can install them using the following command:</p><p dir="ltr">```bash</p><p dir="ltr">pip install -r requirements.txt</p><p dir="ltr"><br></p> |
|---|