Has anyone gotten this to work, i can download pressure level and single level data fine but haven’t figured how to get model level data. Is there any documentation on this (i failed to find any googling around).
This worked for me:
import cdsapi
c = cdsapi.Client()
c.retrieve('reanalysis-era5-complete', {
'date' : '2024-06-30',
'levelist' : '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/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/111/112/113/114/115/116/117/118/119/120/121/122/123/124/125/126/127/128/129/130/131/132/133/134/135/136/137',
'levtype' : 'ml',
'param' : '75/76/77/129/130/131/132/133/135/138/152/155/203/246/247/248',
'stream' : 'oper',
'time' : '12:00:00',
'type' : 'an',
'area' : '40.5/-85/39.5/-83',
'grid' : '0.25/0.25',
'data_format' : 'grib'
}, 'MLgrib.grib2')
1 Like
This is how the old API worked but since i switched to the new one i can’t get anything accepted by the server. Thanks for the help though.
I did this just today with the new API. I am assuming that since you indicate you can get pressure level and single level data that you are using the new API without issue. What error are you seeing?
1 Like
Holy cow it just worked… before it was timing out, maybe the server was doing maintenance or something.
Just FYI I was using lists instead of one string with forward slashes. That works for the pressure and single levels but the model level call doesn’t like at least one of them.
Thank you!