From d8b4b30b5199db5123e66ea95ea142dd158b1b4f Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 20 Aug 2021 13:20:35 +0100 Subject: [PATCH] Testing: test for data_g1simple_packing (GRIB1 spectral_simple) --- tests/grib_change_packing.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/grib_change_packing.sh b/tests/grib_change_packing.sh index 246a63bbf..b5b7fb8f5 100755 --- a/tests/grib_change_packing.sh +++ b/tests/grib_change_packing.sh @@ -92,6 +92,9 @@ input=${data_dir}/spherical_model_level.grib1 ${tools_dir}/grib_set -r -s packingType=spectral_simple $input $temp grib_check_key_equals $temp packingType 'spectral_simple' ${tools_dir}/grib_ls -p numberOfCodedValues $temp +${tools_dir}/grib_ls -n statistics $temp +stats=`${tools_dir}/grib_get -F%.1f -p average,standardDeviation $temp` +[ "$stats" = "195.1 12.0" ] rm -f $temp