Skip to content

Commit

Permalink
restored 2.2.3 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
chhaine authored and dsarmany committed Jan 8, 2025
1 parent a3a6e75 commit 68d90cc
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/multio/maestro/MaestroSink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,13 @@ static void setInt64Value(multio::MaestroCdo& cdo, const std::string& key, const
using MaestroKeySetter = std::add_pointer<void(multio::MaestroCdo&, const std::string&, const std::string&)>::type;

static const std::map<std::string, MaestroKeySetter> cdoValueSetters{
{"class", &setStringValue}, {"expver", &setStringValue}, {"stream", &setStringValue},
{"date", &setStringValue}, {"time", &setStringValue}, {"domain", &setStringValue},
{"type", &setStringValue}, {"levtype", &setStringValue}, {"step", &setInt64Value},
{"anoffset", &setInt64Value}, {"levelist", &setInt64Value}, {"param", &setInt64Value},
// # Additional attributes (D340.2.2.3). These keys will be put back once version 2.2.3 is released.
//{"experiment", &setStringValue},
//{"activity", &setStringValue},
//{"generation", &setInt64Value},
//{"realization", &setInt64Value},
//{"model", &setStringValue},
//{"resolution", &setStringValue},
//{"frequency", &setStringValue},
//{"direction", &setStringValue},
{"class", &setStringValue}, {"expver", &setStringValue}, {"stream", &setStringValue},
{"date", &setStringValue}, {"time", &setStringValue}, {"domain", &setStringValue},
{"type", &setStringValue}, {"levtype", &setStringValue}, {"step", &setInt64Value},
{"anoffset", &setInt64Value}, {"levelist", &setInt64Value}, {"param", &setInt64Value},
{"experiment", &setStringValue}, {"activity", &setStringValue}, {"generation", &setInt64Value},
{"realization", &setInt64Value}, {"model", &setStringValue}, {"resolution", &setStringValue},
{"frequency", &setStringValue}, {"direction", &setStringValue},
};
} // namespace

Expand Down

0 comments on commit 68d90cc

Please sign in to comment.