Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleERA-Interim production stopped on 31st August 2019

For the time being and until further notice, ERA-Interim (1st January 1979 to 31st August 2019) shall continue to be accessible through the ECMWF Web API

ERA5 is now available from the Climate Data Store (CDS) (What are the changes from ERA-Interim to ERA5?) and users are strongly advised to migrate to ERA5 (How to download ERA5).


Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel2

Easy Heading Macro

Introduction

Here we document the ERA-Interim dataset, which, covers the period from 1st January 1979 to 31st August 2019.

...

Expand
titleDecoding 2D wave spectra

Download from ERA-Interim

Wave data can be downloaded using the same mechanisms as atmospheric data. Please see How to download data via the ECMWF WebAPI

For wave spectra you need to specify the additional parameters 'direction' and 'frequency'.


Expand
titleClick here to see a sample script to download 2D wave spectra from ERA-Interim using the ECMWF WebAPI


Code Block
languagepy
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "ei",
    "dataset": "interim",
    "expver": "1",
    "stream": "wave",
    "type": "an",
    "date": "2016-01-01/to/2016-01-31",
    "time": "00:00:00/06:00:00/12:00:00/18:00:00",
    "param": "251.140",
    "direction": "1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24",
    "frequency": "1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30",
    "target": "2d_spectra_201601",
})

If you want to download the data in NetCDF format, please add the 'format' and 'grid' parameters:

Code Block
languagepy
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    ......
    "grid": "0.75/0.75", # Spatial resolution in degrees latitude/longitude
    "format": "netcdf"
    "target": "2d_spectra_201601.nc"
})


Decoding 2D wave spectra in GRIB

To decode wave spectra in GRIB format we recommend ecCodes. Wave spectra are encoded in a specific way that other tools might not decode correctly.

In GRIB, the parameter is called 2d wave spectra (single) because in GRIB, the data are stored as a single global field per each spectral bin (a given frequency and direction), but in NetCDF, the fields are nicely recombined to produce a 2d matrix representing the discretized spectra at each grid point.

The wave spectra are encoded in GRIB using a local table specific to ECMWF. Because of this, the conversion of the meta data containing the information about the frequencies and the directions are not properly converted from GRIB to NetCDF format. So rather than having the actual values of the frequencies and directions, values show index numbers (1,1) : first frequency, first direction, (1,2) first frequency, second direction, etc ....

For ERA, because there are a total of 24 directions, the direction increment is 15 degrees with the first direction given by half the increment, namely 7.5 degree, where direction 0. means going towards the north and 90 towards the east (Oceanographic convention), or more precisely, this should be expressed in gradient since the spectra are in m^2 /(Hz radian)
The first frequency is 0.03453 Hz and the following ones are : f(n) = f(n-1)*1.1, n=2,30

Also note that it is NOT the spectral density that is encoded but rather log10 of it, so to recover the spectral density, expressed in m^2 /(radian Hz), one has to take the power 10 (10^) of the NON missing decoded values. Missing data are for all land points, but also, as part of the GRIB compression, all small values below a certain threshold have been discarded and so those missing spectral values are essentially 0. m^2 /(gradient Hz).

Decoding 2D wave spectra in NetCDF

The NetCDF wave spectra file will have the dimensions longitude, latitude, direction, frequency and time.

However, the direction and frequency bins are simply given as 1 to 24 and 1 to 30, respectively.

The direction bins start at 7.5 degree and increase by 15 degrees until 352.5, with 90 degree being towards the east (Oceanographic convention).

The frequency bins are non-linearly spaced. The first bin is 0.03453 Hz and the following bins are: f(n) = f(n-1)*1.1; n=2,30. The data provided is the log10 of spectra density. To obtain the spectral density one has to take to the power 10 (10 ** data). This will give the units 2D wave spectra as m**2 s radian**-1 . Very small values are discarded and set as missing values. These are essentially 0 m**2 s radian**-1.

This recoding can be done with the Python xarray package, for example:

Code Block
languagepy
import xarray as xr
import numpy as np
da = xr.open_dataarray('2d_spectra_201601.nc')
da = da.assign_coords(direction=np.arange(7.5, 352.5 + 15, 15))
da = da.assign_coords(frequency=np.full(30, 0.03453) * (1.1 ** np.arange(0, 30)))
da = 10 ** da
da = da.fillna(0)
da.to_netcdf(path='2d_spectra_201601_recoded.nc')

Units of 2D wave spectra

Once decoded, the units of 2D wave spectra are m2 s radian-1

...

  • Please use this as the main scientific reference to ERA-Interim:

    Dee, D. P., Uppala, S. M., Simmons, A. J., Berrisford, P., Poli, P., Kobayashi, S., Andrae, U., Balmaseda, M. A., Balsamo, G., Bauer, P., Bechtold, P., Beljaars, A. C. M., van de Berg, L., Bidlot, J., Bormann, N., Delsol, C., Dragani, R., Fuentes, M., Geer, A. J., Haimberger, L., Healy, S. B., Hersbach, H., Hólm, E. V., Isaksen, L., Kållberg, P., Köhler, M., Matricardi, M., McNally, A. P., Monge-Sanz, B. M., Morcrette, J.-J., Park, B.-K., Peubey, C., de Rosnay, P., Tavolato, C., Thépaut, J.-N. and Vitart, F. (2011), The ERA-Interim reanalysis: configuration and performance of the data assimilation system. Q.J.R. Meteorol. Soc., 137: 553–597. doi: 10.1002/qj.828

    For a more technical documentation of the contents of the ERA-Interim dataset please use:

    Berrisford, P, Dee, DP, Poli, P, Brugge, R, Fielding, K, Fuentes, M, Kållberg, PW, Kobayashi, S, Uppala, S, Simmons, A (2011): The ERA-Interim archive Version 2.0. ERA Report Series 1, http://www.ecmwf.int/en/elibrary/8174-era-interim-archive-version-20


  • Berrisford, P., P. Kållberg,  S. Kobayashi, D. Dee, S. Uppala, A. J. Simmons, P. Poli,  and H. Sato, 2011: Atmospheric conservation properties in ERA-Interim. Q.J.R. Meteorol. Soc., 137: 1381–1399. doi: 10.1002/qj.864
  • Dee, D. P., and Coauthos, 2011: The ERA-Interim reanalysis: configuration and performance of the data assimilation system. Q.J.R. Meteorol. Soc., 137: 553–597. doi:10.1002/qj.828
  • Further references available from the ECMWF e-library


false
Info
icon

This document has been produced in the context of the Copernicus Climate Change Service (C3S).

The activities leading to these results have been contracted by the European Centre for Medium-Range Weather Forecasts, operator of C3S on behalf of the European Union (Delegation agreement signed on 11/11/2014). All information in this document is provided "as is" and no guarantee or warranty is given that the information is fit for any particular purpose.

The users thereof use the information at their sole risk and liability. For the avoidance of all doubt, the European Commission and the European Centre for Medium-Range Weather Forecasts have no liability in respect of this document, which is merely representing the author's view.

Content by Label
showLabelsfalse
max5
spacesCKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "era-interim" and type = "page" and space = "CKB"
labelsera5

...