[gradsusr] g2ctl and gribmap errors

Swati Athale swati at tropmet.res.in
Fri Sep 7 14:39:27 EDT 2012


Hello Mr. Wesley , 
Thanks for your help. I will install latest version of gribmap and try. 

regards 
Swati 


From: "Wesley Ebisuzaki" <wesley.ebisuzaki at noaa.gov> 
To: "GrADS Users Forum" <gradsusr at gradsusr.org> 
Sent: Friday, 7 September, 2012 7:44:45 PM 
Subject: Re: [gradsusr] g2ctl and gribmap errors 

Swati, 

For problem 1. 

g2ctl make the ctl file for a grib2 file. However, you need to use GrADS v2 to 
make the index file and display the grib2 files. That is why gribmap is complaining 
about an undefined data type. 

For problem 2. 

I don't know why grib2ctl gives a syntax error; grib2ctl works for me. Lucky 
I guess. 

Wesley Ebisuzaki 




On Fri, Sep 7, 2012 at 12:42 AM, Swati Athale < swati at tropmet.res.in > wrote: 




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 



_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 



_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120908/afac2431/attachment-0003.html 


More information about the gradsusr mailing list