Re: 20050907: trapped exception in Grib code hides failure

NOTE: The decoders mailing list is no longer active. The list archives are made available for historical reasons.

eric,

the problem was the X2 var in bit unpacking rountine can be a missing
value if all bits are set to 1's.  it's not apparent from the docs about
this case.  so now the ds.mint.bin file can be decoded correctly.  i need
to check the other files.  the ds.sky.bin file with proj 10 needs to have
the proj 10 code implemented. do you know of any java coding of proj 10?
if not, how about c code.  it will probably be awhile before i have the
time to look at proj 10.

robb...



On Tue, 13 Sep 2005, Eric Davies wrote:

> Hi Robb,
>
>     glad to hear you've been able to repeat the problem. Prehaps a bug in
> the decompression.
>
>     One simple fix I would suggest though is not masking the exception.
>     Its one thing if the code chokes and you find out about it, its another
> if it does so and your program is left in the dark about it.
>
> At 11:39 AM 9/13/2005, you wrote:
>
> >hi eric,
> >
> >yes, i got the example files and been working on decoding them. the files
> >use spatial differencing that i haven't coded yet so i in the process of
> >implementing it. there's a small bug in my program that i haven't
> >been able to find.  the ds.mint.bin file decodes correctly up to data
> >point 12896 out of 37,887 and then the values  are distorted. i
> >reviewed the code, compared it to the NCEP grib2 decoder, etc. actually
> >i've spent 3 days on it.  at this point, i have to let it set for a couple
> >days before returning to it.
> >
> >robb...
> >
> >
> >
> >
> >

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



  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the decoders archives: