mirror of https://github.com/ecmwf/eccodes.git
Testing: PNG packing
This commit is contained in:
parent
1fd6add508
commit
7cc8567e4c
|
@ -14,6 +14,9 @@
|
|||
|
||||
. ./include.ctest.sh
|
||||
|
||||
label="grib_double_cmp_test"
|
||||
tempGrib=temp.$label.grib
|
||||
|
||||
infiles="
|
||||
grid_ieee.grib
|
||||
regular_latlon_surface_constant.grib2
|
||||
|
@ -25,6 +28,12 @@ if [ $HAVE_JPEG -eq 1 ]; then
|
|||
infiles="jpeg.grib2 "$infiles
|
||||
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
|
||||
infiles="ccsds.grib2 "$infiles
|
||||
fi
|
||||
|
@ -33,3 +42,5 @@ for f in $infiles; do
|
|||
infile=$data_dir/$f
|
||||
$EXEC ${test_dir}/grib_double_cmp ${infile}
|
||||
done
|
||||
|
||||
rm -f $data_dir/$tempGrib
|
||||
|
|
|
@ -28,6 +28,7 @@ grib_files=`cat ${data_dir}/grib_data_files.txt`
|
|||
for f in ${grib_files}; do
|
||||
${test_dir}/grib_keys_iter $f > $tempOut
|
||||
done
|
||||
rm -f $tempOut
|
||||
|
||||
cd ${data_dir}/tigge
|
||||
tigge_files=`cat ${data_dir}/tigge/tigge_data_files.txt`
|
||||
|
|
|
@ -65,6 +65,10 @@ grep -q "224.455" $temp1
|
|||
${tools_dir}/grib_ls -F%.6g -l 48.835,327.600 $temp > $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
|
||||
# ----------------------------
|
||||
|
|
Loading…
Reference in New Issue