grads处理grib资料

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

相关附件:(共323223 字节)

funny给你一个小程序,是用perl写的,然后funny转成了exe文件,你可以用它生成ctl,但生成的ctl文件还需要自己去掉这个程序强制添加上去的一些信息,然后,你用gribmap.exe生成index文件,就可以显示了。

这个zip包里有原始的perl程序,转好的exe文件和gribmap.exe三个文件。

C:\drawing\ncep-monthly\ex>grib2ctl -i prs.grib.mean.y1980>y1980.ctl

Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options

Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options

C:\drawing\ncep-monthly\ex>gribmap -i y1980.ctl

Open Error: Unknown keyword in description file

--> The invalid description file record is:

--> this exe file was created with the evaluation version of perl2exe.

The data file was not opened.

File name is: y1980.ctl

"Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options"

就是说你应该用-ncep_opn 或-ncep_rean 的选项,具体看帮助

下面就不用说了,ctl都没有形成,自然不行的了

Hi,funny

Thanks!

错误与“-ncep_opn, -ncep_rean options”无关,是ctl中endvars后“--> this exe file was created with the evaluation version of perl2exe.”的这句话作怪,删掉后可正常得到idx。

=========

D:\PCGrADS\win32>grib2ctl E:\。。。\air2m.mon.mean.nc >air2m.ctl

显示的信息如下:

Big problem:

#either e:\ncep\nc\air2m.mon.mean.nc is missing or not a grib file

or wgrib is not on your path

可这个人家告诉我确实是格点文件啊

================

这个文件是格点文件,但不是grib码文件,直接用sdfopen 文件名就可以了。

#我在DOS里面用命令C:\Program Files\PCGrADS\win32>grib2ctl.exe grib_file

为什么不能生成grib_file.ctl?请各位前辈指点。

[这个贴子最后由tibet在2004/06/30 04:13pm 编辑]

C:\Program Files\PCGrADS\win32>grib2ctl grib_file > grib_file.ctl

or

gs>!grib2ctl grib_file > grib_file.ctl

#请教个问题,如何形成几个时次在一个文件中的ctl 和idex

请参考grads中文手册。ctl文件中可以设置一个参数options template。生成一个时次的ctl之后自己编辑修改ctl。不然,把所有时次都写一个grib文件中。

'reinit'

'sdfopen d:\zhj\slp.1948.nc'

'set lon 120 240'

'set lat 20 60'

'set lev 0'

'set t 289 366'

'set gxout fwrite'

'set fwrite d:\zhj\slp.grd'

'd slp'

'disable fwrite'

;

写成.grd文件再写一个.ctl文件就可以了

不过是不是有点麻烦

#各位前辈

我最近才接触到grads ,现在用的是.nc格式的ncep reanalysis资料

看了前面的贴子,还是有很多不太明白的,现在我用sdfopen可以打开资料

也可以画图,但是怎么能生成.ctl文件呢.希望能说的清楚一些

非常感谢

你这个是格点资料直接用sdfopen读就可以了,nc文件自带描述文件的,不需要你编ctl。要是你把nc 资料转化成grd格式的再画图就需要编写ctl了

D:\PCGrADS\win32e>gribmap -i hhca50.ctl

Open Error: Data file type invalid

--> The invalid description file record is:

--> options yrev

The data file was not opened.

File name is: hhca50.ctl

我用girbmap命令生成idx时候,会提示这样的错误,是怎么回事啊?

相关文档
最新文档