Skip to content

Commit 21f7728

Browse files
committed
MUL-131: Set additional keys for ensemble ocean output
1 parent 737adfe commit 21f7728

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/multio/action/encode/GribEncoder.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ QueriedMarsKeys setMarsKeys(GribEncoder& g, const eckit::Configuration& md) {
450450
withFirstOf(valueSetter(g, "lengthOf4DvarWindow"), LookUpLong(md, "lengthOf4DvarWindow"),
451451
LookUpLong(md, "anlength"));
452452

453+
// Metadata for ensemble forecast
454+
withFirstOf(valueSetter(g, "oceanAtmosphereCoupling"), LookUpLong(md, "oceanAtmosphereCoupling"));
455+
withFirstOf(valueSetter(g, "legBaseDate"), LookUpLong(md, "legBaseDate"));
456+
withFirstOf(valueSetter(g, "legBaseTime"), LookUpLong(md, "legBaseTime"));
457+
withFirstOf(valueSetter(g, "legNumber"), LookUpLong(md, "legNumber"));
458+
withFirstOf(valueSetter(g, "referenceDate"), LookUpLong(md, "referenceDate"));
459+
withFirstOf(valueSetter(g, "climateDateFrom"), LookUpLong(md, "climateDateFrom"));
460+
withFirstOf(valueSetter(g, "climateDateTo"), LookUpLong(md, "climateDateTo"));
453461

454462
withFirstOf(valueSetter(g, "componentIndex"), LookUpLong(md, "componentIndex"));
455463
withFirstOf(valueSetter(g, "numberOfComponents"), LookUpLong(md, "numberOfComponents"));

0 commit comments

Comments
 (0)