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.

Tutorial on comparing CARRA and ERA5 2m temperature data

logo

Tutorial on comparing CARRA and ERA5 2m temperature data

Last updated: 2026-07-29

This notebook can be run on free online platforms, such as Binder, Kaggle and Colab, or they can be accessed from GitHub. The links to run this notebook in these environments are provided here, but please note they are not supported by ECMWF.

binder kaggle colab github

Introduction

Understanding global and regional atmospheric conditions is critical for climate research, weather forecasting, and environmental monitoring. Reanalysis datasets like ERA5 (ECMWF’s fifth-generation global reanalysis) and CARRA (Copernicus Arctic Regional Reanalysis) provide high-quality, gridded estimates of atmospheric variables, enabling scientists to study past weather and climate patterns. Both datasets can be found in, and are freely accessible through, the Copernicus Climate Data Store (CDS).

Both datasets enhance our insights into Earth’s systems, but they are different in several aspects. ERA5 offers a comprehensive global perspective with a resolution of approximately 31 km. Meanwhile CARRA is regional and tailored for the Arctic region, delivering higher spatial resolution (~2.5 km) and specialized insights into polar processes, that make it particularly adequate for studying the Arctic’s unique climate dynamics.

In this tutorial, we focus on comparing 2m temperature data from both datasets. There are 5 CARRA entries available in the CDS: sub-daily data for single, height, pressure and model levels and data aggregated for a day or month. Practical details of the CARRA dataset are available in the documentation. Meanwhile, the complete ERA5 portfolio of datasets is availble at ERA5.

Here the CARRA single level entry is selected for the 2m temperature. The ERA5 dataset, available in full via the Copernicus Climate Data Store (CDS), serves as our global benchmark. By comparing these datasets, you will get an awareness of their strengths, limitations, and potential applications — whether for validating regional models, assessing climate trends, or supporting decision-making in Arctic-sensitive sectors.

Learning objectives 🎯

This tutorial demonstrates how to access and retrieve CARRA and ERA5 data and how to inter-compare them on the CARRA domain. CARRA is a high resolution (2.5 km) regional re-analysis which gives added details compared to the ERA5 global reanalysis. These details can be visualised by comparing the plots of CARRA and ERA5 data, and particularly when the differences of the two datasets are plotted together. By the end, you will have:

  • Accessed and downloaded 2m temperature data from both the ERA5 and CARRA data, interacting with the Copernicus Climate Data Store using Python code.

  • Prepared the data for an inter-comparison, by interpolating them to the same grid and computing monthly means.

  • Created engaging map-like visuals (plots), that emphasize the differences between the two datasets.

Prepare your environment

The first thing we need to do, is make sure you are ready to run the code while working through this notebook. There are some simple steps you need to do to get yourself set up.

Set up CDSAPI and your credentials

The code below will ensure that the cdsapi package is installed. 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).

(Install and) Import libraries

To run the code in this tutorial please install any missing packages here.

Please note that the package xESMF is not in the environment file, but can be installed following the instructions here.

Specify data directory

Explore data

The source code will download a specific month. By specifying the start and end date below, one can easily download longer periods. We are selecting 2m temperature, which is in the single level CDS entry. Here, we download the 3-hourly analysis time steps, and the data will be stored in a specified file.

For this tutorial we just request one month of data, March 2024. Note that we define a sub-domain to use for the ERA5 request.

Download the data

Define helper functions to formulate the CDS data request

The functions below allow repeated CDS API requests to be made, in case multiple requests are required to retrieve high volumes of data. In this case we are only requesting one month.

