[ncl-talk] reading ECMWF grib2 files

Dennis Shea shea at ucar.edu
Mon Feb 29 08:03:23 MST 2016


ALso, the CDO (Climate Data Operators) can do this. Not sure what parameter
table they use. Something like:

cdo -f grb copy foo.nc foo.grb

On Mon, Feb 29, 2016 at 3:08 AM, mamadoulamine.mbaye at ucad.edu.sn <
mamadoulamine.mbaye at ucad.edu.sn> wrote:

> The easiest way is to install grib_to_netcdf form ECMWF
>
> https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf
> <https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf>
> grib_to_netcdf - GRIB-API - ECMWF Confluence Wiki
> <https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf>
> software.ecmwf.int
> 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 ...
>
> Best Regards,
>
> Mamadou
>
> ------------------------------
> *De :* ncl-talk-bounces at ucar.edu <ncl-talk-bounces at ucar.edu> de la part
> de Dave Allured - NOAA Affiliate <dave.allured at noaa.gov>
> *Envoyé :* dimanche 28 février 2016 15:14
> *À :* Jaromir Jakacki
> *Cc :* ncl-talk at ucar.edu
> *Objet :* Re: [ncl-talk] reading ECMWF grib2 files
>
> Jaromir,
>
> No, NCL does not write grib2 format, it only reads it.  This is in the
> documentation for supported file formats.
>
>
> http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB
>
> <http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB>
> NCL Language Reference Guide: FormatSupport
> <http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclFormatSupport.shtml#GRIB>
> www.ncl.ucar.edu
> NCL Home > Documentation > Manuals > Reference Information on supported
> data formats. This page provides more detailed information about each of
> the supported data ...
>
>
> --Dave
>
>
> On Sun, Feb 28, 2016 at 3:27 PM, Jaromir Jakacki <jjakacki at iopan.gda.pl>
> wrote:
>
>> Hi,
>> I do not have answer for this question - so sorry for that - i do not
>> any experience with ncl. But i would like to create grib2 file from
>> netcdf. Is it possible to do it using ncl?
>> thanks,
>> Jaromir
>>
>>
>>
>>
>> On 28/02/16 11:10, R Phani wrote:
>> > The file prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb has
>> been placed on the ucar ftp server.
>> >
>> > ncl_convert2nc also doesn't work with this file.
>> >
>> > ------------
>> > $ ncl_convert2nc
>> prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb
>> > Processing file:
>> prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb...
>> >   Copyright (C) 1995-2013 - All Rights Reserved
>> >   University Corporation for Atmospheric Research
>> >   NCAR Command Language Version 6.1.2
>> >   The use of this software is governed by a License Agreement.
>> >   See http://www.ncl.ucar.edu/ for more details.
>> > getpdstemplate: PDS Template 4.61 not defined.
>> > warning:Error unpacking GRIB record section 4.
>> > fatal:Could not open
>> (prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)
>> > Segmentation fault (core dumped)
>> > -------------
>> >
>> > Why ncl_convert2nc fails for ECMWF grb2 files?
>> >
>> > Phani.
>> >
>> > ----- Original Message -----
>> > From: "R Phani" <rphani at tropmet.res.in>
>> > To: "NCL" <ncl-talk at ucar.edu>
>> > Sent: Saturday, February 27, 2016 11:06:57 AM
>> > Subject: reading ECMWF grib2 files
>> >
>> > Hi,
>> >
>> > I am having problems in opening the S2S ECMWF files with NCL.
>> >
>> > $ module load GNU-ncl/6.3.0
>> > $ ncl
>> >   Copyright (C) 1995-2015 - All Rights Reserved
>> >   University Corporation for Atmospheric Research
>> >   NCAR Command Language Version 6.3.0
>> >   The use of this software is governed by a License Agreement.
>> >   See http://www.ncl.ucar.edu/ for more details.
>> > ncl 0>
>> f=addfile("S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb","r")
>> > getpdstemplate: PDS Template 4.61 not defined.
>> > warning:Error unpacking GRIB record section 4.
>> > ncl 1> quit
>> > $ module load GNU-ncl/6.2.0
>> > $ ncl
>> >   Copyright (C) 1995-2014 - All Rights Reserved
>> >   University Corporation for Atmospheric Research
>> >   NCAR Command Language Version 6.2.0
>> >   The use of this software is governed by a License Agreement.
>> >   See http://www.ncl.ucar.edu/ for more details.
>> > ncl 0>
>> f=addfile("S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb","r")
>> > getpdstemplate: PDS Template 4.61 not defined.
>> > warning:Error unpacking GRIB record section 4.
>> > fatal:Could not open
>> (S2S/prate_ecmwrf_2000_2015_reforecast_04-02_720hrs_0.5x0.5.grb)
>> >
>> >
>> > How to get/install PDS Template 4.61?
>> > _______________________________________________
>> > ncl-talk mailing list
>> > ncl-talk at ucar.edu
>> > List instructions, subscriber options, unsubscribe:
>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160229/c04f5401/attachment.html 


More information about the ncl-talk mailing list