<div dir="ltr">I'll do my best to answer, Dennis, Alan, and Rick helped me through a similar question several months back when I was first learning.<div><br><div><br></div><div>First, I get an error when trying to read your file, maybe it got corrupted when I downloaded? Try the following and see if you get the error. <br><br>ncl 0> grib_in=addfile("aod.<a href="tel:2014100400" value="+12014100400" target="_blank">2014100400</a>.grb","r") <br><br>getpdstemplate: PDS Template 4.48 not defined.<br><br>warning:Error unpacking GRIB record section 4.<br><br>fatal:Could not open (aod.<a href="tel:2014100400" value="+12014100400" target="_blank">2014100400</a>.grb)<br><br>ncl 1> <br><br><br><br>Secondly,<br>reading a grib and writing to netcdf can be as simple as:<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br>grib_in=addfile("myFile.grb","r")<br>var=grib_in->VARIABLE<br>ncdfOut=addfile("<a href="http://out.nc" target="_blank">out.nc</a>","c")<br>ncdfOut->VARIABLE_OUT=var<div><br></div><div>Where:</div><div> myfile.grb is your grib file</div><div> VARIABLE is the variable in the file you wish to output</div><div> <a href="http://out.nc" target="_blank">out.nc</a> is the name of the netcdf file you desire</div><div> VARIABLE_OUT is the name that you want to show up as the variable in the netcdf file you're outputting.</div><div><br></div><div><br></div><div><br></div><div>john</div><div><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 10:41 AM, Partha Bhattacharjee <span dir="ltr"><<a href="mailto:pbhatta2@jhu.edu" target="_blank">pbhatta2@jhu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Forgot to add information about my earlier question. I am using NCL 6.2.1. <br>
</p>
<p><br>
</p>
<p>Partha<br>
</p>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> <<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of Partha Bhattacharjee <<a href="mailto:pbhatta2@jhu.edu" target="_blank">pbhatta2@jhu.edu</a>><br>
<b>Sent:</b> Wednesday, October 8, 2014 11:39 AM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] Write grib2 to netcdf</font>
<div> </div>
</div><span class="">
<div>
<p>I was using slightly modified form of an example in NCL page <a href="https://www.ncl.ucar.edu/Applications/gribeff.shtml" title="https://www.ncl.ucar.edu/Applications/gribeff.shtml
Ctrl+click or tap to follow link" target="_blank">https://www.ncl.ucar.edu/Applications/gribeff.shtml</a>
to convert grib2 file to netcdf. However, ncl cannot read the time information from input grib2 file and stops where "initial_time" is mentioned. Grib2 file and ncl code are attached. Any help is appreciated. <br>
</p>
<p><br>
</p>
<p> Thanks.<br>
</p>
<p> Partha<br>
</p>
</div>
</span></div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>