Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECC-1991: GRIB2: stepType for typeOfStatisticalProcessing index processing #276

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions definitions/grib2/section.1.def
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions definitions/grib2/templates/template.4.statistical.def
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions tests/grib_step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading