- 积分
- 30
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-5-3
- 最后登录
- 1970-1-1
|
1金钱
问题描述:最近正在利用python代码循环下载欧洲中心公共数据集ERA-Interim(Jan 1979-present)中逐日地面再分析资料,代码是通过“View MARS request”获取的,但经常在下载第二年数据时就会出现:ConnectionResetError:[WinError 10054]远程主机强迫关闭了一个现有连接。请高手帮忙瞧瞧问题出在哪儿,下载参量是Vertical integral of cloud frozen water。具体代码如下:-----------------------------------------------------------------------
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
y=1998
while y < 2015:
server.retrieve({
"class": "ei",
"dataset": "interim",
"date": str(y)+"-01-01/to/"+str(y)+"-12-31",
"expver": "1",
"grid": "0.125/0.125",
"area": "60/50/0/140",
"levtype": "sfc",
"param": "57.162",
"step": "0",
"stream": "oper",
"time": "00:00:00/06:00:00/12:00:00/18:00:00",
"type": "an",
"format" : "netcdf",
"target": "ec.vicfw."+str(y)+".nc",
})
y=y+1
------------------------------------------------------------------------
多谢帮忙,拜托!
|
|