- 积分
- 38
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-5-4
- 最后登录
- 1970-1-1
|
发表于 2017-8-31 16:57:13
|
显示全部楼层
求助楼主,新人小白一个,用python下的ERA5数据,#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
"class": "ea", # Do not change
"dataset": "era5", # Do not change
"expver": "1", # Do not change
"stream": "oper", # can be "oper", "wave", etcetera; see ERA5 catalogue (http://apps.ecmwf.int/data-catalogues/era5) and ERA5 documentation (https://software.ecmwf.int/wiki/display/CKB/ERA5+data+documentation)
"type": "4v", # can be an (Analysis) or fc (forecast) or 4v (4D variational analysis)
"levtype": "sfc", # can be "sfc", "pl", "ml", etcetera; see ERA5 documentation
"param": "169.128", # Parameters you want to retrieve. For available parameters see the ERA5 documentation. Specify here using shortName or paramID, and separated by '/'.
"date": "2016-01-01/to/2016-12-31", # Set a single date as "YYYY-MM-DD" or a range as "YYYY-MM-DD/to/YYYY-MM-DD".
"time": "09:00:00/21:00:00", # If above you set "type":"an", "time" is the time of analysis. If above you set "type":"fc", "time" is the initialisation time of the forecast.
"step": "1/2/3/4/5/6/7/8/9/10/11/12",
"target": "2016.grb", # Change this to the desired output path and file name, e.g. "data1.nc" or "./data/data1.grib". The default path is the current working directory.
})
下的是短波辐射数据,然后在matlab里面read_grib这个也弄好了,但是读取不成功是为什么?
a=read_grib('2015.grb','invent')
错误使用 fileparts
输出参数太多。
出错 read_grib (line 77)
[fpath,fname,fext,fver]=fileparts(gribname);
|
|