Re: Mixed Grib1/Grib2

From: Carl Schreck <Carl.Schreck_at_nyahnyahspammersnyahnyah>
Date: Thu Sep 08 2011 - 14:26:38 MDT

It turns out splitting the files is pretty easy using grib_copy:

http://www.ecmwf.int/publications/manuals/grib_api/grib_copy.html

Thanks for your help anyway!

   Carl

On Wed, Sep 7, 2011 at 12:55 PM, David Brown <dbrown@ucar.edu> wrote:

> I have to say that mixing GRIB versions in one file sounds totally
> perverse. I think the only way that NCL could currently handle it would be
> to find some tool (wgrib2 or wgrib perhaps) that could separate the records
> according to their respective versions. However, I would be interested in
> looking at such a file to see if there might be some way to get NCL to make
> sense of it. Can you upload an example file using the instructions at
> http://www.ncl.ucar.edu/report_bug.shtml? Thanks! Sorry we cannot be of
> more immediate assistance.
> -dave
>
> On Sep 7, 2011, at 10:18 AM, Carl Schreck wrote:
>
> I am trying to read some ECMWF operational analysis and forecast data.
> Apparently these files contain both grib1 and grib2 data within the same
> file. Is there an option that allows NCL to read these types of files?
> Currently, ncl_filedump gives me this error:
>
> $ ncl_filedump D1D08250600082506001.grib
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> g2_info: can only decode GRIB edition 2.fatal:Could not extend memory for
> GRIB v2 data.
> fatal:Could not open (D1D08250600082506001)
>
> Variable: f
> Type: file
> (0) File Missing Value : -1
>
> Thanks!
> Carl
>
> --
> Carl J. Schreck III, PhD
> Postdoctoral Research Associate
> Cooperative Institute for Climate and Satellites (CICS-NC)
> NOAA's National Climatic Data Center and North Carolina State University
> 151 Patton Avenue
> Asheville, NC 28801
> Tel: 828-257-3140
> carl.schreck@noaa.gov
> http://monitor.cicsnc.org/mjo/
> http://www.atmos.albany.edu/student/carl/
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>

-- 
Carl J. Schreck III, PhD
Postdoctoral Research Associate
Cooperative Institute for Climate and Satellites (CICS-NC)
NOAA's National Climatic Data Center and North Carolina State University
151 Patton Avenue
Asheville, NC 28801
Tel: 828-257-3140
carl.schreck@noaa.gov
http://monitor.cicsnc.org/mjo/
http://www.atmos.albany.edu/student/carl/

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Sep 8 14:27:26 2011

This archive was generated by hypermail 2.1.8 : Mon Sep 12 2011 - 13:37:01 MDT