- 积分
- 222
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-21
- 最后登录
- 1970-1-1
|
发表于 2017-12-21 23:39:11
|
显示全部楼层
楼主,您好,有个问题想要请教一下。
程序如下,改写自网页的Mars request:
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
'datasets' : 'cera20c',
'CLASS' : 'EP',
'TYPE' : 'FC',
'STREAM' : 'EDMO',
'EXPVER' : '1',
'LEVTYPE' : 'PL',
'LEVELIST' : '100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000',
'PARAM' : '135.128',
'DATE' : '19520101/19520201/19520301/19520401/19520501/19520601/19520701/19520801/19520901/19521001/19521101/19521201',
'NUMBER' : '0/1/2/3/4/5/6/7/8/9',
'DOMAIN' : 'G',
'RESOL' : 'AUTO',
"format" : "netcdf",
'GRID' : '2.5/2.5',
'PADDING' : '0',
'EXPECT' : 'ANY',
})
连接和密码都没有问题,使用example.py能够成功下载
报错如下
Traceback (most recent call last):
File "F:\ecmwf-api-client-python\getdat.py", line 21, in <module>
'EXPECT' : 'ANY',
File "F:\ecmwf-api-client-python\ecmwfapi\api.py", line 520, in retrieve
c.execute(req, target)
File "F:\ecmwf-api-client-python\ecmwfapi\api.py", line 452, in execute
self.connection.submit("%s/%s/requests" % (self.url, self.service), request)
File "F:\ecmwf-api-client-python\ecmwfapi\api.py", line 348, in submit
self.call(url, payload, "POST")
File "F:\ecmwf-api-client-python\ecmwfapi\api.py", line 140, in wrapped
return func(self, *args, **kwargs)
File "F:\ecmwf-api-client-python\ecmwfapi\api.py", line 340, in call
raise APIException("ecmwf.API error 1: %s" % (self.last["error"],))
APIException: u'ecmwf.API error 1: Resource not found: datasets/None'
想请教一下问题出在哪里,将不胜感激 |
|