<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Jul 22, 2008, at 11:52 AM, Kevin M Levey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">gribmap (which really is "grib2map" in version 2.a.02 but still called "gribmap").</span></div></blockquote>This is not exactly correct. There are two separate utilities for <i>scanning</i> a grib file (gribscan and grib2scan). But the work of creating the index files is done by one utility, gribmap. Inside gribmap, the code for grib1 and grib2 files is completely separate, and the messages it prints to the users will say 'grib1map' or grib2map' depending on the which version of grib is being indexed. </div><div>Jennifer</div><div><br><blockquote type="cite"><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Here is my process (I am showing the 00hour as an example - do the same for ALL hours)</span></div><div><br></div><div>perl g2ctl.pl $REMOTE_DIR1/gfs.t12z.pgrbf00.grb2 $TEMP_DIR/gfs2.t12z.pgrbf00.idx >$TEMP_DIR/gfs2_000.ctl</div><div><br></div><div>This will create both the CTL and IDX files in *my* TEMP_DIR using data from *my* data source folder (it can be whatever you want it to be)</div><div><br></div><div>Then the following: </div><div><br></div><div>$GRADS2_DIR/gribmap -0 -i $TEMP_DIR/gfs2_000.ctl</div><div><br></div><div>where GRADS2_DIR=/usr/local/bin/grads-2.0.a2/bin (*my* location of the latest version of grads)</div><div><br></div><div>Fire up grads 2 and open gfs2_000.ctl</div><div><br></div><div>This process works perfectly for me.</div><div><br></div><div>Regards</div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-size: 17px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: 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: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div><div>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div>Director of Meteorological Operations</div><div>CustomWeather, Inc.</div><div>San Francisco, California, USA</div><div><br></div><div>"Taking the World by Storm!"</div><div><br></div><div><a href="http://www.customweather.com">http://www.customweather.com</a></div><div><a href="http://www.myforecast.com">http://www.myforecast.com</a></div><div><a href="http://www.1stweather.com">http://www.1stweather.com</a></div><div><br></div><div>cell: 415-794-0411</div><div>work: 415-777-3566</div><div>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a></div><div><br></div></div><br></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On Jul 22, 2008, at 07/22/08 - 7:03 AM, Gilmour, Isla wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div dir="ltr" align="left"><font face="Tahoma" color="#0000ff" size="2"><span class="725220014-22072008">Jennifer</span></font></div> <div dir="ltr" align="left"><font face="Tahoma" color="#0000ff" size="2"><span class="725220014-22072008"></span></font> </div> <div dir="ltr" align="left"><font face="Tahoma" color="#0000ff" size="2"><span class="725220014-22072008">Thanks for your response. Indeed, I checked the $PATH, and tried using a complete path to gribmap, but continued to get the same error. Has anyone used gribmap from the grads v2.a.02 "package" successfully with GFS pgrbf.grib2 files?</span></font></div> <div dir="ltr" align="left"><font face="Tahoma" color="#0000ff" size="2"><span class="725220014-22072008"></span></font> </div> <div dir="ltr" align="left"><font face="Tahoma" color="#0000ff" size="2"><span class="725220014-22072008">Isla</span></font></div><br> <blockquote style="MARGIN-RIGHT: 0px"> <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <hr tabindex="-1"> </div> <div> <blockquote type="cite"> <div style="MARGIN: 0px">Leaving tdef aside, the next step is to use gribmap (the one which comes</div> <div style="MARGIN: 0px">with grads-2.0.a2) , but this failed:</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <blockquote type="cite"> <div style="MARGIN: 0px">g2ctl -0 /data/weather/gfs/20080714/00/gfs.t00z.pgrbf > gfs.ctl</div> <div style="MARGIN: 0px">gribmap -i gfs.ctl</div></blockquote> <div style="MARGIN: 0px">Open Error: Data file type invalid</div> <div style="MARGIN: 0px">--> The invalid description file record is:</div> <div style="MARGIN: 0px">--> dtype grib2</div> <div style="MARGIN: 0px">The data file was not opened.</div></blockquote> <div>The 'dtype grib2' option should work with gribmap (the one that comes with 2.0.a2). Please check your $PATH or use a complete path to gribmap to make sure you're using the right one. </div> <div><br></div> <div>Jennifer</div><br> <blockquote type="cite"> </blockquote></div></blockquote></div></blockquote></div><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span> </div><br></body></html>