Build a model to estimate the probability of wildfires occuring, using remote sensed data (data from satellite sensors).
Historical wildfire record - (FireCCI51: MODIS Fire_cci Burned Area Pixel product, version 5.1)
Data obtained from scripts 0 to 4 can be found here gs://geo-2021/digeo/Incendios/datos_scripts.zip (please download and don't modify the folder structure)
0_prepara_datos.R
- downloads the product FireCCI51 from Google Earth Engine (GEE).
1_construir_muestra.R
Using the FIRECCI51 product creates a sample of burned and not burned pixels
2_distancia_incendios_anios_previos.egoml
- calculates distance to previous fires, using DinamicaEgo
3_extracion.R
- extract data from the environmental variables (TODO: Check if it really does)
4_exploratorio_modelo.R
- Creates a model using Random Forests
5_Datos_para_inferencia.ipynb
, it's recommend running using Google Colab. These data is exported to the incendios_2021
folder in Google Drive, these layers need to be downloaded and copied to the data/correspondingmonth
folder. ### Calculates variables for April, which will we used to the inference for the month of May
iniDate = '2021-04-01'
endDate = '2021-04-30'
6_inferencia.R
- to conduct the inference simply define the month for which the risk estimation will be calculatedmes_eval <- 5 # Month number
In the last month (May 2021) precipitation (CHIRPS) and soil moisture (SMOS) are delayed in its ingestion into GEE so we instead used an average value obtained using GEE.
var geometry = ee.Geometry.Rectangle([-105.70671, 18.91105, -101.45436, 22.75942])
var m = 5 //##
var chirps = ee.ImageCollection('UCSB-CHG/CHIRPS/DAILY')
.select('precipitation')
.filter(ee.Filter.calendarRange(m, m, 'month'))
.mean()
var smos = ee.ImageCollection('NASA_USDA/HSL/soil_moisture')
.select('ssm', 'susm')
.filter(ee.Filter.calendarRange(m, m, 'month'))
.mean()
Export.image.toDrive({
image: chirps,
description: 'precipitacion',
scale: 250,
crs: 'EPSG:32613',
folder: 'incendios_2021' ,
region: geometry
});
Export.image.toDrive({
image: smos,
description: 'smos',
scale: 250,
crs: 'EPSG:32613',
folder: 'incendios_2021' ,
region: geometry
});