- 积分
- 1276
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-12-2
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
Linux |
问题截图: |
- |
问题概况: |
2020-02-20 20:14:22,297 WARNING Recovering from connection error [HTTPSConnectionPool(host='cds.climate.copernicus.eu', port=443): Max retries exceeded with url: /api/v2/resources/reanalysis-era5-single-levels (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0d3e1e1dd8>, 'Connection to cds.climate.copernicus.eu timed out. (connect timeout=60)'))], attemps 2 of 500
2020-02-20 20:14:22,297 WARNING Retrying in 120 seconds
以上是报错内容
之前代码成功下载过,也不知道为啥... |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
10 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
代码如下
import cdsapi
import time
c = cdsapi.Client()
Number=2018-1990+1
for x in range(Number):
year=1990+x
time.sleep(60)
c.retrieve(
'reanalysis-era5-single-levels',
{
'product_type':'reanalysis',
'variable':'2m_temperature',
'year':str(year),
'month':[
'01','02','03',
'04','05','06',
'07','08','09',
'10','11','12'
],
'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'
],
'format':'netcdf'
},
't2m'+str(year)+'.nc')
|
|