From bf6ffb6790b11a2cb88c8bbca06e21d1fc506acc Mon Sep 17 00:00:00 2001 From: Robert Osinski Date: Fri, 8 Mar 2024 10:00:14 +0000 Subject: [PATCH] Add missing entries stepTypeForConversion.def --- .../grib1/localConcepts/ecmf/stepTypeForConversion.def | 4 ++-- definitions/grib1/section.1.def | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/definitions/grib1/localConcepts/ecmf/stepTypeForConversion.def b/definitions/grib1/localConcepts/ecmf/stepTypeForConversion.def index a0f508ebe..07ec7ae41 100644 --- a/definitions/grib1/localConcepts/ecmf/stepTypeForConversion.def +++ b/definitions/grib1/localConcepts/ecmf/stepTypeForConversion.def @@ -155,9 +155,9 @@ # 10fg3 "max"={gribTablesVersionNo=228;indicatorOfParameter=28;centre=98;} # litota1 -""={gribTablesVersionNo=228;indicatorOfParameter=51;centre=98;} +"avg"={gribTablesVersionNo=228;indicatorOfParameter=51;centre=98;} # licga1 -""={gribTablesVersionNo=228;indicatorOfParameter=53;centre=98;} +"avg"={gribTablesVersionNo=228;indicatorOfParameter=53;centre=98;} # ssrdc "accum"={gribTablesVersionNo=228;indicatorOfParameter=129;centre=98;} # strdc diff --git a/definitions/grib1/section.1.def b/definitions/grib1/section.1.def index 859b20e35..32ac08292 100644 --- a/definitions/grib1/section.1.def +++ b/definitions/grib1/section.1.def @@ -337,6 +337,14 @@ if (stepTypeForConversion is "min" ) { alias productDefinitionTemplateNumber=eight; } } +if (stepTypeForConversion is "avg" ) { + if (productDefinitionTemplateNumber == 1) { + alias productDefinitionTemplateNumber=eleven; + } + else { + alias productDefinitionTemplateNumber=eight; + } +} meta md5Section1 md5(offsetSection1,section1Length); # md5(start,length,blacklisted1,blacklisted2,...);