<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>The easiest way is to install grib_to_netcdf form ECMWF</p>
<p><a title="Ctrl&#43;Cliquer ou appuyer pour suivre le lien" id="LPlnk784641" href="https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf">https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf</a></p>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14567404622810.36351902117146184">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14567404622650.17796703688980153" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" id="ImageCell_14567404622690.3086282605528843">
<div style="background-color: rgb(255, 255, 255); height: 24px; position: relative; margin: auto; display: table; width: 120px;" id="LPImageContainer_14567404622690.674274115139367">
<a target="_blank" href="https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf" style="display: table-cell; text-align: center;" id="LPImageAnchor_14567404622710.159985556313331"><img aria-label="Option d&#8217;image d&#8217;aperçu avec lien sélectionnée. Appuyez deux fois pour ouvrir le lien." style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 250px; max-height: 250px; height: 24px; width: 120px; border-width: 0px; vertical-align: bottom;" height="24" width="120" src="https://software.ecmwf.int/wiki/s/en_GB/5997/6f42626d00e36f53fe51440403446ca61552e2a2.108/_/images/logo/confluence-logo.png"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14567404622730.1507724768903279">
<div id="LPRemovePreviewContainer_14567404622730.7308752358609624"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: &quot;wf_segoe-ui_light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe WP Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14567404622730.7357566314470733">
<a target="_blank" href="https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf" style="text-decoration: none;" id="LPUrlAnchor_14567404622760.4743056690932801">grib_to_netcdf - GRIB-API - ECMWF Confluence Wiki</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14567404622770.5137984942156713">
software.ecmwf.int</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14567404622780.07936455229851791">
Produce NetCDF with data type of FLOAT (32bit floating point, for higher precision). Note these types were chosen to provide a reasonably wide range of trade-offs ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Best Regards,</p>
<p>Mamadou<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> ncl-talk-bounces@ucar.edu &lt;ncl-talk-bounces@ucar.edu&gt; de la part de Dave Allured - NOAA Affiliate &lt;dave.allured@noaa.gov&gt;<br>
<b>Envoyé :</b> dimanche 28 février 2016 15:14<br>
<b>À :</b> Jaromir Jakacki<br>
<b>Cc&nbsp;:</b> ncl-talk@ucar.edu<br>
<b>Objet :</b> Re: [ncl-talk] reading ECMWF grib2 files</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Jaromir,
<div><br>
</div>
<div>No, NCL does not write grib2 format, it only reads it.&nbsp; This is in the documentation for supported file formats.</div>
<div><br>
</div>
<div><a id="LPlnk144843" 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>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14567402991330.6065301021329419">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14567402991210.3592403415796217" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" id="ImageCell_14567402991240.7162185053679626">
<div style="background-color: rgb(255, 255, 255); height: 19px; position: relative; margin: auto; display: table; width: 250px;" id="LPImageContainer_14567402991240.37437286181033913">
<a target="_blank" href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB" style="display: table-cell; text-align: center;" id="LPImageAnchor_14567402991260.16149201439406946"><img aria-label="Option d&#8217;image d&#8217;aperçu avec lien sélectionnée. Appuyez deux fois pour ouvrir le lien." style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 250px; max-height: 250px; height: 10px; width: 250px; border-width: 0px; vertical-align: bottom;" height="10" width="250" src="http://www.ncl.ucar.edu/Images/ncl-b4.jpg"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14567402991280.5011540421793675">
<div id="LPRemovePreviewContainer_14567402991280.05923691178433288"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: &quot;wf_segoe-ui_light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe WP Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14567402991280.2779703937443718">
<a target="_blank" href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB" style="text-decoration: none;" id="LPUrlAnchor_14567402991310.12941314471849807">NCL Language Reference Guide: FormatSupport</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14567402991310.13231778125259108">
www.ncl.ucar.edu</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14567402991320.0869120553687015">
NCL Home &gt; Documentation &gt; Manuals &gt; Reference Information on supported data formats. This page provides more detailed information about each of the supported data ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<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'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;&nbsp; &nbsp;Copyright (C) 1995-2013 - All Rights Reserved<br>
&gt;&nbsp; &nbsp;University Corporation for Atmospheric Research<br>
&gt;&nbsp; &nbsp;NCAR Command Language Version 6.1.2<br>
&gt;&nbsp; &nbsp;The use of this software is governed by a License Agreement.<br>
&gt;&nbsp; &nbsp;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;&nbsp; &nbsp;Copyright (C) 1995-2015 - All Rights Reserved<br>
&gt;&nbsp; &nbsp;University Corporation for Atmospheric Research<br>
&gt;&nbsp; &nbsp;NCAR Command Language Version 6.3.0<br>
&gt;&nbsp; &nbsp;The use of this software is governed by a License Agreement.<br>
&gt;&nbsp; &nbsp;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;&nbsp; &nbsp;Copyright (C) 1995-2014 - All Rights Reserved<br>
&gt;&nbsp; &nbsp;University Corporation for Atmospheric Research<br>
&gt;&nbsp; &nbsp;NCAR Command Language Version 6.2.0<br>
&gt;&nbsp; &nbsp;The use of this software is governed by a License Agreement.<br>
&gt;&nbsp; &nbsp;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>
</div>
</div>
</div>
</body>
</html>