爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3471|回复: 3

[分享资料] grib文件名不规则时的解码问题

[复制链接]

新浪微博达人勋

发表于 2013-10-22 20:08:38 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
各位大侠晚上好,小弟在对grib2数据解码时碰到了一些问题,ctl文件已经生成,但是idx文件无法生成,主要是因为grib文件名不规则引起的,但是不知道该怎么解决,求指导?数据文件如下:
QQ截图20131022200101.jpg
ctl文件已经生成如下:
dset D:\datafiles\ipvhnl.gdas.2009%m2%d2-2009%m2%d2.grb2
index D:\datafiles\ipvhnl.gdas.20090101-20090105.grb2.idx
undef 9.999E+20
title D:\datafiles\ipvhnl.gdas.20090101-20090105.grb2
*  produced by g2ctl v0.0.3d
* griddef=1:0:(360 x 181):grid_template=0: lat-lon grid:(360 x 181) units 1e-06 input WE:NS output WE:SN res 48 lat 90.000000 to -90.000000 by 1.000000 lon 0.000000 to 360.000000 by 1.000000 #points=259920
dtype grib2
options template
ydef 181 linear -90.000000 1.0
xdef 360 linear 0.000000 1.00000
tdef 1460 linear 00Z01jan2009 6hr
zdef 1 linear 1 1
vars 1
PRESsfc  0,1,0   0,3,0 ** surface none Pressure [Pa]
ENDVARS
但是在生成idx文件时出错:
grib2map: scanning GRIB2 file: D:\datafiles\ipvhnl.gdas.20090101-20090101.grb2
grib2map warning: could not open GRIB file: D:\datafiles\ipvhnl.gdas.20090101-20090101.grb2
grib2map: scanning GRIB2 file: D:\datafiles\ipvhnl.gdas.20090102-20090102.grb2
grib2map warning: could not open GRIB file: D:\datafiles\ipvhnl.gdas.20090102-20090102.grb2
grib2map: scanning GRIB2 file: D:\datafiles\ipvhnl.gdas.20090103-20090103.grb2
grib2map warning: could not open GRIB file: D:\datafiles\ipvhnl.gdas.20090103-20090103.grb2
grib2map: scanning GRIB2 file: D:。。。。。。
求指教。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-10-23 09:09:55 | 显示全部楼层
把这一句里的时间也都用通用字符代替一下试试
index D:\datafiles\ipvhnl.gdas.20090101-20090105.grb2.idx
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-10-23 10:50:11 | 显示全部楼层
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-10-23 11:07:19 | 显示全部楼层
NWP 发表于 2013-10-23 10:50
还是不对,还是出现一样的错误

那就不清楚了,看看是不是路径有问题,还有就是最好在电脑里设置显示文件扩展名
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表