-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathERA5_month_download.py
35 lines (34 loc) · 1.7 KB
/
ERA5_month_download.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
# Import cdsapi and create a Client instance
for i in range (1,13):
import cdsapi
c = cdsapi.Client()
# More complex request
c.retrieve("reanalysis-era5-single-levels", {
"product_type": "reanalysis",
"format": "netcdf",
"area": "4/-75/-35/-34",
'grid': ['0.25', '0.25'],
"variable": ['2m_temperature'],
"year": [
'1981','1982', '1983',
'1984','1985', '1986',
'1987','1988', '1989',
'1990','1991', '1992',
'1993', '1994', '1995',
'1996', '1997', '1998',
'1999', '2000', '2001',
'2002', '2003', '2004',
'2005', '2006', '2007',
'2008', '2009', '2010',
'2011', '2012', '2013',
'2014', '2015', '2016',
'2017', '2018', '2019',
'2020', '2021','2022','2023'],
"month": ["%s"%i],
"day": ["01","02","03","04","05","06","07","08","09","10","11",
"12","13","14","15","16","17","18","19","20","21","22",
"23","24","25","26","27","28","29","30","31"],
"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'],
}, "/Volumes/Seagate_HD/HW_Brasil/ERA5_%s_8123.nc"%i)