diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 92c80d08a..d8b78af26 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -233,6 +233,7 @@ if( HAVE_BUILD_TOOLS ) grib_dump_debug grib_dump_json grib_local_MeteoFrance + grib_local_NCEP grib_neg_fctime codes_split_file grib_mars_keys) diff --git a/tests/grib_local_NCEP.sh b/tests/grib_local_NCEP.sh new file mode 100755 index 000000000..2b1b15230 --- /dev/null +++ b/tests/grib_local_NCEP.sh @@ -0,0 +1,20 @@ +#!/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 + +temp=output.grib_local_NCEP.grib +sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl + +grib_set -s centre=kwbc,discipline=3,parameterCategory=192,parameterNumber=35 $sample $temp + +grib_check_key_equals $temp paramId,shortName '7001339 SRFA176' + +rm -f $temp