From 24551b2a35b760eb19effcc9adc74efff508b51f Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 28 Jan 2021 17:08:12 +0000 Subject: [PATCH] Testing: test for new GRIB2 templates --- tests/grib2_templates.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/grib2_templates.sh b/tests/grib2_templates.sh index c1430712e..f1abb2c8f 100755 --- a/tests/grib2_templates.sh +++ b/tests/grib2_templates.sh @@ -18,10 +18,18 @@ temp2=temp2.$label.grib2 temp=temp.$label.grib2 sample2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl + +# Template 4.86 +# ------------- +# TODO: Add tablesVersion later... +$tools_dir/grib_set -s productDefinitionTemplateNumber=86,numberOfForecastsUsedInLocalTime=1 $sample2 $temp +grib_check_key_equals $temp totalNumberOfQuantiles,quantileValue '0 0' + + # Template 4.88 # ------------- # TODO: Add tablesVersion later... -grib_set -s productDefinitionTemplateNumber=88,numberOfForecastsUsedInLocalTime=1 $sample2 $temp +$tools_dir/grib_set -s productDefinitionTemplateNumber=88,numberOfForecastsUsedInLocalTime=1 $sample2 $temp grib_check_key_equals $temp localTimeMethod 255 # Templates 4.76 -> 4.79, 4.80 -> 4.83