From 843adb1e4242147d7e910e4f1c5b30be68d5a2cf Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 9 May 2022 16:16:45 +0100 Subject: [PATCH] Simple packing: corner case of bpv>0 for a constant field --- tests/grib_bitsPerValue.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/grib_bitsPerValue.sh b/tests/grib_bitsPerValue.sh index 8b38192f8..8ed5f5416 100755 --- a/tests/grib_bitsPerValue.sh +++ b/tests/grib_bitsPerValue.sh @@ -132,3 +132,12 @@ for bpv in `seq 17 $MAX_BPV`; do [ "$stats1" = "$stats2" ] rm -f $temp done + +# Cater for case of constant field with bitsPerValue > 0 +# TODO: This is a crazy case - still not sure if we should cater for it +#sample2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl +#${tools_dir}/grib_set -s bitsPerValue=16 $sample2 $temp +#minmax=`${tools_dir}/grib_get -p min,max $temp` +#[ "$minmax" = "1 1" ] + +rm -f $temp