From d284535229d419d09a9bba0bbfdc53f00e0b0784 Mon Sep 17 00:00:00 2001 From: shahramn Date: Fri, 21 Jun 2024 11:21:49 +0100 Subject: [PATCH] ECC-1846: Make loading modelNameConcept.def optional --- definitions/grib2/local/ecmf/section4_extras.def | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/definitions/grib2/local/ecmf/section4_extras.def b/definitions/grib2/local/ecmf/section4_extras.def index 05934e068..4639e1fa8 100644 --- a/definitions/grib2/local/ecmf/section4_extras.def +++ b/definitions/grib2/local/ecmf/section4_extras.def @@ -3,10 +3,12 @@ constant modelNameDefault = "unknown"; constant modelVersionDefault = "unknown"; -concept_nofail modelName (modelNameDefault, "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump; +if (centre is "ecmf" or datasetForLocal is "era6") { + concept_nofail modelName (modelNameDefault, "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump; -if (!(modelName is "unknown")) { + if (!(modelName is "unknown")) { concept_nofail modelVersion (modelVersionDefault, "modelVersionConcept_[modelName].def",conceptsDir2,conceptsDir1): no_copy, dump; alias ls.model = modelName; alias mars.model = modelName; + } }