Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Notebook examples

Evaluation of Fire Impact on Populated Areas on a European Site

Geo-storytelling with RACE, EO Dashboard and the Euro Data Cube

This notebook demonstates how to access and analyse data found on the Rapid Action for Citizens with Earth Observation (RACE) and Earth Observation Dashboard. It uses the EC-JRC’s Global Human Settlement (GHS) Layer which contains global data about the total built-up surface from 1975 to 2030 and was derived from Sentinel2 composite and Landsat imagery. The data is openly available and can be downloaded here. It was ingested in EDC and provided as a layer, check out the documentation here for further information about the data properties in EDC. The GHS indicator can be explored on the EO Dashboard by selecting the EXPLORE DATASETS mode.

Euro Data Cube - EDC Platform presentation

EuroDataCube.JPG

EDC - cloud-optimized platform offering:

  • Access to EO archives from main all open missions (e.g. Sentinel, Landsat, MODIS, etc.), commercial satellites (PlanetScope, Pleiades, SPOT, WorldView, etc.) as well as Level 3 products (Copernicus Land Monitoring Services, C3S, etc.)

  • Analyse, compare and correlate EO data through Xcube and operational tools (Sentinel Hub)

  • Manage different data formats and type in a transparent way (raster, vector, COGs, Zarr, etc.)

  • Bring and store your own data and algorithm for real-time and batch processing operations

  • Computational resources and storage to run Jupyter Notebooks and your deployed Applications within your Kubernetes-powered workspace

  • Expose your apps on the EDC marketplace to third-parties and provide easy access to your managed API service to customers

edc_workflows.JPG
  • Platform Services: e.g. EOxHub

Content of this notebook:

  1. Visualizing wildfire events with Sentinel-2 imagery

  2. Querying data via Statistical API for the chosen Area of Interest

  3. Transforming the output of the API request into a geoJSON polygon that contains the extent of the built up area in the AOI

  4. Accessing Sentinel-5p Carbon monoxide data from SentinelHub

  5. Displaying the time series of the CO concentration over the populated area to evaluate the possible impact of the fire emissions

This notebook runs with the python environment users-edc-2023.07-01 and was prepared by Leah Sturm (University of Trier, Germany).

Create a folder for the session in which all files will be stored

Folder 'folder_2023-10-25' already exists at: /home/3d76fe8a-ecd3-4736-b462-38f98f1f605e/folder_2023-10-25

Wildfire Impacts and Carbon Emissions

The wildfire season during the summer of 2022 in Europe was exceptional, marked by a high number of observed fires, a large extent of burned area, and remarkably high atmospheric emissions linked to these fires. According to data from the European Forest Fire Information System (EFFIS), fires were reported in 26 out of the 27 European countries, collectively burning 837,212 hectares. A significant portion of these wildfires happened in July, with Spain, Portugal, France, and Italy experiencing the most damages.

The selected wildfire incident for this notebook occurred in the Gironde region of southwestern France, near the city of Bordeaux, in 2022. The significant fire event started on July 17, 2022, lasted for two weeks while burning approximately 7,000 hectares of land. Notably, the Copernicus Atmosphere Monitoring Service (CAMS) recorded exceptionally elevated levels of carbon monoxide emissions throughout the duration of this event.

Related articles about the event and the wildfire occurrence in 2022:

1. Visualize Wildfire Event with Sentinel-2

In this first part we are going to visualize the fire event to get an overview of the location and the occuring emissions. In the following cells we will access Sentinel-2 imagery from Sentinel Hub. Sentinel Hub is a multi-spectral and multi-temporal big data satellite imagery service, capable of fully automated archiving, real-time processing and distribution of remote sensing data and related EO products. Users can use APIs to retrieve satellite data over their AOI and specific time range from full archives in a matter of seconds. The following cells to access Sentinel-2 data are based on the example notebook “Australian Bushfires” which is available in the Euro Data Cube Marketplace.

To get a first overview of the fire event we are going to look at the true colour image captured on the day of the start of the fire.

Define Area of Interest

