NOAA / NCEP GRIB2 files: Syntax Error: Invalid Date/Time value. Hour = 24 -- greater than 23

Oliver König oliver at WINDFINDER.COM
Mon Feb 11 23:02:32 EST 2008


Hello Wesley,
do you mean I have to run the configure script for grads2 and then edit the
makefile of grads2? Like this?

 LDFLAGS = -lm

.. and then make && make install and then the bug is gone?

I did that on Dell Poweredge 1950 Debian Linux (stable/etch) Kernel 2.6.18 SMP
x86_64 and I am getting the same error:
Syntax Error:  Invalid Date/Time value.
  Hour = 24 -- greater than 23
Open Error:  Invalid start time in tdef card starting value
  --> The invalid description file record is:
  --> tdef 2 linear 24Z11feb2008 6hr
  The data file was not opened.

Regards,
Oliver

On Monday 11 February 2008 20:56:11 Wesley Ebisuzaki wrote:
> Stefan,
>
> In the makefile, look for the line LDFLAGS=....
> Type moving the '-lm' to the end of the line.
> -lm loads the math libraries and ceil is a math function.
>
>     Wesley
>
> Stefan Gofferje wrote:
> > Wesley Ebisuzaki schrieb:
> >>   Try adding the word, static, to the makefile .. see below.
> >>
> >> wgrib2: $h ${all}
> >>         ${CC} -o wgrib2 -static ${CFLAGS} ${all} ${LDFLAGS}
> >
> > Unfortunately, compiling fails if you just add -static:
> >
> > gcc -o wgrib2 -static -I ../g2clib-1.0.5 -I ../netcdf-3.6.2/libsrc -O2
> > -Wall -funroll-loops -DUSE_REGEX -DUSE_NETCDF -DUSE_TIGGE Alias.o
> > CodeTable.o Code_Values.o Data.o Dump.o Ensemble.o File.o FlagTable.o
> > Flush.o Grads.o Grib.o Help.o Inv.o Latlon.o Level.o Lola.o Macro.o
> > Match.o Misc.o Netcdf.o Range.o Scan.o Sec0.o Sec1.o Sec3.o Sec4.o
> > Sec5.o Sec6.o Sec_len.o Tigge.o Undefine.o VerfTime.o addtime.o cname.o
> > earth.o fatal_error.o flt2ieee.o fnlist.o geo.o gribtab.o ieee2flt.o
> > int8.o intpower.o missing.o rd_grib2_msg.o seekgrib2.o wgrib2.o
> > wrt_grib.o wrtieee.o -L ../g2clib-1.0.5 -lgrib2c -L/usr/lib -lpng -lz
> > -lm -L ../jasper-1.900.1/src/libjasper/.libs -ljasper -L
> > ../netcdf-3.6.2/libsrc/.libs -lnetcdf
> > ../jasper-1.900.1/src/libjasper/.libs/libjasper.a(jas_stream.o): In
> > function `jas_stream_tmpfile':
> > /usr/src/grib2/jasper-1.900.1/src/libjasper/base/jas_stream.c:368:
> > warning: the use of `tmpnam' is dangerous, better use `mkstemp'
> > ../jasper-1.900.1/src/libjasper/.libs/libjasper.a(jas_cm.o): In function
> > `jas_cmshapmatlut_lookup':
> > /usr/src/grib2/jasper-1.900.1/src/libjasper/base/jas_cm.c:926: undefined
> > reference to `ceil'
> > collect2: ld returned 1 exit status
> > make: *** [wgrib2] Error 1
> > root at k-tanco:/usr/src/grib2/wgrib2>
> >
> > --Stefan



More information about the gradsusr mailing list