ECCC-MSC / libecbufr

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

data and descriptor mismatch while encoding BUFR from text data #44

Open vsouvan opened 4 years ago

vsouvan commented 4 years ago

When a BUFR template contains a delayed replication of a descriptors sequence, and the same descriptor leading that sequence immediately follow. And If there is zero replication, the encoder's text datafile parser will skip the line of data for this descriptor causing a alignment error between datafile and descriptors sequence.


Imported from Launchpad using lp2gh.

vsouvan commented 4 years ago

(by vanh-souvanlasy) Parser just need to check that the first descriptor in sequence of replication flagged as skipped because zero replication is not present as the first valid descriptor right after the sequence.