# (2026) How to download 2D Wave Spectra?

**URL:** <https://forum.ecmwf.int/t/2026-how-to-download-2d-wave-spectra/14823>\
**Category:** C3S - Datasets and Usage\
**Tags:** era5\
**Created:** [27 March 2026 11:05 UTC](https://forum.ecmwf.int/t/2026-how-to-download-2d-wave-spectra/14823 "2026-03-27T11:05:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barbara\_Silva\_Lewis](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Barbara\_Silva\_Lewis](https://forum.ecmwf.int/u/Barbara_Silva_Lewis)\
**Post date:** [27 March 2026 11:05 UTC](https://forum.ecmwf.int/t/2026-how-to-download-2d-wave-spectra/14823/1 "2026-03-27T11:05:24Z")

</div>

I used this script, but the data came with 97% missing values.

#!/usr/bin/env python

import cdsapi

COORDS = {“Location1”:[-25.280,-44.924,-25.280,-44.924]}

c = cdsapi.Client(url=“[https://cds.climate.copernicus.eu/api",key="”](https://cds.climate.copernicus.eu/api%22,key=%22%E2%80%9D))

#latitude\_fixa = -25.280  
#longitude\_fixa = -44.924

#maxLat = -23  
#maxLon = -42  
#minLat = -27  
#minLon = -46

for station in COORDS:  
station\_point\_coord = COORDS[station]  
c.retrieve(‘reanalysis-era5-complete’,{  
‘class’: ‘ea’,  
‘date’: ‘2015-08-01/to/2015-08-30’,  
‘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’,  
‘expver’: ‘1’,  
‘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’,  
‘param’: ‘251.140’,  
‘stream’: ‘wave’,  
‘time’:‘00:00:00/01:00:00/02:00:00/03:00:00/04:00:00/05:00:00/06:00:00/07:00:00/08:00:00/09:00:00/10:00:00/11:00:00/12:00:00/13:00:00/14:00:00/15:00:00/16:00:00/17:00:00/18:00:00/19:00:00/20:00:00/21:00:00/22:00:00/23:00:00’,  
‘type’:‘an’,  
‘area’: station\_point\_coord,  
‘grid’: ‘0.5/0.5’, # Latitude/longitude. Default: spherical harmonics or reduced Gaussian grid  
‘format’: ‘netcdf’, # Output needs to be regular lat-lon, so only works in combination with ‘grid’!  
}, ‘Espectro\_082015.nc’)
