mirror of https://github.com/ecmwf/eccodes.git
ECC-1085: grib_dump: should not fail if a local definition file does not exist
This commit is contained in:
parent
95664555be
commit
95afbdc35c
|
@ -252,7 +252,7 @@ if(((section1Length > 40) or new() or setLocalDefinition> 0) and deleteLocalDefi
|
||||||
{
|
{
|
||||||
pad reservedNeedNotBePresent(12);
|
pad reservedNeedNotBePresent(12);
|
||||||
codetable[1] localDefinitionNumber 'grib1/localDefinitionNumber.98.table' = 1 : dump;
|
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 (changed(localDefinitionNumber)) {
|
||||||
if(!new() && localDefinitionNumber!=4 ) {
|
if(!new() && localDefinitionNumber!=4 ) {
|
||||||
section_padding localExtensionPadding : read_only;
|
section_padding localExtensionPadding : read_only;
|
||||||
|
|
|
@ -19,7 +19,7 @@ meta eps g2_eps(productDefinitionTemplateNumber,
|
||||||
stepType,
|
stepType,
|
||||||
derivedForecast);
|
derivedForecast);
|
||||||
|
|
||||||
template localSection "grib2/local.98.[grib2LocalSectionNumber:l].def";
|
template_nofail localSection "grib2/local.98.[grib2LocalSectionNumber:l].def";
|
||||||
position offsetAfterLocalSection;
|
position offsetAfterLocalSection;
|
||||||
transient addExtraLocalSection=0;
|
transient addExtraLocalSection=0;
|
||||||
transient deleteExtraLocalSection=0;
|
transient deleteExtraLocalSection=0;
|
||||||
|
|
Loading…
Reference in New Issue