<div dir="ltr">Jaromir,<div><br></div><div>No, NCL does not write grib2 format, it only reads it.  This is in the documentation for supported file formats.</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB</a><br></div><div><br></div><div>--Dave</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 28, 2016 at 3:27 PM, Jaromir Jakacki <span dir="ltr">&lt;<a href="mailto:jjakacki@iopan.gda.pl" target="_blank">jjakacki@iopan.gda.pl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
I do not have answer for this question - so sorry for that - i do not<br>
any experience with ncl. But i would like to create grib2 file from<br>
netcdf. Is it possible to do it using ncl?<br>
thanks,<br>
Jaromir<br>
<br>
<br>
<br>
<br>
On 28/02/16 11:10, R Phani wrote:<br>
&gt; The file prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb has been placed on the ucar ftp server.<br>
&gt;<br>
&gt; ncl_convert2nc also doesn&#39;t work with this file.<br>
&gt;<br>
&gt; ------------<br>
&gt; $ ncl_convert2nc prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb<br>
&gt; Processing file: prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb...<br>
&gt;   Copyright (C) 1995-2013 - All Rights Reserved<br>
&gt;   University Corporation for Atmospheric Research<br>
&gt;   NCAR Command Language Version 6.1.2<br>
&gt;   The use of this software is governed by a License Agreement.<br>
&gt;   See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
&gt; getpdstemplate: PDS Template 4.61 not defined.<br>
&gt; warning:Error unpacking GRIB record section 4.<br>
&gt; fatal:Could not open (prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)<br>
&gt; Segmentation fault (core dumped)<br>
&gt; -------------<br>
&gt;<br>
&gt; Why ncl_convert2nc fails for ECMWF grb2 files?<br>
&gt;<br>
&gt; Phani.<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; From: &quot;R Phani&quot; &lt;<a href="mailto:rphani@tropmet.res.in">rphani@tropmet.res.in</a>&gt;<br>
&gt; To: &quot;NCL&quot; &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br>
&gt; Sent: Saturday, February 27, 2016 11:06:57 AM<br>
&gt; Subject: reading ECMWF grib2 files<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am having problems in opening the S2S ECMWF files with NCL.<br>
&gt;<br>
&gt; $ module load GNU-ncl/6.3.0<br>
&gt; $ ncl<br>
&gt;   Copyright (C) 1995-2015 - All Rights Reserved<br>
&gt;   University Corporation for Atmospheric Research<br>
&gt;   NCAR Command Language Version 6.3.0<br>
&gt;   The use of this software is governed by a License Agreement.<br>
&gt;   See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
&gt; ncl 0&gt; f=addfile(&quot;S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb&quot;,&quot;r&quot;)<br>
&gt; getpdstemplate: PDS Template 4.61 not defined.<br>
&gt; warning:Error unpacking GRIB record section 4.<br>
&gt; ncl 1&gt; quit<br>
&gt; $ module load GNU-ncl/6.2.0<br>
&gt; $ ncl<br>
&gt;   Copyright (C) 1995-2014 - All Rights Reserved<br>
&gt;   University Corporation for Atmospheric Research<br>
&gt;   NCAR Command Language Version 6.2.0<br>
&gt;   The use of this software is governed by a License Agreement.<br>
&gt;   See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
&gt; ncl 0&gt; f=addfile(&quot;S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb&quot;,&quot;r&quot;)<br>
&gt; getpdstemplate: PDS Template 4.61 not defined.<br>
&gt; warning:Error unpacking GRIB record section 4.<br>
&gt; fatal:Could not open (S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)<br>
&gt;<br>
&gt;<br>
&gt; How to get/install PDS Template 4.61?<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div></div>