Testing: bitsPerValue setting via two methods
@@ -93,17 +93,17 @@ for file in $files; do
done
-files="regular_latlon_surface.grib2 \
- regular_latlon_surface.grib1"
-
-for file in `echo $files`; do
+files="regular_latlon_surface.grib2
+ regular_latlon_surface.grib1
+ lfpw.grib1"
+for file in $files; do
infile=${data_dir}/$file
outfile1=${infile}_bitsPerValue_1
outfile2=${infile}_bitsPerValue_2
+ # Setting with setBitsPerValue key should be identical to using the repack option
${tools_dir}/grib_set -r -s bitsPerValue=10 $infile $outfile1
-
${tools_dir}/grib_set -s setBitsPerValue=10 $infile $outfile2
${tools_dir}/grib_compare $outfile1 $outfile2
