[gradsusr] g2ctl and gribmap errors
Swati Athale
swati at tropmet.res.in
Fri Sep 7 00:42:16 EDT 2012
Dear Grads support,
I have two problems.
1 .
----------------------------------------------------------------------------------
I want to open/plot a grib2 file in grads in AIX.
data file: T574_IND_00h.grb2
I downloaded a pearl script the script to create ctl
bash-3.2$ ./g2ctl.pl T574_IND_00h.grb2 > T574_IND_00h.ctl
bash-3.2$ cat T574_IND_00h.ctl|more
dset ^T574_IND_00h.grb2
index ^T574_IND_00h.grb2.idx
undef 9.999E+20
title T574_IND_00h.grb2
* produced by g2ctl v0.0.8.4
* command line options: T574_IND_00h.grb2
* griddef=1:0:(481 x 321):grid_template=0: lat-lon grid:(481 x 321) units 1e-06
input WE:NS output WE:SN res 48 lat 60.000000 to -20.000000 by 0.250000 lon 20.0
00000 to 140.000000 by 0.250000 #points=154401:winds(N/S)
bash-3.2$ gribmap -i T574_IND_00h.ctl
Open Error: Data file type invalid
--> The invalid description file record is:
--> dtype grib2
The data file was not opened.
File name is: T574_IND_00h.ctl
bash-3.2$
-------------------------------------------------------------------------
Problem 2:
I have a grib file
bash-3.2$ ls -l T254_IND_114h.grb
-rw-r--r-- 1 swati hpcs 19619338 Nov 26 2010 T254_IND_114h.grb
Kindly let me know where I can get the right script to convert to ctl and then gribmap.
I downloaded grib2ctl.pl from CPC website but this gives syntax error.
I also tried with some other sites and used the grib2ctl.pl could not run them, they all give mismatch parenthesis errors.
----------------------------------------------------------
I will be thankful to get reply from grads.
regards,
Swati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120907/0f6e2ff4/attachment-0003.html
More information about the gradsusr
mailing list