# How to download 10m u/v wind

**URL:** <https://forum.ecmwf.int/t/how-to-download-10m-u-v-wind/1549>\
**Category:** C3S - Access and Login\
**Tags:** cds, c3s\
**Created:** [28 December 2023 03:12 UTC](https://forum.ecmwf.int/t/how-to-download-10m-u-v-wind/1549 "2023-12-28T03:12:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiaodan\_Liu](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/x/c67d28/32.png) [@Xiaodan\_Liu](https://forum.ecmwf.int/u/Xiaodan_Liu)\
**Post date:** [28 December 2023 03:12 UTC](https://forum.ecmwf.int/t/how-to-download-10m-u-v-wind/1549/1 "2023-12-28T03:12:28Z")

</div>

I want to download 10m u/v wind from 'reanalysis-era5-complete', and I set the aera,codes are below,it runs with some errors

#!/usr/bin/env python  
import cdsapi  
 c = cdsapi.Client()  
 c.retrieve('reanalysis-era5-complete', { # Requests follow MARS syntax  
 # Keywords 'expver' and 'class' can be dropped. They are obsolete  
 # since their values are imposed by 'reanalysis-era5-complete'  
 'date' : '2022-12-30', # The hyphens can be omitted  
 'levelist': '1/to/137', # 1 is top level, 137 the lowest model level in ERA5. Use '/' to separate values.  
 'levtype' : 'ml',  
 'param' : [  
'165', '166',  
 ], # Full information at [https://apps.ecmwf.int/codes/grib/param-db/](https://apps.ecmwf.int/codes/grib/param-db/)  
 # The native representation for temperature is spherical harmonics 130-T，129-H，157-RH  
 'stream' : 'oper', # Denotes ERA5. Ensemble members are selected by 'enda'  
 'time' : [  
'00:00', '01:00', '02:00',  
 '03:00', '04:00', '05:00',  
 '06:00', '07:00', '08:00',  
 '09:00', '10:00', '11:00',  
 '12:00', '13:00', '14:00',  
 '15:00', '16:00', '17:00',  
 '18:00', '19:00', '20:00',  
 '21:00', '22:00', '23:00',  
 ], # You can drop :00:00 and use MARS short-hand notation, instead of '00/06/12/18'  
 'type' : 'fc',(here I tried an,but failed either)  
 'area' : '21/105/4/118', # North, West, South, East. Default: global  
 'grid' : '0.25/0.25', # Latitude/longitude. Default: spherical harmonics or reduced Gaussian grid  
 'format' : 'grib', # Output needs to be regular lat-lon, so only works in combination with 'grid'!  
  
}, '20221229.grib') # Output file. Adapt as you wish.

&nbsp;

And the result is

2023-12-28 09:50:27,233 INFO Request is queued  
 2023-12-28 11:03:55,690 INFO Request is failed  
 2023-12-28 11:03:55,690 ERROR Message: the request you have submitted is not valid  
 2023-12-28 11:03:55,690 ERROR Reason: &nbsp;Expected 6576, got 0.; Request failed; Some errors reported (last error -1)  
 2023-12-28 11:03:55,691 ERROR &nbsp; Traceback (most recent call last):  
 2023-12-28 11:03:55,691 ERROR &nbsp; &nbsp; File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 59, in handle\_request  
 2023-12-28 11:03:55,691 ERROR &nbsp; &nbsp; &nbsp; result = cached(context.method, proc, context, context.args, context.kwargs)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; result = proc(context, \*context.args, \*\*context.kwargs)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 124, in \_\_call\_\_  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; return p(\*args, \*\*kwargs)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 60, in \_\_call\_\_  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; return self.proc(context, \*args, \*\*kwargs)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/home/cds/cdsservices/services/mars/mars.py", line 53, in external  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; return mars(context, request, \*\*kwargs)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/home/cds/cdsservices/services/mars/mars.py", line 20, in mars  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; execute\_mars(context, requests, info)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/home/cds/cdsservices/services/mars/execute\_mars.py", line 20, in execute\_mars  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; exception=MarsException)  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; File "/opt/cdstoolbox/cdscompute/cdscompute/context.py", line 209, in run\_command  
 2023-12-28 11:03:55,692 ERROR &nbsp; &nbsp; &nbsp; raise exception(call, proc.returncode, output)  
 2023-12-28 11:03:55,692 ERROR &nbsp; home.cds.cdsservices.services.mars.\_\_init\_\_.py.exceptions.MarsException: Expected 6576, got 0.; Request failed; Some errors reported (last error -1)  
 Traceback (most recent call last):  
 &nbsp; File "F:\test\downloadERA5.py", line 4, in \<module\>  
 &nbsp; &nbsp; c.retrieve('reanalysis-era5-complete', { # Requests follow MARS syntax  
 &nbsp; File "E:\Anconda\Lib\site-packages\cdsapi\api.py", line 364, in retrieve  
 &nbsp; &nbsp; result = self.\_api("%s/resources/%s" % (self.url, name), request, "POST")  
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
 &nbsp; File "E:\Anconda\Lib\site-packages\cdsapi\api.py", line 519, in \_api  
 &nbsp; &nbsp; raise Exception(  
 Exception: the request you have submitted is not valid. Expected 6576, got 0.; Request failed; Some errors reported (last error -1).

---

<div class="post-metadata">

**Author:** ![Michela](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@Michela](https://forum.ecmwf.int/u/Michela)\
**Post date:** [28 December 2023 12:11 UTC](https://forum.ecmwf.int/t/how-to-download-10m-u-v-wind/1549/2 "2023-12-28T12:11:00Z")

</div>

Hi,

the variables available at model levels are available here: [ERA5: data documentation#Table12](https://confluence.ecmwf.int/display/CKB/ERA5%3A+data+documentation#ERA5:datadocumentation-Table12)

You can also build the API script for ERA5 model levels data using the catalogue available here:&nbsp;[MARS ERA5 catalogue](http://apps.ecmwf.int/data-catalogues/era5)

Thanks

---

<div class="post-metadata">

**Author:** ![Zhigang\_Song](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/z/53a042/32.png) [@Zhigang\_Song](https://forum.ecmwf.int/u/Zhigang_Song)\
**Post date:** [2 January 2024 10:30 UTC](https://forum.ecmwf.int/t/how-to-download-10m-u-v-wind/1549/3 "2024-01-02T10:30:39Z")

</div>

Thanks Michela
