Testing: grib_compare with -A option

This commit is contained in:
Shahram Najm 2023-08-09 12:09:47 +01:00
parent 1b2f76fed4
commit c89dd9377e
1 changed files with 15 additions and 1 deletions

View File

@ -13,7 +13,7 @@
label="grib_compare_test"
REDIRECT=/dev/null
outfile=temp.$label.$$
outfile=temp.$label.grib
rm -f $outfile
@ -102,6 +102,20 @@ status=$?
set -e
[ $status -eq 1 ]
# ----------------------------------------
# Test -A switch
# ----------------------------------------
infile=${data_dir}/sample.grib2
${tools_dir}/grib_set -s scaleValuesBy=1.01 $infile $temp1
# max absolute diff. = 3.11
set +e
${tools_dir}/grib_compare -b referenceValue -A 3.1 $infile $temp1
status=$?
set -e
[ $status -eq 1 ]
# Raise the tolerance
${tools_dir}/grib_compare -b referenceValue -A 3.2 $infile $temp1
# ----------------------------------------
# ECC-355: -R with "all" option