GRIB-941: tests

This commit is contained in:
Shahram Najm 2016-03-07 18:05:27 +00:00
parent 299a2606fc
commit 999857f9ab
2 changed files with 3 additions and 4 deletions

View File

@ -53,11 +53,10 @@ centre=`${tools_dir}grib_get -p centre:l $outfile`
[ $centre -eq 80 ]
set +e
${tools_dir}grib_set -p levtype $infile $outfile 2> $REDIRECT > $REDIRECT
[ $? -ne 0 ]
set -e
# GRIB-941: encoding of grib2 angles
angleInDegrees=130.9989
angleInMicroDegrees=130998900

View File

@ -19,9 +19,9 @@ grib_check_key_equals()
{
file=$1
key=$2
val=$3
expected=$3
result=`${tools_dir}grib_get -p $key $file`
[ "$result" = "$val" ]
[ "$result" = "$expected" ]
}
grib_check_key_exists()