- 积分
- 2268
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-7-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
求问!用python下载再分析资料2 metre temperature读取时候出错!!下载的时候是没有任何报错的 然额,读取时提示“OSError: [Errno -51] NetCDF: Unknown file format: b'E:\\ecmwf-api-client-python\\2010_2m.nc'(python和linux的ncdump -h 都试过了)
奇怪的是 其他变量读取的时候并没有遇到这个问题。。。
脚本如下:
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
data=["2010"]
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
data=["1996"]
# This script downloads ERA-Interim forecasts, on pressure levels.
# Adapt the script to your requirements.
# The data volume for all pressure level data is about 5GB per day, and all pressure level data for more than a single day will exceed the WebAPI limit of 600.000 fields. Thus please restrict the download to what you really need.
# It is likely you need to split your request, this is best done by time periods, ie. first download for month 1, then for month 2, etc.
for idata in range(len(data)):
server.retrieve({
'stream' : "oper",
'levtype' : "sfc",
'param' : "167.128",
'dataset' : "interim",
'step' : "0",
'grid' : "0.75/0.75",
'time' : "00/06/12/18",
'date' : data[idata]+"-01-01"+"/to/"+data[idata]+"-12-31",#"2010-01-01/to/2010-12-31",
'type' : "an",
'class' : "ei",
'target' : data[idata] + "_2mt.nc",
})
|
|