From 8b275bce2cb11ed1c3aa6977dd65f277a8ef2824 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Thu, 27 Jun 2024 10:49:56 +0000 Subject: [PATCH] ECC-1228: Add test --- tests/grib_sub_hourly.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/grib_sub_hourly.sh b/tests/grib_sub_hourly.sh index dfbf145f5..a49a90a6a 100755 --- a/tests/grib_sub_hourly.sh +++ b/tests/grib_sub_hourly.sh @@ -62,6 +62,11 @@ fi instantaneous_field=$data_dir/reduced_gaussian_surface.grib2 accumulated_field=$data_dir/reduced_gaussian_sub_area.grib2 +# ECC-1228: Changing template with negative forecast time +${tools_dir}/grib_set -s stepRange=-48s--24s $accumulated_field $temp +${tools_dir}/grib_set -s productDefinitionTemplateNumber=8 $temp $temp2 +grib_check_key_equals $temp2 "-p forecastTime,indicatorOfUnitOfTimeRange,lengthOfTimeRange,indicatorOfUnitForTimeRange" "-48 13 24 13" + # ECC-1802: Relaxation of the "Step Units Rule": # The updated rule permits the simultaneous assignment of the same step unit to both 'stepUnits' and 'step*' keys in="$instantaneous_field"