Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/multio/datamod/types/LevType.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ std::string DumpType<LevType>::dump(LevType v) {
return "ml";
case LevType::PL:
return "pl";
case LevType::FL:
return "fl";
case LevType::PV:
return "pv";
case LevType::PT:
Expand Down Expand Up @@ -64,6 +66,9 @@ LevType ParseType<LevType>::parse(const std::string& val) {
if (val == "pl") {
return LevType::PL;
}
if (val == "fl") {
return LevType::FL;
}
if (val == "pv") {
return LevType::PV;
}
Expand Down Expand Up @@ -110,9 +115,10 @@ LevType ParseType<LevType>::parse(const std::string& val) {
}

const std::vector<LevType>& allLevTypes() {
static const std::vector<LevType> all{
LevType::ML, LevType::PL, LevType::PV, LevType::PT, LevType::SOL, LevType::SFC, LevType::O2D, LevType::O3D,
LevType::HL, LevType::HHL, LevType::HPL, LevType::AL, LevType::WV, LevType::DP, LevType::CAT, LevType::LAYER};
static const std::vector<LevType> all{LevType::ML, LevType::PL, LevType::FL, LevType::PV, LevType::PT,
LevType::SOL, LevType::SFC, LevType::O2D, LevType::O3D, LevType::HL,
LevType::HHL, LevType::HPL, LevType::AL, LevType::WV, LevType::DP,
LevType::CAT, LevType::LAYER};

return all;
}
Expand Down
2 changes: 1 addition & 1 deletion src/multio/datamod/types/LevType.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum class LevType : std::size_t
{
ML,
PL,
FL,
PV,
PT,
SOL,
Expand Down Expand Up @@ -60,4 +61,3 @@ template <>
struct multio::datamod::ParseType<multio::datamod::LevType> {
static LevType parse(const std::string& s);
};

1 change: 1 addition & 0 deletions src/multio/tools/grib1-to-grib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ void handlePackingType(metkit::codes::CodesHandle& h, const std::string& packing
{"grid_complex", "complex"},
{"spectral_complex", "complex"},
{"grid_ccsds", "ccsds"},
{"grid_ieee", "ccsds"},
};

const auto packingTypeVal = packingMap.find(packingType);
Expand Down
Loading