mirror of https://github.com/ecmwf/eccodes.git
ECC-1271: Add tests
This commit is contained in:
parent
41aa47edbf
commit
6138060e9d
|
@ -87,6 +87,7 @@ if( HAVE_BUILD_TOOLS )
|
|||
grib_ecc-1255
|
||||
grib_ecc-1258
|
||||
grib_ecc-1260
|
||||
grib_ecc-1271
|
||||
bufr_ecc-1028
|
||||
bufr_ecc-1195
|
||||
bufr_ecc-1259
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
#!/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.sh
|
||||
|
||||
label="grib_ecc-1271-test"
|
||||
temp=temp.$label
|
||||
|
||||
sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||
|
||||
|
||||
${tools_dir}/grib_set -s \
|
||||
centre=kwbc,gridDefinitionTemplateNumber=32769,localTablesVersion=1 \
|
||||
$sample_grib2 $temp
|
||||
|
||||
|
||||
grib_check_key_equals $temp Ni,Nj "16 31"
|
||||
grib_check_key_equals $temp centreLatitudeInDegrees,centreLongitudeInDegrees "0 30"
|
||||
grib_check_key_equals $temp minimum,maximum "1 1"
|
||||
|
||||
rm -f $temp
|
Loading…
Reference in New Issue