diff --git a/1_prepare_data.ipynb b/1_prepare_data.ipynb index caaf84e7ef66aba60e53fba36b464efcb6e77c33..517ddf53441d7a4196967dc298f065670b00f54f 100644 --- a/1_prepare_data.ipynb +++ b/1_prepare_data.ipynb @@ -1,5 +1,13 @@ { "cells": [ + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Configurar directorios" + ] + }, { "cell_type": "code", "execution_count": 1, @@ -12,6 +20,14 @@ "FIREDESTDIR = 'processed_fire_data/' # directory to save .npy files for each time step and variable for fire data" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Cargar bibliotecas" + ] + }, { "cell_type": "code", "execution_count": 2, @@ -24,6 +40,14 @@ "from tqdm.notebook import tqdm" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Variables de configuración" + ] + }, { "cell_type": "code", "execution_count": 3, @@ -37,14 +61,11 @@ ] }, { - "cell_type": "code", - "execution_count": 4, + "attachments": {}, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ - "#root = nc.Dataset(FIREDATADIR + f\"2002.nc\", 'r')\n", - "#root['fdimrk']\n", - "#root.close()\n" + "# Procesar datos ERA5" ] }, { @@ -138,7 +159,7 @@ } ], "source": [ - "# Processing ERA 5 data\n", + "# Processing ERA5 data\n", "for var in vars:\n", " if not os.path.exists(DESTDIR + f\"{var}\"):\n", " os.makedirs(DESTDIR + f\"{var}\")\n", @@ -157,6 +178,14 @@ " t += 1" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Procesar datos de Ãndice de peligro de incendio" + ] + }, { "cell_type": "code", "execution_count": 6, @@ -178,7 +207,7 @@ } ], "source": [ - "# Processing Fire data\n", + "# Processing Fire danger index data\n", "for var in fire_vars:\n", " if not os.path.exists(FIREDESTDIR + f\"{var}\"):\n", " os.makedirs(FIREDESTDIR + f\"{var}\")\n", @@ -195,6 +224,14 @@ " t += 1" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Guardar información de latitud/longitud" + ] + }, { "cell_type": "code", "execution_count": 7,