#!/bin/sh # (C) Copyright 2005- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. # . ./include.ctest.sh set -u REDIRECT=/dev/null label="grib_ecc-1406_test" tempGrib=temp.$label.grib tempFilt=temp.${label}.filt tempOut=temp.${label}.txt sample2="$samp_dir/GRIB2.tmpl" cat > $tempFilt < $tempOut grep -q "Grid Point chosen #1 index=5016590" $tempOut grep -q "grid_simple 42" $tempOut ${tools_dir}/grib_ls -j -l 37.5,16.0,1 $tempGrib > $tempOut grep -q 'latitude" : 37.5, "longitude" : 16, "distance" : 0,.*"value" : 42 ,' $tempOut rm -f $tempGrib $tempFilt $tempOut