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 retrieving and plotting CARRA2 sea ice area fraction

logo

Tutorial on retrieving and plotting CARRA2 sea ice area fraction

Last updated: 2026-10-06

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

This tutorial demonstrates how to download and visualise sea ice area fraction from the Copernicus pan-Arctic Regional Reanalysis (CARRA2). CARRA2 is the pan-Arctic regional reanalysis, which provides high-resolution (2.5 km) information for a full Arctic domain. In this notebook we will focus on plotting sea ice concentration, however other parameters can be used in a similar fashion. For more details, see the CARRA2 Product User Guide. The data is freely accessible through the Copernicus Climate Data Store (CDS).

This notebook details two features of CARRA2 dataset as retrieved from CDS:

  • Time-aggregated (“means”) data. Besides the sub-daily analyses and forecasts, CARRA2 is also distributed as daily and monthly means, extremes and totals. These are served from a dedicated CDS entry, reanalysis-pan-carra-means. Working with pre-computed means avoids downloading and averaging large volumes of sub-daily data yourself. In this tutorial we use both the daily and monthly aggregations of this dataset.

  • Sub-domain retrieval. CDS allows you to request a geographic sub-domain of the full pan-Arctic area. Please note that for CARRA2 sub-domains the number of grid points is the same as for the full domain, but the values outside the requested (latitude, longitude) box are set to missing values. Consequently, the size of the downloaded data file is significantly reduced. This is a convenient way to focus on a region of interest.

In this tutorial we focus on the sea ice area fraction because it gives an intuitive picture of where the ice is and how its extent changes through the year. In the second part we retrieve the 2m temperature alongside it, so that the ice cover can be seen together with the near-surface temperature.

The annual cycle of Arctic sea ice

Arctic sea ice has a strong seasonal cycle: it reaches its maximum extent towards the end of the winter (around March) and its minimum extent at the end of the melt season (around September). To give context for the dates chosen in this tutorial, we sample the field close to these seasonal extremes, using the two equinoxes (21 March and 21 September) as convenient representative dates.

Prepare your environment

To make sure this notebook will work, we need to install relevant packages. Furthermore, to download the data directly from CDS, access to the CDSAPI is required.

Setting up the CDSAPI and your credentials

The code below will ensure that the cdsapi package is installed. If you have not set up 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

Here we load the relevant libraries for this notebook. To run the code in this tutorial please install any missing packages here.

Specify data directory

Finally we create folders to store the downloaded data and the plots we produce, so that everything is kept in one place. The folders are only created if they do not already exist.

Part 1: Daily mean sea ice over the pan-Arctic domain

In this first part we look at the daily mean sea ice area fraction over the full pan-Arctic domain. We download two dates that are close to the seasonal extremes of the ice cover (the winter maximum in March and the summer minimum in September), so that we can contrast them side by side.

Download the daily fields

In the section below, daily mean fields for two dates are downloaded and stored. We select the analysis_based product of the reanalysis-pan-carra-means dataset, the sea_ice_area_fraction variable, and the two equinox dates (21 March and 21 September). The data is downloaded in the native GRIB2 format and the resulting file is roughly 5 MB. Note that any of the variables listed in the CDS download form can be requested in the same way.

Load and inspect the dataset

Having downloaded the two dates as a GRIB2 file, we can open it as an xarray dataset using the cfgrib engine. Printing the dataset lets us inspect the coordinates (latitude, longitude, time) and the available variable. The sea ice area fraction is stored under the short name siconc.

Loading...

Plot snapshots of the sea ice maximum and minimum

After inspection, we can now plot the sea ice area fraction for the two dates. The two dates represent, respectively, conditions close to the annual maximum (March) and minimum (September) of the ice cover. A circular boundary is used to emphasise the extent of the pan-Arctic area, and a single shared colour bar shows the ice fraction from 0 (open water) to 1 (fully ice covered).

<Figure size 1400x700 with 3 Axes>

Part 2: Monthly mean sea ice and 2m temperature for a sub-domain

In this second part we demonstrate three further capabilities at once:

  • Using the monthly aggregation of the reanalysis-pan-carra-means dataset.

  • Requesting only a geographic sub-domain of the full pan-Arctic area.

  • Retrieving two variables in a single request: the sea ice area fraction together with the 2m temperature.

We choose the Barents Sea, the shelf sea between northern Norway, Svalbard and Novaya Zemlya, where the ice edge travels a long way between winter and summer. Downloading a full year of monthly means for this sub-domain then lets us look at how the ice fraction and the near-surface temperature evolve through the year.

Define your sub-domain

We first define the sub-domain as [North, West, South, East], i.e. the northern and southern latitudes and the western and eastern longitudes of the box. As explained in the introduction, requesting a sub-domain does not change the number of grid points, but sets everything outside the box to missing values, which greatly reduces the downloaded file size.

Download the monthly fields for the sub-domain

In the section below we download the monthly mean sea ice area fraction and 2m temperature for all twelve months of 2024, restricted to the sub-domain defined above. Note the area key in the request, which triggers the sub-domain selection, and that variable takes a list, so both fields are delivered in the same GRIB2 file. Because everything outside the box is set to missing values, the resulting file is much smaller than a full pan-Arctic request.

Load and inspect the datasets

As before, we open the downloaded GRIB2 file with the cfgrib engine. The file now holds two variables on different level types (sea ice at the surface, temperature 2 m above the ground), which cannot be combined into a single xarray dataset, so we open the file twice and pick one variable each time with filter_by_keys. The keys are the GRIB short names: ci for the sea ice area fraction (which becomes siconc once loaded) and 2t for the 2m temperature (t2m). Both datasets have a time dimension holding the twelve monthly means of 2024.

Plot the data for the sub-domain

We now plot the monthly mean sea ice area fraction for a single month over the sub-domain. Because the values outside the requested box are missing, we simply set the map extent to the sub-domain and the surrounding missing values are not drawn. We add a plot title, keep the latitude/longitude tick labels horizontal so that they do not overlap the map, and use the same blue colour scale as before.

<Figure size 900x800 with 2 Axes>

Seasonal cycle over the sub-domain

Finally, to add some quantitative context, we summarise the sub-domain with one number per month for each variable: the sea ice area fraction and the 2m temperature, averaged over all valid grid points in the box. Both are shown below, one above the other on a shared month axis, so that the ice cover can be read against the near-surface temperature.

The two curves are deliberately kept in separate panels rather than drawn on a single plot with two y-axes. Ice fraction and temperature have unrelated units, and where two such scales are placed on top of each other the apparent agreement between the curves depends on the limits chosen for the axes rather than on the data.

<Figure size 900x700 with 2 Axes>

Summary and going further

In this tutorial you have:

  • Downloaded CARRA2 daily and monthly mean data from the Copernicus Climate Data Store.

  • Visualised the sea ice cover over the full pan-Arctic domain, contrasting the winter maximum with the summer minimum.

  • Requested a geographic sub-domain over the Barents Sea, with two variables in a single request, saw how this reduces the downloaded file size, and plotted the data for that region.

  • Summarised the seasonal cycle of the ice fraction and the 2m temperature over the sub-domain.

As a next step you could extend this analysis further, for example by looking at the long-term trends in the March maximum and September minimum over many years, or by comparing the CARRA2 sea ice with an independent satellite observation product such as the satellite sea ice concentration dataset also available on the CDS.