<div dir="ltr">If you use ncl_filedump on your GRIB2 file you will see that it has no time dimension. There is only a lat and a lon dimension. The script you are using is trying to read a time dimension that does not exist -- therefore the error. The simplest and most general way to convert any GRIB file to NetCDF is to use the script ncl_convert2nc, which is supplied with every NCL installation. If the 'ncl' binary is in your PATH then ncl_convert2nc will be as well, assuming you have a standard installation.<div> -dave<br><div><div>
<p class=""><br></p></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>