From aa3d620db7d74e19cf8d10458b477c6a2b860797 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 27 Nov 2019 13:37:40 +0000 Subject: [PATCH] Testing: GRIB ieee to simple packing --- tests/grib_change_packing.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/grib_change_packing.sh b/tests/grib_change_packing.sh index 0ea017449..015aeca61 100755 --- a/tests/grib_change_packing.sh +++ b/tests/grib_change_packing.sh @@ -69,6 +69,16 @@ res2=`${tools_dir}/grib_get '-F%.1f' -p avg,enorm $temp` rm -f $temp +# IEEE to Simple Packing +# ----------------------- +input=${data_dir}/grid_ieee.grib +${tools_dir}/grib_set -r -s packingType=grid_simple $input $temp +grib_check_key_equals $temp packingType 'grid_simple' +stats1=`${tools_dir}/grib_get -F%.2f -p skew,kurt $input` +stats2=`${tools_dir}/grib_get -F%.2f -p skew,kurt $temp` +[ "$stats1" = "$stats2" ] + + # Change grib packing test # ------------------------- test_packing $grib1 $packing1