- 积分
- 352
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-4-24
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
下载数据:
要5年的月平均资料。
自己的程序:
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
'class': 'ei',
'dataset' : 'interim',
'date' : '19880101/19880201/19880301/19880401/19880501/19880601/19880701/19880801/19880901/19881001/19881101/19881201/19910101/19910201/19910301/19910401/19910501/19910601/19910701/19910801/19910901/19911001/19911101/19911201/19930101/19930201/19930301/19930401/19930501/19930601/19930701/19930801/19930901/19931001/19931101/19931201/19980101/19980201/19980301/19980401/19980501/19980601/19980701/19980801/19980901/19981001/19981101/19981201/20100101/20100201/20100301/20100401/20100501/20100601/20100701/20100801/20100901/20101001/20101101/20101201',
'expver' :'1',
'levtype' : 'pl',
'param' :'60.128/129.128/130.128/131/132/133.128/135.128/138.128/155.128/157.128',
'levelist':'200/500',
'type' : 'an',
'stream' : 'moda',
'format' :'netcdf',
'area' : '90/0/0/180',
'grid' : '1/1',
'target' : 'C:/Users/LENOVO/Desktop/wenxian/data/strong.nc',
})
错误:
我是下载了一部分,然后说我有错误,实在不知道错哪里了。
Traceback (most recent call last):
File "C:\Users\LENOVO\Downloads\ecmwf-api-client-python\yearstrong.py", line 18, in <module>
'target' : 'C:/Users/LENOVO/Desktop/wenxian/data/strong.nc',
File "C:\Users\LENOVO\Downloads\ecmwf-api-client-python\ecmwfapi\api.py", line 520, in retrieve
c.execute(req, target)
File "C:\Users\LENOVO\Downloads\ecmwf-api-client-python\ecmwfapi\api.py", line 488, in execute
assert size == result["size"]
AssertionError
希望大家帮我看看错哪里了~~~
|
|