From 09ec44f944cffc32c7a822a408fd5d8c156dd536 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 19 Jun 2020 17:42:48 +0100 Subject: [PATCH] ECC-1090: added test for LD39 and type eme --- tests/grib_local.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/grib_local.sh b/tests/grib_local.sh index 5e25583de..0e4eacc96 100755 --- a/tests/grib_local.sh +++ b/tests/grib_local.sh @@ -132,6 +132,15 @@ ${tools_dir}/grib_set -s localDefinitionNumber=49,type=35 $sample_g1 $temp grib_check_key_equals $temp 'perturbationNumber,numberOfForecastsInEnsemble' '0 0' +# Local Definition 39 and type 'eme' for GRIB2 +# -------------------------------------------- +${tools_dir}/grib_set -s \ + setLocalDefinition=1,localDefinitionNumber=39,type=eme,stream=elda,componentIndex=11,offsetToEndOf4DvarWindow=12 \ + $sample_g2 $temp +grib_check_key_equals $temp 'mars.number,mars.anoffset' '11 12' +${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=39,type=eme,stream=enda,componentIndex=11 $sample_g2 $temp +grib_check_key_equals $temp 'mars.number' '11' + # Local Definition 18 (list of ascii keys) # ----------------------------------------