From db4c949eca59e882129b17f9a776ac4b68bd582a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 22 Feb 2023 17:44:02 +0000 Subject: [PATCH] ECC-1532: GRIB: Implement feature/carra_expver --- tests/grib_uerra.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/grib_uerra.sh b/tests/grib_uerra.sh index a0b827cbf..cdd7beb87 100755 --- a/tests/grib_uerra.sh +++ b/tests/grib_uerra.sh @@ -73,5 +73,23 @@ status=$? set -e [ $status -ne 0 ] +# ECC-1532 +# --------- +# By default crraLocalVersion=1 which does not allow expver to be set +# because it is a constant (prod or test) +set +e +${tools_dir}/grib_set -s \ + productionStatusOfProcessedData=10,grib2LocalSectionPresent=1,marsExpver=coco \ +$grib2_sample $temp1 +status=$? +set -e +[ $status -ne 0 ] + +# crraLocalVersion=2 has a coded key which can be set +${tools_dir}/grib_set -s \ + productionStatusOfProcessedData=10,grib2LocalSectionPresent=1,crraLocalVersion=2,marsExpver=coco \ +$grib2_sample $temp1 +grib_check_key_equals $temp1 'marsExpver,mars.expver' 'coco coco' + # Clean up rm -f $temp1 $temp2 $tempSample