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.

Comparing Near-Surface Wind Speed in CERRA, ERA5 and E-OBS during Storm Ciarán

logo

Comparing Near-Surface Wind Speed in CERRA, ERA5 and E-OBS during Storm Ciarán

This tutorial demonstrates how to download, process, and compare near-surface wind speed data from CERRA, ERA5 and E-OBS for Storm Ciarán in late October–early November 2023. The workflow provides practical, interactive examples for exploring wind conditions during Storm Ciarán. It focuses on daily maximum and daily mean wind speed, spatial comparisons between datasets, assessment of biases relative to observations, and extraction of point-based time series for selected locations. The examples are designed to guide users through common data-processing and analysis steps in Python and can be adapted to explore other locations, periods, or datasets available through the CDS.

Learning objectives

After completing this notebook, you will: • Gain practical experience in downloading near-surface wind speed data from the Copernicus Climate Data Store (CDS); • Learn how to open, inspect, and prepare the datasets for analysis; • Regrid different datasets onto a common spatial grid to enable consistent comparison; • Calculate daily maximum and daily mean wind speed; and • Visualise and compare the resulting datasets using maps and point-based time series.

Key terminology

  • Near-surface wind speed: wind speed close to the surface, here represented by 10 m wind speed.

  • Reanalysis: reconstruction of past atmospheric conditions using observations and weather models.

  • CERRA: Copernicus European Regional ReAnalysis, a high-resolution regional reanalysis for Europe.

  • ERA5: ECMWF global atmospheric reanalysis dataset.

  • E-OBS: gridded observational dataset for Europe based on station observations.

  • Regridding: interpolation of data from one spatial grid to another so that datasets can be compared point by point.

  • Bias: the difference between a model or reanalysis dataset and a reference dataset, here calculated as reanalysis minus E-OBS.

Prepare your environment

Install and import libraries

Setup credentials

If you have not setup your ~/.cdsapirc file with your credentials, you can replace None with your credentials that can be found on the how to api page (you will need to log in to see your credentials).

You will also need to accept terms of usage in order to download the relevant data from CDS. Stay logged in on CDS. Under “your profile” there is a secton “Licences”. Here you need to accept the general terms & conditions (data protection and privacy, and terms of use) as well as these two dataset licences: “CC-BY licence” and "E-OBS product licence.

Now we will load the python packages used for downloading, analysing and plotting the data.

Define working directories

Before downloading any data, we need to define where the files will be stored. This tutorial downloads CERRA, ERA5 and E-OBS data for the period 30 October–5 November 2023, covering Storm Ciarán. Since this period spans two calendar months, the CERRA and ERA5 data will be downloaded separately for October and November before being merged later in the notebook. By default, the data are stored in your SCRATCH directory (if available). If no SCRATCH directory exists, the notebook will use your home directory. You may also specify another location if preferred, by . The notebook automatically creates separate folders for each dataset if they do not already exist.

The downloaded data will be stored in directory: 
./data_dir/

In the working directory, we make folders for CERRA and ERA5 and define the filenames.

The downloaded data will be saved in the files: 
./data_dir/CERRA/WS_period1.grib
./data_dir/CERRA/WS_period2.grib
./data_dir/ERA5/WS_period1.grib
./data_dir/ERA5/WS_period2.grib

Download and prepare the reanalysis datasets

Now we will download the data required for the analysis. We use two reanalysis datasets:

  • CERRA, a high-resolution regional reanalysis for Europe.

  • ERA5, a global reanalysis produced by ECMWF.

Both datasets are accessed directly from the Copernicus Climate Data Store (CDS) using the CDS API. Since Storm Ciarán spans the end of October and the beginning of November 2023, the data must be downloaded separately for each month. The files are around 10-100 MB, and should only take a minute to download.

Download CERRA data

The following function submits an api request to the CDS API for CERRA data. The function specifies the dataset to download, the requested variables, the time period, and the output file. Once defined, the function is called twice: once for October and once for November. Once you run the cell, it will take some time for the requests to be processed and the data downloaded.

{'variable': ['10m_wind_speed'], 'level_type': 'surface_or_atmosphere', 'data_type': ['reanalysis'], 'product_type': 'forecast', 'year': ['2023'], 'month': ['10'], 'day': ['30', '31'], 'time': ['00:00', '03:00', '06:00', '09:00', '12:00', '15:00', '18:00', '21:00'], 'leadtime_hour': ['1'], 'data_format': 'grib'}
2026-09-16 10:45:37,655 INFO Request ID is 5d436f4a-034c-4ca6-a56e-20a644d23e04
2026-09-16 10:45:37,730 INFO status has been updated to successful
Loading...
{'variable': ['10m_wind_speed'], 'level_type': 'surface_or_atmosphere', 'data_type': ['reanalysis'], 'product_type': 'forecast', 'year': ['2023'], 'month': ['11'], 'day': ['01', '02', '03', '04', '05'], 'time': ['00:00', '03:00', '06:00', '09:00', '12:00', '15:00', '18:00', '21:00'], 'leadtime_hour': ['1'], 'data_format': 'grib'}
2026-09-16 10:45:47,243 INFO Request ID is 500856dc-a3e5-4649-a0cc-0445945d0a39
2026-09-16 10:45:47,297 INFO status has been updated to successful
Loading...

Download ERA5 data

The workflow for ERA5 is identical to CERRA. A separate download function is defined because the CDS dataset name and request parameters differ from those used for CERRA.

