{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Observing major flood events with GLOFAS\n", "\n", "## About\n", "\n", "This tutorial will demonstrate how to investigate a specific flood event using data from the GLObal Flood\n", "Awareness Service (GLOFAS). For this example we look at the major flood event in Bangladesh in June 2022\n", "and assess the excess river discharge in comparison to the long-term (10-year) discharge statistics.\n", "\n", "GloFAS is a product and service of the Copernicus Emergency Management Service. The Joint Research Centre of the European Commission is the entrusted entity responsible for CEMS GloFAS in terms of management, technical implementation and evolution. ECMWF is the designated contractor to implement the operational functionalities of the CEMS-COMP (Hydrological Forecast Computational Centre).\n", "\n", "The tutorial is structured as follows:\n", "\n", "0. (Install and import the required python packages)\n", "1. Download the data of interest from the C3S Climate Data Store (CDS);\n", "1. Explore the data with xarray, apply mask using the auxilary data, and produce demonstrative map plots;\n", "1. Compute and plot time-series of the June 2022 river discharge against the 10-year period;\n", "1. Compute and display a map of the number of days in June 2022 that the river discharge exceeded the\n", " 90th percentile of the 10-year period.\n", "\n", "The steps and methods here serve as demonstrative examples and could be applied to other events and datasets,\n", "e.g. fire and heatwave events." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "
Run the tutorial via free cloud platforms: | \n", "\n",
" | \n",
" \n",
" | \n",
" \n",
" | \n",
"
---|
<xarray.Dataset>\n", "Dimensions: (time: 330, latitude: 202, longitude: 202)\n", "Coordinates:\n", " * time (time) datetime64[ns] 2012-06-01 2012-06-02 ... 2022-06-30\n", " step timedelta64[ns] ...\n", " surface float64 ...\n", " * latitude (latitude) float64 30.02 29.97 29.92 29.87 ... 20.07 20.02 19.98\n", " * longitude (longitude) float64 84.97 85.02 85.07 ... 94.92 94.97 95.03\n", " valid_time (time) datetime64[ns] ...\n", "Data variables:\n", " dis24 (time, latitude, longitude) float32 ...\n", "Attributes:\n", " GRIB_edition: 2\n", " GRIB_centre: ecmf\n", " GRIB_centreDescription: European Centre for Medium-Range Weather Forecasts\n", " GRIB_subCentre: 0\n", " Conventions: CF-1.7\n", " institution: European Centre for Medium-Range Weather Forecasts\n", " history: 2023-08-23T09:43 GRIB to CDM+CF via cfgrib-0.9.1...
<xarray.Dataset>\n", "Dimensions: (longitude: 7200, latitude: 3000)\n", "Coordinates:\n", " * longitude (longitude) float64 -180.0 -179.9 -179.9 ... 179.9 179.9 180.0\n", " * latitude (latitude) float64 89.97 89.92 89.88 ... -59.88 -59.92 -59.97\n", "Data variables:\n", " uparea (latitude, longitude) float32 ...\n", "Attributes:\n", " CDI: Climate Data Interface version 1.9.10 (https:...\n", " Conventions: CF-1.9\n", " GDAL_PCRASTER_VALUESCALE: VS_SCALAR\n", " GDAL_AREA_OR_POINT: Area\n", " GDAL: GDAL 3.2.1, released 2020/12/29\n", " NCO: netCDF Operators version 4.9.7 (Homepage = ht...\n", " history_of_appended_files: Fri Dec 10 11:49:42 2021: Appended file ldd_O...\n", " history: Mon Nov 14 17:49:16 2022: cdo chname,lon,long...\n", " CDO: Climate Data Operators version 1.9.10 (https:...
<xarray.Dataset>\n", "Dimensions: (time: 330, latitude: 202, longitude: 202)\n", "Coordinates:\n", " * time (time) datetime64[ns] 2012-06-01 2012-06-02 ... 2022-06-30\n", " step timedelta64[ns] 1 days\n", " surface float64 0.0\n", " * latitude (latitude) float64 30.02 29.97 29.92 29.87 ... 20.07 20.02 19.98\n", " * longitude (longitude) float64 84.97 85.02 85.07 ... 94.92 94.97 95.03\n", " valid_time (time) datetime64[ns] ...\n", "Data variables:\n", " dis24 (time, latitude, longitude) float32 0.0 0.0 ... 3.042e+04\n", " uparea (latitude, longitude) float32 ...\n", "Attributes:\n", " GRIB_edition: 2\n", " GRIB_centre: ecmf\n", " GRIB_centreDescription: European Centre for Medium-Range Weather Forecasts\n", " GRIB_subCentre: 0\n", " Conventions: CF-1.7\n", " institution: European Centre for Medium-Range Weather Forecasts\n", " history: 2023-08-23T09:43 GRIB to CDM+CF via cfgrib-0.9.1...