2026-07-29 12:00:26,416 CRITICAL [2025-09-30T00:00:00Z] This is an experimental and unsupported instance of the data store, not to be used in a production environment. For production environment go to [here](https://cds.climate.copernicus.eu/).
2026-07-29 12:00:26,416 INFO [2024-07-18T00:00:00Z] Remember that you need to have an ECMWF account to use CDS-Beta. **Your existing CDS credentials will not work in CDS-Beta!**
2026-07-29 12:00:26,417 WARNING [2024-06-16T00:00:00Z] **BETA version** of the new CDS. Your [feedback](https://jira.ecmwf.int/plugins/servlet/desk/portal/1/create/202) is very useful for us. **Please notice** that access to the system might suffer some disruptions due to evolving updates.
2026-07-29 12:00:26,417 WARNING [2024-06-16T00:00:00Z] Check our [informative page](https://confluence.ecmwf.int/x/uINmFw) to best prepare yourself to use CDS-Beta.
2026-07-29 12:00:26,418 WARNING [2024-06-16T00:00:00Z] CDS API syntax is changed and some keys or parameter names may have also changed. To avoid requests failing, please use the "Show API request code" tool on the dataset Download Form to check you are using the correct syntax for your API request.

Request the CARRA-West data

The loops below may be useful if you are requesting a large volume of data, in this case one month is being requested.

CARRA data will be fetched for  2024 3
This will take a few minutes, depending on the data size (here ~621 MB for west, ~357 MB for east case)

Request the ERA5 data

ERA5 data will be fetched for  2024 3
This will take a few minutes, depending on the data size (here ~39 MB for west area)

Plotting the CARRA and ERA5 data

Interpolate data to a common grid

Before plotting the two datasets we want to have them on the same grid. For this we interpolate ERA5 to the CARRA (CARRA-West) grid. Below we use xesmf. The interpolation/projection can also be done using the pyresample library, or CDO.

Inspect the ERA5 datacube.

'./data_dir/era5_T2m_an_202403.grb'
Ignoring index file './data_dir/era5_T2m_an_202403.grb.5b7b6.idx' older than GRIB file
Loading...

Inspect the CARRA datacube.

Loading...

We remove some additional coordinates in the datasets, to ease the regridding operation.

Now use xesmf bilinear interpolation to construct a regridder object and apply it to the ERA5 data.

regridding the ERA5 data
done

Check the format of the output and save it.

Plotting the data

Compute the mean 2m temperature over the whole month. First, we open the data sets using xarray and then calculate their mean over the whole month, prepare the dataset for plotting on a latitude/longitude grid, and the temperature units (from Kelvin to degrees Celsius).

Computing the mean for CARRA and ERA5...
Done.

Plot for CARRA

We fix the scale of each of the separate CARRA and ERA5 plots to the range from -30 to 30 degrees Celsius. This ensures the two figures can be compared directly.

The plot below shows the CARRA 2m temperature monthly mean (March 2024) values for the CARRA-West domain.

Plotting CARRA mean surface temperature
<Figure size 700x800 with 2 Axes>

Plot for ERA5

The plot shows ERA5 2m temperature monthly mean (March 2024) values on the CARRA-West domain.

<Figure size 700x800 with 2 Axes>

Plot the difference between CARRA and ERA5

Note that the differences are computed in the plotting command itself. Here we plot the difference with a range of -10 to 10 degrees Celsius.

The plot shows the 2m monthly mean (March 2024) 2m temperature difference between CARRA and ERA5 over the CARRA-West domain.

Plotting the difference CARRA - ERA5
<Figure size 700x800 with 2 Axes>

Take home messages 📌

  • CARRA and ERA5 data, while broadly similar, contain subtle, but important differences in values due to their spatial scope. These differences are important to note.

  • Note the differences visible between CARRA and ERA5, especially over coastal areas and over complex orography (mountainous terrain) where the high resolution CARRA data can provide additional information compared to ERA5, such as for instance the significantly lower temperatures at higher elevations near the coasts.

  • The differences in northern ocean areas likely come from the better description of sea-ice characteristics by CARRA.

  • The differences are much easier to see in the difference plot above, however they can also be recognised in the individual plots as finer details in the CARRA plot.