From e4e641d28fa2dd95c2f652512427ce39ca09bfda Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 26 Apr 2022 11:27:46 +0100 Subject: [PATCH] Testing: use of 'accuracy' to encode (IEEE) --- tests/grib_ieee.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/grib_ieee.sh b/tests/grib_ieee.sh index 6409aa6fc..c9db74506 100755 --- a/tests/grib_ieee.sh +++ b/tests/grib_ieee.sh @@ -175,8 +175,12 @@ stats1=`${tools_dir}/grib_get -M -F%.3f -p skew,kurt $infile` stats2=`${tools_dir}/grib_get -M -F%.3f -p skew,kurt $temp` [ "$stats1" = "$stats2" ] +# The same thing but use 'accuracy' instead of 'precision' +temp2=temp2.grib_ieee.grib +${tools_dir}/grib_set -r -s accuracy=64 $infile $temp2 +cmp $temp $temp2 - +rm -f $temp2 rm -f $temp ##################################