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

Feature/model keyword #220

Merged
merged 5 commits into from
Jun 21, 2024
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: 12 additions & 0 deletions definitions/grib2/local/ecmf/section4_extras.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# (C) Copyright 2005- ECMWF.

constant modelNameDefault = "unknown";
constant modelVersionDefault = "unknown";

concept_nofail modelName (modelNameDefault, "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump;

if (!(modelName is "unknown")) {
concept_nofail modelVersion (modelVersionDefault, "modelVersionConcept_[modelName].def",conceptsDir2,conceptsDir1): no_copy, dump;
alias ls.model = modelName;
alias mars.model = modelName;
}
5 changes: 5 additions & 0 deletions definitions/grib2/localConcepts/ecmf/modelNameConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'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; }
6 changes: 6 additions & 0 deletions definitions/grib2/localConcepts/era6/modelNameConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'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; }
Empty file.
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
Loading