<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"><<a href="mailto:jjakacki@iopan.gda.pl" target="_blank">jjakacki@iopan.gda.pl</a>></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>
> The file prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb has been placed on the ucar ftp server.<br>
><br>
> ncl_convert2nc also doesn't work with this file.<br>
><br>
> ------------<br>
> $ ncl_convert2nc prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb<br>
> Processing file: prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb...<br>
> Copyright (C) 1995-2013 - All Rights Reserved<br>
> University Corporation for Atmospheric Research<br>
> NCAR Command Language Version 6.1.2<br>
> The use of this software is governed by a License Agreement.<br>
> See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> getpdstemplate: PDS Template 4.61 not defined.<br>
> warning:Error unpacking GRIB record section 4.<br>
> fatal:Could not open (prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)<br>
> Segmentation fault (core dumped)<br>
> -------------<br>
><br>
> Why ncl_convert2nc fails for ECMWF grb2 files?<br>
><br>
> Phani.<br>
><br>
> ----- Original Message -----<br>
> From: "R Phani" <<a href="mailto:rphani@tropmet.res.in">rphani@tropmet.res.in</a>><br>
> To: "NCL" <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br>
> Sent: Saturday, February 27, 2016 11:06:57 AM<br>
> Subject: reading ECMWF grib2 files<br>
><br>
> Hi,<br>
><br>
> I am having problems in opening the S2S ECMWF files with NCL.<br>
><br>
> $ module load GNU-ncl/6.3.0<br>
> $ ncl<br>
> Copyright (C) 1995-2015 - All Rights Reserved<br>
> University Corporation for Atmospheric Research<br>
> NCAR Command Language Version 6.3.0<br>
> The use of this software is governed by a License Agreement.<br>
> See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> ncl 0> f=addfile("S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb","r")<br>
> getpdstemplate: PDS Template 4.61 not defined.<br>
> warning:Error unpacking GRIB record section 4.<br>
> ncl 1> quit<br>
> $ module load GNU-ncl/6.2.0<br>
> $ ncl<br>
> Copyright (C) 1995-2014 - All Rights Reserved<br>
> University Corporation for Atmospheric Research<br>
> NCAR Command Language Version 6.2.0<br>
> The use of this software is governed by a License Agreement.<br>
> See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> ncl 0> f=addfile("S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb","r")<br>
> getpdstemplate: PDS Template 4.61 not defined.<br>
> warning:Error unpacking GRIB record section 4.<br>
> fatal:Could not open (S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)<br>
><br>
><br>
> How to get/install PDS Template 4.61?<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>
<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>