ECCC-MSC / libecbufr

libecbufr is a general purpose, template-oriented BUFR encoding/decoding library
Other
10 stars 7 forks source link

question about bufr decoding tables #76

Closed tomkralidis closed 4 years ago

tomkralidis commented 4 years ago

Moved from https://answers.launchpad.net/libecbufr/+question/240912

question about bufr decoding tables

Asked by laita.kenders on 2013-12-17

HI, I write you because I have a question about bufr decoding tables used by your library libECBUFR. For some bufr data I have these error messages: 1- "Can't decode messages" 2- "Table D Code unknown: 361118 Error: template contains errors"

I suppose they are due to bufr decoding tables. I contacted my data provider and it suggested me to contact you to ask how to add the latest tables. Thank you for the help.

Regards Question information

Language: English Edit question

Status: Answered

For: libECBUFR Edit question

Assignee: No assignee Edit question

Last query: 2013-12-17

Last reply: 2013-12-30

Related bugs

Link existing bug 

Related FAQ:

How do I get the BUFR decoding/encoding utilities to work? Link to a FAQ

Yves Pelletier (yves-pelletier) said on 2013-12-17: #1

Hello Laita, this error message can be misleading. Please make sure that the environment variable BUFR_TABLES is set to the directory that contains the tables, as per the following FAQ: FAQ #525: “How do I get the BUFR decoding/encoding utilities to work?”.

laita.kenders (laita-kenders) said on 2013-12-18: #2

Hi, the library works fine, but I have these error messages with only some data bufr.

Yves Pelletier (yves-pelletier) said on 2013-12-18: #3

Ok, thanks for confirming. I know we're overdue for an update of the tables in the software. I'll set this in motion, but in the meantime you have two options: you could add the missing descriptors to Tables B and D in /usr/share/libecbufr. Or you could create local files each containing the missing descriptors from Table D and Table B and have the decoder read them with the switches -ltableb and -ltabled. Just make sure you use the same line format as in the Tables oprovided with the software.

When I have a minute I will write a FAQ that explains this in more detail.

----- Message d'origine ----- De : laita.kenders [mailto:

Question #240912 on libECBUFR changed: https://answers.launchpad.net/libecbufr/+question/240912

laita.kenders posted a new comment: Hi, the library works fine, but I have these error messages with only some data bufr.

[...]

Yves Pelletier (yves-pelletier) said on 2013-12-20: #4

Version 21 of tables B and D is available for download at the link below. You just have to replace the corresponding files in /usr/share/libecbufr

http://collaboration.cmc.ec.gc.ca/cmc/CMOI/BUFR_TABLES/

laita.kenders (laita-kenders) said on 2013-12-27: #5

Hi, thank you but I found only version 14 in french language at your link

Yves Pelletier (yves-pelletier) said on 2013-12-27: #6

I uploaded from the wrong directory. Version 21 coming right up.

Yves

-----Message d'origine----- De :

Question #240912 on libECBUFR changed: https://answers.launchpad.net/libecbufr/+question/240912

laita.kenders posted a new comment: Hi, thank you but I found only version 14 in french language at your link

[...]

Yves Pelletier (yves-pelletier) said on 2013-12-27: #7

Fixed now.

Yves

-----Message d'origine----- De :

Question #240912 on libECBUFR changed: https://answers.launchpad.net/libecbufr/+question/240912

laita.kenders posted a new comment: Hi, thank you but I found only version 14 in french language at your link

[...]

laita.kenders (laita-kenders) said on 2013-12-30: #8

Hi, thank you for the link. I have another question about a particular bufr. I found that this bufr has these descriptors :

