<div dir="ltr">Are you sure you don&#39;t have a problem with your server&#39;s hard drive? I would get that checked first... in my own experience (which is quite atypical as I&#39;m manipulating close to 2 million files every day), I have had to have a hard drive changed out about every year, and the warning signs were errors similar to what you are experiencing (followed quickly by e-mails from an automated S.M.A.R.T. stats reader I have set up to tell me when the drive is almost gone).<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 4, 2014 at 6:12 PM, Tyler Jankoski <span dir="ltr">&lt;<a href="mailto:tjj5091@psu.edu" target="_blank">tjj5091@psu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Aaron,<div><br></div><div>It seems the problem is random. For example, if 20z works but 21z doesn’t, I’ve tried to go run 20z again and it fails. Sometimes this is the error:</div>
<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">Failed to change directory.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Failed to open file.</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">
<br></div><div style="margin:0px;font-size:11px;font-family:Menlo">*** FATAL ERROR: could not open file: rtma2p5.t21z.2dvaranl_ndfd.grb2 ***</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</div><div style="margin:0px;font-size:11px;font-family:Menlo">Big problem:</div><div style="margin:0px;font-size:11px;font-family:Menlo">  either rtma2p5.t21z.2dvaranl_ndfd.grb2 is missing or not a grib file</div><div class="im">
<div style="margin:0px;font-size:11px;font-family:Menlo">  or wgrib2 is not on your path or wgrib2 is too old</div></div><div style="margin:0px;font-size:11px;font-family:Menlo">  or can not write to /tmp/g.22076.0.tmp (full disk or permissions).</div>
<div class="im"><div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing XDEF record </div><div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing YDEF record </div><div style="margin:0px;font-size:11px;font-family:Menlo">
Open Error:  missing ZDEF record </div><div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing TDEF record </div><div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing UNDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing DSET record </div><div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing VARS record </div><div style="margin:0px;font-size:11px;font-family:Menlo">
  The data file was not opened. </div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div></div><div style="margin:0px">This is the code I am running:</div>
<div style="margin:0px"><span style="font-family:Menlo;font-size:11px;color:rgb(83,48,225)"><br></span></div><div style="margin:0px"><span style="font-family:Menlo;font-size:11px;color:rgb(83,48,225)">#!/bin/csh -f</span></div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><div style="margin:0px;color:rgb(206,121,36)">set<span style="color:#000000"> yy=</span>`date -u +%Y`</div><div style="margin:0px;color:rgb(206,121,36)">set<span style="color:#000000"> mm=</span>`date -u +%m`</div>
<div style="margin:0px;color:rgb(206,121,36)">set<span style="color:#000000"> dd=</span>`date -u +%d`</div><div style="margin:0px"><span style="color:#ce7924">set</span> date=${yy}${mm}${dd}</div></div><div style="margin:0px;font-size:11px;font-family:Menlo">
<br></div><div style="margin:0px;font-size:11px;font-family:Menlo"><div style="margin:0px"><span style="color:#ce7924">cd</span> DATA</div><div style="margin:0px;min-height:13px"><br></div><div style="margin:0px">rm rtma2p5.t21z*</div>
<div style="margin:0px;min-height:13px"><br></div><div style="margin:0px">ftp -n <a href="http://ftpprd.ncep.noaa.gov" target="_blank">ftpprd.ncep.noaa.gov</a> <span style="color:#ce7924">&lt;&lt;ENDFTP2</span></div><div style="margin:0px;color:rgb(195,55,32)">
    user anonymous <a href="mailto:tjj5091@psu.edu" target="_blank">tjj5091@psu.edu</a></div><div style="margin:0px;color:rgb(195,55,32)">    cd pub/data/nccf/com/rtma/para/rtma2p5.${date}</div><div style="margin:0px;color:rgb(195,55,32)">
    bin</div><div style="margin:0px;color:rgb(195,55,32)">    get rtma2p5.t21z.2dvaranl_ndfd.grb2</div><div style="margin:0px;color:rgb(195,55,32)">    quit</div><div style="margin:0px;min-height:13px"><br></div><div style="margin:0px;color:rgb(206,121,36)">
