mirror of https://github.com/ecmwf/eccodes.git
ECC-1515: Assertion failure: set packingType to grid_png
This commit is contained in:
parent
35447bf202
commit
177168e727
|
@ -14,6 +14,7 @@ label="grib_png_test"
|
|||
temp=${label}".grib.tmp"
|
||||
temp1=${label}".1.tmp"
|
||||
temp2=${label}".2.tmp"
|
||||
tempErr=${label}.err
|
||||
|
||||
files="
|
||||
reduced_gaussian_model_level.grib2
|
||||
|
@ -32,8 +33,7 @@ if [ $HAVE_JPEG -eq 1 ]; then
|
|||
files="jpeg.grib2 reduced_gaussian_surface_jpeg.grib2 "$files
|
||||
fi
|
||||
|
||||
# TODO: For the following the PNG packing fails with an assert!
|
||||
# grib_accessor_class_data_png_packing.c: Assert(p->offset + length <= p->length)
|
||||
# TODO: For the following the PNG packing fails!
|
||||
# data/sample.grib2
|
||||
# data/missing.grib2
|
||||
# data/tigge_af_ecmwf.grib2
|
||||
|
@ -49,6 +49,11 @@ for file in $files; do
|
|||
rm -f $temp $temp1 $temp2
|
||||
done
|
||||
|
||||
infile=${data_dir}/sample.grib2
|
||||
set +e
|
||||
${tools_dir}/grib_set -r -s packingType=grid_png $infile $temp > $tempErr 2>&1
|
||||
set -e
|
||||
grep -q "unable to set double array codedValues" $tempErr
|
||||
|
||||
# Nearest neighbour
|
||||
# ----------------------
|
||||
|
@ -71,4 +76,4 @@ grib_check_key_equals $temp accuracy 0
|
|||
|
||||
|
||||
# Clean up
|
||||
rm -f $temp
|
||||
rm -f $temp $temp1 $temp2 $tempErr
|
||||
|
|
Loading…
Reference in New Issue