diff --git a/data-processing/notebooks/04_prepare_tabular_data.ipynb b/data-processing/notebooks/04_prepare_tabular_data.ipynb index d2a7766..0559f32 100644 --- a/data-processing/notebooks/04_prepare_tabular_data.ipynb +++ b/data-processing/notebooks/04_prepare_tabular_data.ipynb @@ -80,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -117,7 +117,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -158,22 +158,22 @@ "name": "stdout", "output_type": "stream", "text": [ - "{'Agricultural drought exposure': ,\n", - " 'Agricultural drought hazard': ,\n", - " 'Boundaries': ,\n", - " 'Contextual layers': ,\n", - " 'EO-based flood exposure': ,\n", - " 'EO-based flood hazard': ,\n", - " 'Hydrographic data': ,\n", - " 'Hydrometeorological Data': ,\n", - " 'In-situ Data': ,\n", - " 'Meteorological drought exposure': ,\n", - " 'Meteorological drought hazard': ,\n", - " 'Model-based flood exposure': ,\n", - " 'Model-based flood hazard': ,\n", - " 'Populated infrastructures': ,\n", - " 'Transportation Network Infrastructures': ,\n", - " 'Water-related infrastructures': }\n" + "{'Agricultural drought exposure': ,\n", + " 'Agricultural drought hazard': ,\n", + " 'Boundaries': ,\n", + " 'Contextual layers': ,\n", + " 'EO-based flood exposure': ,\n", + " 'EO-based flood hazard': ,\n", + " 'Hydrographic data': ,\n", + " 'Hydrometeorological Data': ,\n", + " 'In-situ Data': ,\n", + " 'Meteorological drought exposure': ,\n", + " 'Meteorological drought hazard': ,\n", + " 'Model-based flood exposure': ,\n", + " 'Model-based flood hazard': ,\n", + " 'Populated infrastructures': ,\n", + " 'Transportation Network Infrastructures': ,\n", + " 'Water-related infrastructures': }\n" ] } ], @@ -197,11 +197,11 @@ { "data": { "text/plain": [ - "{'Administrative Boundaries - adm0': ,\n", - " 'Administrative Boundaries - adm1': ,\n", - " 'Administrative Boundaries - adm2': ,\n", - " 'Administrative Boundaries - adm3': ,\n", - " 'Hydrological Basins': }" + "{'Administrative Boundaries - adm0': ,\n", + " 'Administrative Boundaries - adm1': ,\n", + " 'Administrative Boundaries - adm2': ,\n", + " 'Administrative Boundaries - adm3': ,\n", + " 'Hydrological Basins': }" ] }, "execution_count": 4, @@ -335,7 +335,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -352,34 +352,19 @@ }, { "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "[52]" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "keys_to_remove = [\"Evapotranspiration\"]\n", - "[layer_ids.pop(key, None) for key in keys_to_remove]" - ] - }, - { - "cell_type": "code", - "execution_count": 10, + "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ + "Processing Evapotranspiration\n", + "Processing Administrative Boundaries - adm0\n", + "Processing Administrative Boundaries - adm1\n", + "Processing Administrative Boundaries - adm2\n", + "Processing Administrative Boundaries - adm3\n", + "Processing Hydrological Basins\n", "Processing Precipitation\n", "Processing Administrative Boundaries - adm0\n", "Processing Administrative Boundaries - adm1\n", @@ -474,7 +459,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -493,7 +478,7 @@ "# Initialize the JSON structure\n", "json_data = {\"version\": 2, \"data\": {\"api::chart-data.chart-data\": {}}}\n", "\n", - "chart_id = 43027\n", + "chart_id = 53143\n", "for name, folder_path in folder_paths.items():\n", " # List all the blobs in the specified folder\n", " bucket = client.get_bucket(bucket_name)\n",