2026-09-16 10:46:42,364 INFO Request ID is 640e260e-7fa9-45aa-9c32-4bb6dafb8463
2026-09-16 10:46:42,433 INFO status has been updated to successful
Loading...
2026-09-16 10:46:45,500 INFO Request ID is b466e7e9-1c05-4225-a2c7-e4f38bf731e6
2026-09-16 10:46:45,553 INFO status has been updated to successful
Loading...

Merge monthly files

The CERRA and ERA5 data were downloaded separately for October and November because the storm period crosses a calendar-month boundary. For the analysis, however, it is more convenient to work with one continuous dataset. We therefore merge the October and November files into a single dataset before continuing.

Regrid ERA5 to the CERRA grid

CERRA and ERA5 use different spatial grids. Before comparing wind speed from the two datasets, ERA5 must be interpolated onto the same grid as CERRA. This process is called regridding. Here, CERRA is used as the reference grid because it has the higher spatial resolution over Europe.

Daily wind-speed statistics from reanalysis data

Calculate the wind-speeds

The downloaded CERRA and ERA5 files contain wind-speed values at sub-daily time steps. We calculate two quantities, daily maximum wind speed, highlighting the strongest winds during each day, and daily mean wind speed, which gives the average wind conditions over each day. Daily maximum wind speed is calculated as the maximum of the eight three-hourly values available for each day. Short-lived wind maxima between these times may therefore not be captured.

Unlike CERRA, ERA5 stores the horizontal wind as two components: the eastward wind (u10) and the northward wind (v10). We therefore calculate the wind speed as u2+v2.\sqrt{u^2 + v^2}.

Visualise wind-speed fields

The daily maximum and daily mean wind-speed fields can now be visualised and compared between CERRA and ERA5. For a meaningful comparison, both datasets are plotted using the same colour scale and map projection. We find the peak wind day, defined as the day with the highest spatial 99th percentile of daily maximum wind speed, and plot it using the function below.

<Figure size 1200x400 with 5 Axes>

Download and prepare E-OBS observations

So far, we have compared two reanalysis datasets: CERRA and ERA5. While this provides insight into their relative differences, it does not tell us which dataset better represents the observed weather conditions. To provide an observational reference, we now introduce E-OBS, an observation-based gridded dataset for Europe, created by interpolating station observations. Unlike CERRA and ERA5, which are produced using numerical weather models combined with observations (reanalyses), E-OBS is generated by interpolating observations from weather stations onto a regular grid.

In the following sections, we download the E-OBS dataset, extract the Storm Ciarán period, and compare it with CERRA and ERA5.

Download E-OBS

The E-OBS dataset is downloaded from the Copernicus Climate Data Store using the CDS API. We request daily wind speed on a 0.1° grid, covering the period required for this tutorial. First we again define the directories where we wish to place the observational data, default a folder alongside CERRA and ERA5 called OBSERVATIONS. This file contains data for 2011-2024, and is around 600 MB.

Will be saving data in files: 
./data_dir/OBSERVATIONS/WS_total.zip
./data_dir/OBSERVATIONS/WS_total.nc
./data_dir/OBSERVATIONS/WS_subsection.nc
./data_dir/OBSERVATIONS/WS_subsection_on_CERRA.nc

Having defined all filepaths, we setup a similar download function as for the reanalysis data.

2026-09-16 10:50:24,556 INFO Request ID is e0ccb3dc-58b8-4a2e-aa07-f3020139fb58
2026-09-16 10:50:25,817 INFO status has been updated to accepted
2026-09-16 10:51:18,106 INFO status has been updated to running
2026-09-16 10:53:20,247 INFO status has been updated to successful
Loading...

Prepare the E-OBS Data

The data is downloaded into a zip file which needs to be extracted. This can be done either using the package zipfile with the cell below, or manually.

Now we just want to select the correct dates, and regrid the data to CERRA’s resolution.

Once the data is regridded, we can open it. The observations are already daily means of the wind speed, so when comparing the datasets from now on, the daily mean will be used.

Compare reanalysis datasets with observations

Spatial maps

To compare the three datasets, we start by looking at the event-mean of the wind speed. E-OBS is used as an observational reference dataset. The comparison is made by considering the difference (bias) between the reanalysis data and observations. Positive values indicate that the reanalysis data has a higher wind speed than the E-OBS.

Now we can plot. Feel free to change the day for another day in the relevant period, or use “mean” to see the event mean.

<Figure size 1400x800 with 8 Axes>

Time-series

Lastly we look at a timeseries for the wind speed of the grid cell closest to a given coordinate. To do this, we first define a function which finds and selects the closest grid-point, and then plots a time series for the three datasets, as well as the difference between the gridded observations and the reanalysis.

Now we can produce the last plot. Feel free to choose a coordinate of your liking. Note that the coordinate has to be on land for E-OBS to have datapoints.

Ignoring fixed x limits to fulfill fixed data aspect with adjustable data limits.
Selected grid cell: y=737, x=524
Target lon/lat: 7.000, 60.000
Nearest grid-cell lon/lat: 7.027, 59.983
<Figure size 1600x700 with 4 Axes>

Summary

In this tutorial, we downloaded near-surface wind data from CERRA and ERA5 and compared the datasets during Storm Ciarán. We then included E-OBS as an observation-based gridded reference. The notebook demonstrated how to regrid datasets, calculate daily statistics, create spatial difference maps, and inspect a selected location using time series.