A Python-based project to predict wildfire spread using real-time weather and fire data, paired with geospatial visualizations to aid decision-making and risk assessment.
- 🔥 Predict wildfire spread based on weather and location data.
- 🌎 Visualize fire locations and affected areas on an interactive map.
- 🚀 Easy-to-use modular design for integration and scaling.
📂 setup/
├── data/ # Directory for storing raw and processed data
├── env/ # Environment-related files
├── models/spread_model/ # Fire spread simulation model
├── scripts/ # Scripts for fetching and preprocessing data
│ ├── fetch_fire.py # Fetches wildfire data from NASA FIRMS
│ ├── fetch_weather.py # Fetches weather data from OpenWeatherMap
│ ├── preprocess.py # Preprocessing for fire and weather data
├── visualizations/ # Visualization tools and output maps
│ ├── map_visualizer.py # Visualizes fire locations on an interactive map
├── main.py # Main execution file
├── requirements.txt # Python dependencies
- Clone the repository:
git clone https://github.com/yourusername/wildfire-prediction.git
- Set Up Virtual Environment
python -m venv env source env/bin/activate # On Windows, use 'env\Scripts\activate'
- Install dependencies:
pip install -r requirements.txt
-
Fetch weather and fire data using the provided scripts:
python main.py
-
API keys in the .env Replace placeholders in fetch_fire.py and fetch_weather.py with your NASA FIRMS and OpenWeatherMap API keys.
-
View the visualization: Open visualizations/fire_map.html in your browser.
- NASA FIRMS for wildfire data
- OpenWeatherMap for weather data
- Folium for interactive maps