[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grib to netcdf



after talking to a co-worker, he suggested that Grads might be able to
read your grib file. http://grads.iges.org/grads/grads.html

Robb...




On Wed, 19 May 2004, Thomas Reichler wrote:

> Hi Robb,
>
> Thanks for your reply. I think many people must have run into this
> problem, since the era-40 data I am talking about are widely used, and
> they are distributed by DSS from NCAR. So, there might be a chance that
> somebody else found already a solution...
>
> Thomas
>
> Robb Kambic wrote:
> > On Tue, 18 May 2004, Thomas Reichler wrote:
> >
> >
> >>Hi Robb,
> >>
> >>I asked Lori Thompson from here at GFDL the question below, and she
> >>thought you might be able to help me with this.
> >>
> >>The problem is that I have ECMWF data (era-40) which is want to
> >>transform to nc-data. Is there any quick fix for this problem, or is it
> >>possible to simply rename the variable names in the grib file?
> >>
> >>Thanks
> >>Thomas
> >>
> >>
> >>-------- Original Message --------
> >>Subject: grib to netcdf
> >>Date: Sun, 16 May 2004 16:51:54 -0400
> >>From: Thomas Reichler <address@hidden>
> >>To: Lori Thompson <address@hidden>
> >>CC: Thomas Reichler <address@hidden>
> >>References: <Pine.LNX.4.44.0402171358240.15096-100000@lat>
> >>
> >>Lori,
> >>
> >>I am having problems to convert grib to netcdf using the usual
> >>gribtocdl/gribtonc technique. The reason is that my grib file contains
> >>variable names which begin with a number (eg. 10U), which is being
> >
> >
> > Thomas,
> >
> > That's a tough one. The specification of netCDF says variable names cannot
> > start with a digit but it can have [a-zA-Z0-9_] characters. The best
> > answer would be to go to the data source and ask if they have decoder to
> > ascii format, etc.  Then the variable names would have to be changed.
> > In the Unidata decoders package there's a program
> > ascii2nc that probably could be configured to produce a netcdf file. But,
> > it's going to be a lot of work. Maybe the data provide could change the
> > names also, it's almost standard that variable names don't start with a
> > digit. I'll ask around at work if anyone has an idea.
> >
> > Robb...
> >
> >
> >>rejected by ncgen as an error. Do you have any idea how I could change
> >>variable names in a grib file, or is there any other method for the
> >>conversion?
> >>
> >>Thomas
> >>
> >
> >
> > ===============================================================================
> > Robb Kambic                            Unidata Program Center
> > Software Engineer III                          Univ. Corp for Atmospheric 
> > Research
> > address@hidden                 WWW: http://www.unidata.ucar.edu/
> > ===============================================================================
>
>
> --
> Dr. Thomas Reichler, NOAA-GFDL / Princeton University
> Forrestal Campus, US Route 1, P.O. Box 308, Princeton, NJ 08542
> Tel: (609) 452-6643, Fax: (609) 987-5063
> Email: address@hidden  Web: www.gfdl.noaa.gov/~tjr
>

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================