Testing: PNG packing

This commit is contained in:
Shahram Najm 2024-01-23 19:42:46 +00:00
parent 1fd6add508
commit 7cc8567e4c
3 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,9 @@
. ./include.ctest.sh . ./include.ctest.sh
label="grib_double_cmp_test"
tempGrib=temp.$label.grib
infiles=" infiles="
grid_ieee.grib grid_ieee.grib
regular_latlon_surface_constant.grib2 regular_latlon_surface_constant.grib2
@ -25,6 +28,12 @@ if [ $HAVE_JPEG -eq 1 ]; then
infiles="jpeg.grib2 "$infiles infiles="jpeg.grib2 "$infiles
fi fi
if [ $HAVE_PNG -eq 1 ]; then
infile=$data_dir/reduced_gaussian_model_level.grib2
${tools_dir}/grib_set -r -s packingType=grid_png $infile $data_dir/$tempGrib
infiles="$tempGrib "$infiles
fi
if [ $HAVE_AEC -eq 1 ]; then if [ $HAVE_AEC -eq 1 ]; then
infiles="ccsds.grib2 "$infiles infiles="ccsds.grib2 "$infiles
fi fi
@ -33,3 +42,5 @@ for f in $infiles; do
infile=$data_dir/$f infile=$data_dir/$f
$EXEC ${test_dir}/grib_double_cmp ${infile} $EXEC ${test_dir}/grib_double_cmp ${infile}
done done
rm -f $data_dir/$tempGrib

View File

@ -28,6 +28,7 @@ grib_files=`cat ${data_dir}/grib_data_files.txt`
for f in ${grib_files}; do for f in ${grib_files}; do
${test_dir}/grib_keys_iter $f > $tempOut ${test_dir}/grib_keys_iter $f > $tempOut
done done
rm -f $tempOut
cd ${data_dir}/tigge cd ${data_dir}/tigge
tigge_files=`cat ${data_dir}/tigge/tigge_data_files.txt` tigge_files=`cat ${data_dir}/tigge/tigge_data_files.txt`

View File

@ -65,6 +65,10 @@ grep -q "224.455" $temp1
${tools_dir}/grib_ls -F%.6g -l 48.835,327.600 $temp > $temp1 ${tools_dir}/grib_ls -F%.6g -l 48.835,327.600 $temp > $temp1
grep -q "Grid Point chosen #4 index=936 " $temp1 grep -q "Grid Point chosen #4 index=936 " $temp1
# jPointsAreConsecutive
infile=${data_dir}/reduced_gaussian_model_level.grib2
${tools_dir}/grib_set -r -s jPointsAreConsecutive=1,packingType=grid_png $infile $temp
# Conversion from IEEE to PNG # Conversion from IEEE to PNG
# ---------------------------- # ----------------------------