<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi Ethan,<div><br></div><div>The g2ctl is a perl script, not a grads command. You have to run it from the shell command line, not inside grads.</div><div><br></div><div>Best regards,<br><br><div><span name="x"></span>Eric L. Altshuler<br>Research Scientist<br>Center for Ocean-Land-Atmosphere Studies<br>253 Research Hall, Mail Stop 6C5<div>George Mason University</div><div>4400 University Drive<br>Fairfax, VA 22030 USA<br><br>E-mail: ela@cola.iges.org<br>Phone: (703) 993-5725<br>Fax: (703) 993-5770</div><span name="x"></span><br></div><br><hr id="zwchr"><b>From: </b>"Ethan Sacoransky" &lt;ethan.saco@me.com&gt;<br><b>To: </b>"GrADS Users Forum" &lt;gradsusr@gradsusr.org&gt;<br><b>Sent: </b>Thursday, January 16, 2014 6:50:55 PM<br><b>Subject: </b>Re: [gradsusr] Opening a Grb2 File<br><br>Hi Aaron,<br>I am attempting to carry out this process by typing in 'g2ctl gfs_4_20140112_1200_009.grb2 &gt; gfs_4_20140112_1200_009.ctl'. I got an error saying 'unknown command: g2ctl'. Any thoughts on this? Thanks so much.<br><br>Ethan<br><br>On 2014-01-16, at 6:39 PM, Perry, Aaron @ LSC wrote:<br><br>&gt; Hi Ethan,<br>&gt; <br>&gt; In order to open a grib2 file in GrADS, a control (.ctl) and an index (.idx) file must exist.<br>&gt; <br>&gt; To create a .ctl file with g2ctl, use this command in your terminal:<br>&gt; <br>&gt; g2ctl grib2_file.grb2 &gt; grib2_file.ctl<br>&gt; <br>&gt; Then to create the .idx file with gribmap, use this command:<br>&gt; <br>&gt; gribmap -i grib2_file.ctl<br>&gt; <br>&gt; <br>&gt; Onward and Upward,<br>&gt; <br>&gt; Aaron D. Perry<br>&gt; Boston, MA<br>&gt; Lyndon State College '16<br>&gt; Twitter: @AaronPerryLSC<br>&gt; Mobile: 617-780-4312<br>&gt; <br>&gt; ________________________________________<br>&gt; From: gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Ethan Sacoransky [ethan.saco@me.com]<br>&gt; Sent: Thursday, January 16, 2014 6:23 PM<br>&gt; To: gradsusr@gradsusr.org<br>&gt; Subject: [gradsusr] Opening a Grb2 File<br>&gt; <br>&gt; Good evening everyone,<br>&gt; <br>&gt; In an attempt to open up a grib2 file, I have downloaded and unpacked the wgrib2 tar file and copied the g2ctl script onto a text edit file. When I type in the command 'run g2ctl gfs_4_20140112_1200_009.grb2' I get the prompt, "error opening script file: g2ctl". &nbsp;Any thoughts on why this would be?<br>&gt; <br>&gt; Ethan<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; gradsusr@gradsusr.org<br>&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br>&gt; <br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; gradsusr@gradsusr.org<br>&gt; http://gradsusr.org/mailman/listinfo/gradsusr<br><br><br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div></body></html>