022191 NUMBER OF VALID POINTS FOR SPECIFIC BAND 025167 SPECIFIC BAND NET INSTRUMENTAL CORRECTION 025166 SEA STATE BIAS CORRECTION ON SPECIFIC BAND 022189 SPECIFIC BAND SIGNIFICANT WAVE HEIGHT 025165 IONOSPHERIC CORRECTION FROM MODEL ON SPECIFIC BAND 013160 RADIOMETER LIQUID CONTENT FOR SARAL 013161 RADIOMETER LIQUID CONTENT 025112 BAND SPECIFIC ALTIMETER DATA QUALITY FLAG 025113 BAND SPECIFIC ALTIMETER CORRECTION QUALITY FLAG 021148 TRAILING EDGE VARIATION FLAG 022188 SPECIFIC BAND OCEAN RANGE 022190 RMS OF SPECIFIC BAND OCEAN RANGE 022192 RMS SPECIFIC BAND SIGNIFICANT WAVE HEIGHT 022193 NUMBER OF VALID POINTS FOR SPECIFIC BAND SIGN. WAVE HEIGHT 022194 SPECIFIC BAND NET INSTR. CORRECTION FOR SIGNIFICANT WAVE HEIGHT 021176 SPECIFIC BAND CORRECTED OCEAN BACKSCATTER COEFFICIENT 021177 STD SPECIFIC BAND CORRECTED OCEAN BACKSCATTER COEFFICIENT 022195 NUMBER OF VALID POINTS FOR SPECIFIC BAND BACKSCATTER 021178 SPECIFIC BAND NET INSTRUMENTAL CORRECTION FOR AGC 021179 SPECIFIC BAND AUTOMATIC GAIN CONTROL 021180 RMS SPECIFIC BAND AUTOMATIC GAIN CONTROL 021181 NUMBER OF VALID POINTS FOR SPECIFIC BAND AUTOMATIC GAIN CONTROL

with Descriptor Sequence 340011

They aren't included in Table B and the sequence isn't included in Table D. I didn't find anything about them ! Do you know where I can find descriptors which aren't included in Tables B and D ?

Thank you for the help

Yves Pelletier (yves-pelletier) said on 2013-12-30: #9

From what I could see on the internet it appears to be a Eumetsat product. Sometimes, for reasons of operational expediency, data producers get a little bit ahead of the WMO publishing schedule for Tables B and D. I'll venture this is one of these cases. For the time being, the only way forward is to ask Eumetsat themselves for the missing definitions of the descriptors.

Yves -----Message d'origine----- De :

Question #240912 on libECBUFR changed: https://answers.launchpad.net/libecbufr/+question/240912

laita.kenders posted a new comment: Hi, thank you for the link. I have another question about a particular bufr. I found that this bufr has these descriptors :

022191 NUMBER OF VALID POINTS FOR SPECIFIC BAND 025167 SPECIFIC BAND NET INSTRUMENTAL CORRECTION 025166 SEA STATE BIAS CORRECTION ON SPECIFIC BAND 022189 SPECIFIC BAND SIGNIFICANT WAVE HEIGHT 025165 IONOSPHERIC CORRECTION FROM MODEL ON SPECIFIC BAND 013160 RADIOMETER LIQUID CONTENT FOR SARAL 013161 RADIOMETER LIQUID CONTENT 025112 BAND SPECIFIC ALTIMETER DATA QUALITY FLAG 025113 BAND SPECIFIC ALTIMETER CORRECTION QUALITY FLAG 021148 TRAILING EDGE VARIATION FLAG 022188 SPECIFIC BAND OCEAN RANGE 022190 RMS OF SPECIFIC BAND OCEAN RANGE 022192 RMS SPECIFIC BAND SIGNIFICANT WAVE HEIGHT 022193 NUMBER OF VALID POINTS FOR SPECIFIC BAND SIGN. WAVE HEIGHT 022194 SPECIFIC BAND NET INSTR. CORRECTION FOR SIGNIFICANT WAVE HEIGHT 021176 SPECIFIC BAND CORRECTED OCEAN BACKSCATTER COEFFICIENT 021177 STD SPECIFIC BAND CORRECTED OCEAN BACKSCATTER COEFFICIENT 022195 NUMBER OF VALID POINTS FOR SPECIFIC BAND BACKSCATTER 021178 SPECIFIC BAND NET INSTRUMENTAL CORRECTION FOR AGC 021179 SPECIFIC BAND AUTOMATIC GAIN CONTROL 021180 RMS SPECIFIC BAND AUTOMATIC GAIN CONTROL 021181 NUMBER OF VALID POINTS FOR SPECIFIC BAND AUTOMATIC GAIN CONTROL

with Descriptor Sequence 340011

They aren't included in Table B and the sequence isn't included in Table D. I didn't find anything about them ! Do you know where I can find descriptors which aren't included in Tables B and D ?

Thank you for the help

[...]