mirror of https://github.com/ecmwf/eccodes.git
Testing: grib_compare with -A option
This commit is contained in:
parent
1b2f76fed4
commit
c89dd9377e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue