Simple packing: corner case of bpv>0 for a constant field

This commit is contained in:
Shahram Najm 2022-05-09 16:16:45 +01:00
parent a9b36b4ec4
commit 843adb1e42
1 changed files with 9 additions and 0 deletions

View File

@ -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