-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathretrieve_seas5.py
45 lines (43 loc) · 1.19 KB
/
retrieve_seas5.py
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
import cdsapi
c = cdsapi.Client()
r = c.retrieve(
'seasonal-original-single-levels',
{
'variable': 'total_precipitation',
'originating_centre': 'ecmwf',
'system': '5',
'year': [str(y) for y in range(1981, 2022)],
'month': [
'05', '06', '07',
'08', '09',
],
'day': '01',
'area': [
39, 66, 6,
100,
],
'leadtime_hour': [
'24', '48', '72',
'96', '120', '144',
'168', '192', '216',
'240', '264', '288',
'312', '336', '360',
'384', '408', '432',
'456', '480', '504',
'528', '552', '576',
'600', '624', '648',
'672', '696', '720',
'744', '768', '792',
'816', '840', '864',
'888', '912', '936',
'960', '984', '1008',
'1032', '1056', '1080',
'1104', '1128', '1152',
'1176', '1200', '1224',
'1248', '1272', '1296',
'1320', '1344', '1368',
'1392', '1416', '1440',
],
'format': 'netcdf'
})
r.download('data/seas5_forecasts.nc')