Skip to content

Commit

Permalink
BUFR: fix compressed missing string
Browse files Browse the repository at this point in the history
  • Loading branch information
istvans-mn committed Nov 4, 2024
1 parent d8ff9fd commit 9558f57
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ingest/src/ingest/bufr/NorBufr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,14 @@ uint64_t NorBufr::uncompressDescriptor(std::list<DescriptorId>::iterator &it,
Descriptor &current_desc = desc[s].back();

if (tabB->at(*it).unit().find("CCITTIA5") != std::string::npos) {
std::string bs;
bs = NorBufrIO::getBitStr(sb, NBINC * 8, bits);
std::vector<bool> bl;
if (NBINC) {
std::string bs;
bs = NorBufrIO::getBitStr(sb, NBINC * 8, bits);

std::vector<bool> bl = NorBufrIO::getBitVec(sb, NBINC * 8, bits);
ucbits.insert(ucbits.end(), bl.begin(), bl.end());
bl = NorBufrIO::getBitVec(sb, NBINC * 8, bits);
ucbits.insert(ucbits.end(), bl.begin(), bl.end());
}
int bitdiff = dm.datawidth() - NBINC * 8;
if (bitdiff) {
DescriptorMeta *dmn = new DescriptorMeta;
Expand Down

0 comments on commit 9558f57

Please sign in to comment.