GRIB-179: Add test for data when (bitsPerValue % 8 != 0)

This commit is contained in:
Daniel Lee 2016-05-24 17:18:57 +02:00 committed by Daniel Lee
parent cc97806b33
commit 315641c11c
1 changed files with 10 additions and 0 deletions

View File

@ -69,3 +69,13 @@ res3=`${tools_dir}grib_get '-F%1.2f' -p min,max,avg $outfile2`
[ "$res1" = "$res3" ]
rm -f $outfile1 $outfile2 || true
infile=${data_dir}/tigge_ecmwf.grib2
outfile1=$infile.tmp_ccsds.1
outfile2=$infile.tmp_ccsds.2
${tools_dir}grib_set -r -s bitsPerValue=17 $infile $outfile1
${tools_dir}grib_set -r -s packingType=grid_ccsds $outfile1 $outfile2
${tools_dir}grib_compare -P -c data:n $outfile1 $outfile2
rm -f $outfile1 $outfile2