Loading...

Access Sentinel-2 data

We build the request according to the API Reference, using the SentinelHubRequest class. Each Process API request also needs an evalscript.

The information that we specify in the SentinelHubRequest object is:

  • an evalscript,

  • a list of input data collections with time interval,

  • a format of the response,

  • a bounding box and it’s size (size or resolution).

The evalscript is used to select the appropriate bands. We return the RGB (B04, B03, B02) Sentinel-2 L2A bands.

Visualize the requested Sentinel image

Image type: uint8
<Figure size 1500x1500 with 1 Axes>

The visualized image captures the start of the wildfire event which is prominently visible in the top right corner. The plume and emissions from the fire event extend westwards. Consequently, the analysis within this notebook will center around urban areas within those western regions.

Define and visualize AOI for the analysis

Loading...

Check the resolution and size of the AOI

Image shape at 10 m resolution: (2377, 1903) pixels

2. Query GHS population density layer with SentinelHub API request

The Statistical API empowers users to derive insightful statistics from satellite imagery, eliminating the need to download large image files. When making a Statistical API request,it is possible to define an AOI, time frame, evalscript, and the specific statistical measures you wish to compute. The resulting statistics are conveniently included in the API response. With the Statistical API, the user can compute statistics such as cloud pixel percentages within a defined area and timeframe or calculate metrics like mean, standard deviation, and histogram of band values for a specific parcel over a given time frame.

To access the population density layer, we need to use the designated BYOC ID: 0c7aa265-50f9-4947-9980-2ee5ae204803 found on EDC. To query the GHS layer effectively, we need to provide the BYOC ID, the coordinates from the created GeoJSON file as AOI, the desired timeframe, and the necessary user credentials as inputs. The GHS layer contains data from 1975 to 2030 in 5 years intervals. We are going to query the data for 2020 because it is temporally closest to the chosen wildfire event in 2022.

Source for EC-JRC’s GHS layer: Pesaresi, Martino; Politis, Panagiotis (2023): GHS-BUILT-S R2023A - GHS built-up surface grid, derived from Sentinel2 composite and Landsat, multitemporal (1975-2030). European Commission, Joint Research Centre (JRC) [Dataset] doi: 10.2905/9F06F36F-4B11-47EC-ABB0-4F8B7B1D72EA

The evalscript in this request creates a new output image where the “dataMask” band is modified based on the values in the GHS layer. If the GHS value is 0, it masks the pixel in the “dataMask” band by setting it to zero. Otherwise, it retains the original GHS value.

Extract the population density extent as GeoTiff file

The GHS layer contains values ranging from 0 to 10,000, where higher values indicate greater population density. In this notebook, we only exclude pixels with zero values, but I would be possible to add a threshold to the script below to pinpoint areas of exceptionally high population density.

Visualize the extent of the population density layer

<Figure size 800x800 with 1 Axes>

All non populated areas are displayed in black in the plot while the populated areas are colored white. From this binary mask we can now create a GeoJSON file that contains only the populated areas.

3. Convert the binary raster mask into a GeoJSON file

The resulting GeoJSON will only contain polygons for built up areas and will be used as spatial extend to query the Sentinel-5p data later.

Plot the GeoJSON file

Loading...

We can see that now only the built-up areas are stored in the GeoJSON file and we can extract the coordinates from this and use them as an input for the Sentinel-5p data

Extract the coordinates of the created GeoJSON file

4. Use Statistical API request to access Sentinel-5p CO data for the extracted populated areas

Save the extracted statistics

5. Plot the statistics for the S5p CO data

<Figure size 2000x1000 with 1 Axes>

The graph illustrates a noticeable increase in CO concentration across populated areas on July 17th, when the fire event started. Additionally, the Standard Deviation on this day and the following days is increased in comparison to the days before the fire. The highest carbon emissions in France were recorded from June to August in 2022 which aligns well with the result of this analysis. To learn more about the carbon emissions resulting from wildfires check out this story on the EO Dashboard that also incorporates further indicators to analyse wildfires.