- 积分
- 352
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-4-24
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我的程序
#! /user/bin/env python
from ecmwfapi import ECMWFDataServer
server= ECMWFDataServer()
server.retrieve({
'class': "ei",
'dataset': "interim",
'date': "19880601/19880701/19880801/19910601/19910701/19910801/19930601/19930701/19930801/19980601/19980701/19980801/20100601/20100701/20100801",
'expver': "1",
'levtype': "pl",
'param': "129.128/131.128/132.128/133.128/135.128/138.128/157.128",
'levelist':"600/550/500/200",
'area':"-90/0/90/360",
'grid':"1/1",
'format':"netcdf",
'stream':"moda",
'type':"an",
'target':"C:/Users/Administrator/Desktop/data/strong.nc"
})
报错:
Traceback (most recent call last):
File "D:\ecmwf-api-client-python\test1.py", line 20, in <module>
'target':"C:/Users/Administrator/Desktop/data/strong.nc"
File "D:\ecmwf-api-client-python\ecmwfapi\api.py", line 519, in retrieve
c = APIRequest(self.url, "datasets/%s" % (dataset,), self.email, self.key, self.trace, verbose=self.verbose)
File "D:\ecmwf-api-client-python\ecmwfapi\api.py", line 391, in __init__
user = self.connection.call("%s/%s" % (self.url, "who-am-i"))
File "D:\ecmwf-api-client-python\ecmwfapi\api.py", line 140, in wrapped
return func(self, *args, **kwargs)
File "D:\ecmwf-api-client-python\ecmwfapi\api.py", line 340, in call
raise APIException("ecmwf.API error 1: %s" % (self.last["error"],))
ecmwfapi.api.APIException: 'ecmwf.API error 1: Access token expired'
根本不知道自己错哪儿了
|
|