From 95afbdc35cb84aac437abeb3d8f4c0d49efc5d49 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 28 Feb 2020 17:52:42 +0000 Subject: [PATCH] ECC-1085: grib_dump: should not fail if a local definition file does not exist --- definitions/grib1/section.1.def | 2 +- definitions/grib2/local.98.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/grib1/section.1.def b/definitions/grib1/section.1.def index 5e116c985..9b042aae9 100644 --- a/definitions/grib1/section.1.def +++ b/definitions/grib1/section.1.def @@ -252,7 +252,7 @@ if(((section1Length > 40) or new() or setLocalDefinition> 0) and deleteLocalDefi { pad reservedNeedNotBePresent(12); codetable[1] localDefinitionNumber 'grib1/localDefinitionNumber.98.table' = 1 : dump; - template localDefinition "grib1/local.98.[localDefinitionNumber:l].def"; + template_nofail localDefinition "grib1/local.98.[localDefinitionNumber:l].def"; if (changed(localDefinitionNumber)) { if(!new() && localDefinitionNumber!=4 ) { section_padding localExtensionPadding : read_only; diff --git a/definitions/grib2/local.98.def b/definitions/grib2/local.98.def index 1de5ff9b8..2662e3272 100644 --- a/definitions/grib2/local.98.def +++ b/definitions/grib2/local.98.def @@ -19,7 +19,7 @@ meta eps g2_eps(productDefinitionTemplateNumber, stepType, derivedForecast); -template localSection "grib2/local.98.[grib2LocalSectionNumber:l].def"; +template_nofail localSection "grib2/local.98.[grib2LocalSectionNumber:l].def"; position offsetAfterLocalSection; transient addExtraLocalSection=0; transient deleteExtraLocalSection=0;