Skip to content

Commit

Permalink
Add missing to Encoding of Levtype iceLayerOnWater
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaniereuter committed Dec 13, 2024
1 parent 23ddfc3 commit 68596bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/multio/action/encode/GribEncoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,12 @@ void GribEncoder::setOceanMetadata(message::Metadata& md) {
setValue("scaledValueOfFirstFixedSurface", level);
setValue("scaleFactorOfFirstFixedSurface", 0l);
}
if (typeOfLevel == "iceLayerOnWater") {
setMissing(glossary().scaleFactorOfFirstFixedSurface);
setMissing(glossary().scaledValueOfFirstFixedSurface);
setMissing(glossary().scaleFactorOfSecondFixedSurface);
setMissing(glossary().scaledValueOfSecondFixedSurface);
}

std::string gridType;
const auto searchGridType = md.find(glossary().gridType);
Expand Down

0 comments on commit 68596bb

Please sign in to comment.