ENDFTP2</div><div style="margin:0px;min-height:13px"><br></div><div style="margin:0px">/home/meteo/tjj5091/GrADS/DATA/g2ctl rtma2p5.t21z.2dvaranl_ndfd.grb2 <span style="color:#ce7924">&gt;</span>rtma2p5.t21z.ctl</div><div style="margin:0px;min-height:13px">
<br></div><div style="margin:0px">/usr/global/grads<span style="color:#c33720">-2</span>.<span style="color:#c33720">0</span>.<span style="color:#c33720">1</span>/bin/gribmap -i rtma2p5.t21z.ctl</div><div style="margin:0px;min-height:13px">
<br></div><div style="margin:0px">/usr/global/grads<span style="color:#c33720">-2</span>.<span style="color:#c33720">0</span>.<span style="color:#c33720">1</span>/bin/grads -blc <span style="color:#c33720">&quot;run <a href="http://t21z.gs" target="_blank">t21z.gs</a>&quot;</span></div>
<div style="margin:0px;min-height:13px"><br></div><div style="margin:0px;color:rgb(206,121,36)">exit</div><div style="margin:0px;color:rgb(206,121,36)"><br></div><div style="margin:0px;color:rgb(206,121,36)"><span style="color:rgb(0,0,0);font-family:Calibri;font-size:12px">Thanks,</span></div>
<div style="margin:0px;color:rgb(206,121,36)"><span style="color:rgb(0,0,0);font-family:Calibri;font-size:12px">Tyler</span></div><div style="margin:0px;color:rgb(206,121,36)"><span style="color:rgb(0,0,0);font-family:Calibri;font-size:12px"><br>
</span></div><div style="margin:0px;color:rgb(206,121,36)"><span style="color:rgb(0,0,0);font-family:Calibri;font-size:12px"><br></span></div></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div><div>
<div class="h5"><div>On Jan 3, 2014, at 7:26 PM, Perry, Aaron @ LSC &lt;<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>&gt; wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">





<div style="word-wrap:break-word">
<div style="direction:ltr;font-family:Tahoma;font-size:10pt">Hi Tyler,<br>
<br>
Assuming that you&#39;re running the g2ctl/gribmap combo to display the downloaded GRIB2 file in GrADS, it sounds like there may be a coding error somewhere before or during when g2ctl or gribmap runs.
<br>
<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font><br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Lyndon State College &#39;15<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC" target="_blank">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma">Mobile: <a href="tel:617-780-4312" value="+16177804312" target="_blank">617-780-4312</a></font></font></font></font></font></div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:&#39;Times New Roman&#39;;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Tyler Jankoski [<a href="mailto:tjj5091@psu.edu" target="_blank">tjj5091@psu.edu</a>]<br>

<b>Sent:</b> Thursday, January 02, 2014 7:53 PM<br>
<b>To:</b> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<b>Subject:</b> [gradsusr] Random Problem Running GrADS in Batch Mode<br>
</font><br>
</div>
<div></div>
<div>I use GrADS to generate RTMA temperature graphics every hour. Cron runs my scripts and GrADS generates the graphics in batch mode.
<div><br>
</div>
<div>About once or twice a day, the graphic output doesn’t work. I get this error message:</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Failed to open file.</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">*** FATAL ERROR: could not open file: rtma2p5.t21z.2dvaranal_ndfd.grb2 ***</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Big problem:</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">  either rtma2p5.t21z.2dvaranal_ndfd.grb2 is missing or not a grib file</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">  or wgrib2 is not on your path or wgrib2 is too old</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">  or can not write to /tmp/g.28979.0.tmp (full disk or permissions).</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing XDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing YDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing ZDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing TDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing UNDEF record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing DSET record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Open Error:  missing VARS record </div>
<div style="margin:0px;font-size:11px;font-family:Menlo">  The data file was not opened. </div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Grid Analysis and Display System (GrADS) Version 2.0.1</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Copyright (c) 1988-2011 by Brian Doty and the</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Institute for Global Environment and Society (IGES)</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">GrADS comes with ABSOLUTELY NO WARRANTY</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">See file COPYRIGHT for more information</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Config: v2.0.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Issue &#39;q config&#39; command for more detailed configuration information</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Landscape mode? (&#39;n&#39; for portrait):  </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Any idea what is causing this?</div>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div><b><font color="#941100">Tyler Jankoski<br>
</font></b><font color="#005493">Meteorology Major | The Pennsylvania State University<br>
Vice President | Campus Weather Service<br>
<br>
<b>Web:</b> <a href="http://www.tylerjankoski.com/" target="_blank">www.TylerJankoski.com</a><br>
<b>Twitter:</b> @TylerJankoski</font> </div>
<br>
</div>
</div>
</div>
</div></div></div>

_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br></div><div class="im"><br><br><div>
<b><font color="#941100">Tyler Jankoski<br></font></b><font color="#005493">Meteorology Major | The Pennsylvania State University<br>Vice President | Campus Weather Service<br><br><b>Web:</b> <a href="http://www.TylerJankoski.com" target="_blank">www.TylerJankoski.com</a><br>
<b>Twitter:</b> @TylerJankoski</font>

</div>
<br></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><br><a href="http://www.instantweathermaps.com" target="_blank">http://www.instantweathermaps.com</a><br>
</div>