Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECC-1846: GRIB2: Add optional modelName and modelVersion in section 4 #221

Merged
merged 12 commits into from
Jun 21, 2024
Next Next commit
working on model name and version mapping
  • Loading branch information
sebvi authored and shahramn committed Jun 21, 2024
commit 039962a9b3124aba314f01aeae88c7072a663af3
8 changes: 8 additions & 0 deletions definitions/grib2/local/ecmf/parameters_extras.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# (C) Copyright 2005- ECMWF.

#concept modelName ("unknown", "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump;

#if (!(modelName is "unknown")) {
# concept modelVersion ("unknown", "modelVersionConcept.[modelName].def",conceptsDir2,conceptsDir1): no_copy, dump;
# alias mars.model = modelName;
#}
8 changes: 8 additions & 0 deletions definitions/grib2/local/ecmf/section4_extras.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# (C) Copyright 2005- ECMWF.

#concept modelName ("unknown", "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump;

#if (!(modelName is "unknown")) {
# concept modelVersion ("unknown", "modelVersionConcept.[modelName].def",conceptsDir2,conceptsDir1): no_copy, dump;
# alias mars.model = modelName;
#}
8 changes: 8 additions & 0 deletions definitions/grib2/localConcepts/ecmf/modelNameConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'IFS' = {
backgroundProcess = 255;
}
'IFS' = {
backgroundProcess = 255;
}
'AIFS' = {
backgroundProcess = 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'v1' = { generatingProcessIdentifier = 1; }
'v2' = { generatingProcessIdentifier = 2; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'cy48r1' = { generatingProcessIdentifier = 154; }
'cy47r3' = { generatingProcessIdentifier = 153; }
4 changes: 4 additions & 0 deletions definitions/grib2/section.4.def
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ if (defined(marsStream) && defined(marsType)) {

template parameters "grib2/parameters.def";


#adding hook for local extras
template_nofail section4_extras "grib2/local/[centreForLocal]/section4_extras.def";

# Detect if this is for Generalized vertical height coordinates
if (defined(typeOfFirstFixedSurface)) {
if (typeOfFirstFixedSurface == 150) {
Expand Down