ECC-1085: grib_dump: should not fail if a local definition file does not exist

This commit is contained in:
Shahram Najm 2020-02-28 17:52:42 +00:00
parent 95664555be
commit 95afbdc35c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;