<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+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’image d’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: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",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: "wf_segoe-ui_normal","Segoe UI","Segoe WP",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: "wf_segoe-ui_normal","Segoe UI","Segoe WP",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 <ncl-talk-bounces@ucar.edu> de la part de Dave Allured - NOAA Affiliate <dave.allured@noaa.gov><br>
<b>Envoyé :</b> dimanche 28 février 2016 15:14<br>
<b>À :</b> Jaromir Jakacki<br>
<b>Cc :</b> ncl-talk@ucar.edu<br>
<b>Objet :</b> Re: [ncl-talk] reading ECMWF grib2 files</font>
<div> </div>
</div>
<div>
<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 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’image d’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: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",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: "wf_segoe-ui_normal","Segoe UI","Segoe WP",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: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14567402991320.0869120553687015">
NCL Home > Documentation > Manuals > 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">
<<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>
</div>
</div>
</div>
</body>
</html>