ECC-1954: GRIB1 to GRIB2 conversion does not preserve ensemble product template

This commit is contained in:
shahramn 2024-10-29 13:38:31 +00:00
parent 29f8220b77
commit df2b452ff1
1 changed files with 7 additions and 0 deletions

View File

@ -334,3 +334,10 @@ meta md5Product md5(offsetSection1,section1Length,gridDefinition,section1Flags,d
# ECC-1806
concept_nofail paramIdForConversion(zero, "paramIdForConversion.def", conceptsDir2, conceptsDir1) : long_type,read_only;
if (productDefinitionTemplateNumber == 0 && defined(perturbationNumber) && numberOfForecastsInEnsemble > 0) {
alias productDefinitionTemplateNumber = one; # ensemble instant
}
if (productDefinitionTemplateNumber == 8 && defined(perturbationNumber) && numberOfForecastsInEnsemble > 0) {
alias productDefinitionTemplateNumber = eleven; # ensemble interval
}