mirror of https://github.com/ecmwf/eccodes.git
ECC-1991: GRIB2: stepType for typeOfStatisticalProcessing index processing (#276)
* ECC-1991: Add test
This commit is contained in:
parent
92e5f7e8d1
commit
b51bb53f2b
|
@ -95,6 +95,7 @@ concept stepType {
|
|||
"sum" = {selectStepTemplateInterval=1; stepTypeInternal="sum";}
|
||||
"severity" = {selectStepTemplateInterval=1; stepTypeInternal="severity";}
|
||||
"mode" = {selectStepTemplateInterval=1; stepTypeInternal="mode";}
|
||||
"index" = {selectStepTemplateInterval=1; stepTypeInternal="index";}
|
||||
}
|
||||
|
||||
# 0=atmospheric chemical constituents
|
||||
|
|
|
@ -69,6 +69,7 @@ if (numberOfTimeRanges == 1 || numberOfTimeRanges == 2) {
|
|||
"sum" = {typeOfStatisticalProcessing=11;}
|
||||
"severity" = {typeOfStatisticalProcessing=100;}
|
||||
"mode" = {typeOfStatisticalProcessing=101;}
|
||||
"index" = {typeOfStatisticalProcessing=102;}
|
||||
}
|
||||
meta startStep step_in_units(forecastTime,indicatorOfUnitOfTimeRange,stepUnits,
|
||||
indicatorOfUnitForTimeRange,lengthOfTimeRange) : no_copy;
|
||||
|
|
|
@ -118,6 +118,12 @@ grib_check_key_equals $temp productDefinitionTemplateNumber,typeOfStatisticalPro
|
|||
${tools_dir}/grib_set -s stepType=mode,paramId=260320 $grib2_sample $temp
|
||||
grib_check_key_equals $temp productDefinitionTemplateNumber,typeOfStatisticalProcessing '8 101'
|
||||
|
||||
# ECC-1991: stepType for index processing
|
||||
# -----------------------------------------
|
||||
${tools_dir}/grib_set -s stepType=index $grib2_sample $temp
|
||||
grib_check_key_equals $temp productDefinitionTemplateNumber,typeOfStatisticalProcessing '8 102'
|
||||
|
||||
|
||||
# ECC-1577: stepType when typeOfTimeIncrement=255
|
||||
# -----------------------------------------------
|
||||
${tools_dir}/grib_set -s stepType=accum,typeOfTimeIncrement=255 $grib2_sample $temp
|
||||
|
|
Loading…
Reference in New Issue