From 86c6ee5b09e59fdbebb6f1003b8e577ca8df5467 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 2 Nov 2021 21:14:46 +0000 Subject: [PATCH] ECC-1291: Add test --- tests/grib_grid_lamb_az_eq_area.sh | 58 ++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/tests/grib_grid_lamb_az_eq_area.sh b/tests/grib_grid_lamb_az_eq_area.sh index f2e8e3bd6..206b1623f 100755 --- a/tests/grib_grid_lamb_az_eq_area.sh +++ b/tests/grib_grid_lamb_az_eq_area.sh @@ -8,7 +8,7 @@ # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. . ./include.sh -#set -x + GRIB_INFILE=${data_dir}/regular_gaussian_pressure_level_constant.grib2 REF_FILE=grib_lamb_az_eq_area.ref @@ -19,20 +19,23 @@ GRIB_OUTFILE=lamb_az_eq_area.grib2 DATA_OUTFILE=lamb_data.txt rm -f $FILTER_FILE $GRIB_OUTFILE $DATA_OUTFILE +# Spherical Earth +# ---------------- + # Create a filter cat > $FILTER_FILE<&2 - exit 1 -fi -# Now get the data from the newly created GRIB file + +# Now run the Geoiterator on the newly created GRIB file ${tools_dir}/grib_get_data $GRIB_OUTFILE > $DATA_OUTFILE # Compare output with reference. If the diff fails, script will immediately exit with status 1 @@ -62,6 +62,36 @@ grib_check_key_equals $GRIB_OUTFILE xDirectionGridLengthInMetres,yDirectionGridL ${tools_dir}/grib_ls -l 67,-33,1 $GRIB_OUTFILE +# Oblate spheroid +# -------------------- + +cat > $FILTER_FILE<