Re: [bufrtables] Max bit error in reading bufr files (bufrscan grads utility)

  • To: Malcolm Mistry <malcolm.mistry@xxxxxx>
  • Subject: Re: [bufrtables] Max bit error in reading bufr files (bufrscan grads utility)
  • From: Steve Sullivan <steves@xxxxxxxx>
  • Date: Tue, 18 Nov 2008 09:12:21 -0700
Malcolm,

Thank you for the unusual sample data file!
I've converted part of the BUFR file you sent me to XML,
using sourceforge.net/projects/wmobufr.

Each BUFR subset becomes one XML file.  So far I've decoded
the first 156818 subsets, taking up over 6 GB (that's
gigabytes!) of disk space.  What on earth is in that file?
I'm guessing it's a compendium.  It might be easier to deal
with as separate BUFR files.

Anyway, there doesn't seem to be anything wrong with your
file (at least for the first 156818 subsets), aside from
the unwieldy size.  I didn't see any problems with long
bit values.

Steve


On Tue, Nov 18, 2008 at 01:47:25PM +0100, Malcolm Mistry wrote:
Hello!
I am trying to plot a bufr file in Grads and for this I require to use
Grad's 'bufrscan' utility to create a .ctl file (for Grads).

(bufrscan basically gives the header & body information of bufr file to
create a descriptor file for plotting in Grads)

When I run the bufrscan utility, initially I got errors (such as "unable
to find B3M-000-012-B table"). I have corrected this by downloading the
latest tables. So now bufrscan runs correctly and checks the bufr file.

However, it gives me a segmentation fault (below is a part of the output).
----------------------------------------------------------------------
warning: can't read 80-bit data value; max is 32
warning: can't read 256-bit data value; max is 32
warning: can't read 256-bit data value; max is 32
warning: can't read 192-bit data value; max is 32
warning: can't read 80-bit data value; max is 32
warning: can't read 256-bit data value; max is 32
warning: can't read 256-bit data value; max is 32
warning: can't read 192-bit data value; max is 32
warning: can't read 80-bit data value; max is 32
Segmentation fault
----------------------------------------------------------------------
I suppose the problem is the machines where i try to read this bufr file
is not able to handle the max bit size (of the data) in the bufr file.

I have tried to figure out where the max bit size is defined in the
tables (B, D etc)...but am unable to solve this. I have tried running
this on both 32 & 64 bit machines but get the same error (i suppose
thats because it needs 256 bits).

I was wondering if there is anyways to solve this problem (may be
increase the max bit in the tables)

Hoping someone can help me out.

Best regards
Malcolm
(Barcelona Supercomputing Center)

_______________________________________________
bufrtables mailing list
bufrtables@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/

--
Steve Sullivan   steves@xxxxxxxx     303-497-2823

FL/2, Research Applications Laboratory
National Center for Atmospheric Research
PO Box 3000
Boulder CO  80307
USA