<html><head><base href="x-msg://235/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hey Eric,</div>Unfortunately, this command is still not working in a basic terminal shell. Here is what I put through: 'g2ctl grib2_gfs_4_20140112_1200_009.grb2 &gt; grib2_gfs_4_20140112_1200_009.ctl' and this is the error I am getting: '-bash: g2ctl: command not found'. Any thoughts on this would be much appreciated.<div>Thanks,</div><div>Ethan<br><div><div>On 2014-01-16, at 6:52 PM, Eric Altshuler wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); ">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:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:ela@cola.iges.org">ela@cola.iges.org</a><br>Phone: (703) 993-5725<br>Fax: (703) 993-5770</div><span name="x"></span><br></div><br><hr id="zwchr"><b>From:<span class="Apple-converted-space">&nbsp;</span></b>"Ethan Sacoransky" &lt;<a href="mailto:ethan.saco@me.com">ethan.saco@me.com</a>&gt;<br><b>To:<span class="Apple-converted-space">&nbsp;</span></b>"GrADS Users Forum" &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br><b>Sent:<span class="Apple-converted-space">&nbsp;</span></b>Thursday, January 16, 2014 6:50:55 PM<br><b>Subject:<span class="Apple-converted-space">&nbsp;</span></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;<span class="Apple-converted-space">&nbsp;</span><br>&gt; In order to open a grib2 file in GrADS, a control (.ctl) and an index (.idx) file must exist.<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; To create a .ctl file with g2ctl, use this command in your terminal:<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; g2ctl grib2_file.grb2 &gt; grib2_file.ctl<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Then to create the .idx file with gribmap, use this command:<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; gribmap -i grib2_file.ctl<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Onward and Upward,<br>&gt;<span class="Apple-converted-space">&nbsp;</span><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;<span class="Apple-converted-space">&nbsp;</span><br>&gt; ________________________________________<br>&gt; From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] on behalf of Ethan Sacoransky [<a href="mailto:ethan.saco@me.com">ethan.saco@me.com</a>]<br>&gt; Sent: Thursday, January 16, 2014 6:23 PM<br>&gt; To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; Subject: [gradsusr] Opening a Grb2 File<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Good evening everyone,<br>&gt;<span class="Apple-converted-space">&nbsp;</span><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;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Ethan<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></div></span></blockquote></div><br></div></body></html>