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

RE: Problem finding udunits file



On Wed, 19 Jan 2005, Tomislav Urban wrote:

> Great!  Thanks that worked.
>
> Working with a small grib noted below I was able to get all the way to
> the NetCDF and view it, so that's looking good.  However, when I tried
> to run gribtocdl on the real grib obtained from LDM I received several
> errors along these lines:
>
> [root@granger CRWR]# gribtocdl -v eta218_200501180000.grib >
> eta218_200501180000.cdl
> Jan 19 17:01:02 gribtocdl[24090]: Starting Up
> Jan 19 17:01:02 gribtocdl[24090]: oversize GRIB product 2
> Jan 19 17:01:02 gribtocdl[24090]: GRIB product: YZBA89 KWBE 180000
> Jan 19 17:01:02 gribtocdl[24090]: oversize GRIB product 2
> Jan 19 17:01:02 gribtocdl[24090]: GRIB product: ZZBB89 KWBE 180000
> Jan 19 17:01:03 gribtocdl[24090]: oversize GRIB product 2
> Jan 19 17:01:03 gribtocdl[24090]: GRIB product: YPBA98 KWBE 180000
>
> ...
>
> Jan 19 17:01:28 gribtocdl[24090]: oversize GRIB product 2
> Jan 19 17:01:28 gribtocdl[24090]: GRIB product: ZPBT98 KWBE 180000
> Jan 19 17:01:28 gribtocdl[24090]: EOF on input
> Jan 19 17:01:28 gribtocdl[24090]: Exiting
> Jan 19 17:01:28 gribtocdl[24090]: 319 WMO msgs, 319 GRIBs decoded, 319
> written

appears some of the files are corrupt, probably missing the 7777
terminations or worst a bug.  did a cdl file get created?  if so did
gribtonc run on the data.  we don't save/get the awips data so a sample of
the data would help.

robb...



>
> I have read something in the archives about using dcgrib2, but as an
> alternative to dcgrib rather than as an alternative to gribtocdl.
>
> Thanks so much for your help!
>
> -----Original Message-----
> From: Robb Kambic [mailto:address@hidden]
> Sent: Wednesday, January 19, 2005 10:43 AM
> To: Tomislav Urban
> Cc: decoders
> Subject: Re: Problem finding udunits file
>
>
> On Wed, 19 Jan 2005, Tomislav Urban wrote:
>
> > Hope this is the appropriate forum:
> >
> >
> >
> > I'm trying to run gribtonc to convert the LDM eta grib to NetCDF.  I
> am
> > able to generate the cdl file as follows:
> >
> >
> >
> > [ldm@granger CRWR]$ gribtocdl -v narr.grb > narr.cdl
> >
> > Jan 19 16:09:40 gribtocdl[23916]: Starting Up
> >
> > Jan 19 16:09:40 gribtocdl[23916]: EOF on input
> >
> > Jan 19 16:09:40 gribtocdl[23916]: Exiting
> >
> > Jan 19 16:09:40 gribtocdl[23916]: 9 WMO msgs, 9 GRIBs decoded, 9
> written
> >
> >
> >
> > However, when I try to create the NetCDF it seems to be having trouble
> > finding something in udunits:
> >
> >
> >
> > [ldm@granger CRWR]$ gribtonc -v narr.cdl narr.nc < narr.grb
> >
> > fgets(): Is a directory
> >
> > udunits(3): Error occurred at line 1
> >
> > udunits(3): Couldn't read units-file
> "/usr/local/udunits/udunits-1.11.7"
> >
> >
> >
> > My environment settings are as follows:
> >
> >
> >
> > export CPP_UDUNITS=-I/usr/local/udunits/udunits-1.11.7/include
> >
> > export LD_UDUNITS='-L/usr/local/udunits/udunits-1.11.7/lib -ludunits'
> >
> > export UDUNITS_PATH='/usr/local/udunits/udunits-1.11.7'
> >
> >
> >
> > There is indeed no file in /usr/local/udunits/udunits-1.11.7, rather
> it
> > contains the udunits directories.
> >
> >
> >
> > Any thoughts?
> >
>
>
> Tomislav,
>
> udunits is looking for udunits.dat file.  if you set UDUNITS_PATH to the
> file location it will solve the problem. ie
>
> % setenv UDUNITS_PATH ~ldm/etc/udunits.dat
>
> details in url:
>
> http://my.unidata.ucar.edu/cgi-bin/getfile?file=/content/support/help/Ma
> ilArchives/decoders/msg00228.html&line=60#glimpse
>
> robb...
>
>
>
> >
> >
> > -          Tomislav Urban
> >
> > -          Texas Advanced Computing Center
> >
> >
>
> ========================================================================
> =======
> Robb Kambic                              Unidata Program Center
> Software Engineer III                    Univ. Corp for Atmospheric
> Research
> address@hidden                   WWW:
> http://www.unidata.ucar.edu/
> ========================================================================
> =======
>

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