grads处理grib资料

更新时间:2023-12-20 13:02:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

相关附件:

(共 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

\ 就是说你应该用 -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。不然,把所有时次都写一个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文件呢.希望能说的清楚一些 非常感谢

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时候,会提示这样的错误,是怎么回事啊?

本文来源:https://www.bwwdw.com/article/kpw5.html

Top