mirror of https://github.com/ecmwf/eccodes.git
Testing: grib_merge
This commit is contained in:
parent
1f335a011e
commit
3ffb5a6bd0
|
@ -228,6 +228,7 @@ if( HAVE_BUILD_TOOLS )
|
|||
grib_geo_iter
|
||||
grib_to_json
|
||||
grib_to_ppm
|
||||
grib_merge
|
||||
big2gribex
|
||||
grib_sub_area_check
|
||||
grib_list_keys
|
||||
|
|
|
@ -15,7 +15,10 @@ tempOut=temp.$label.txt
|
|||
|
||||
if [ -d "$ECCODES_DEFINITION_PATH" ]; then
|
||||
if [ -x "${tools_dir}/grib_list_keys" ]; then
|
||||
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/boot.def
|
||||
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/boot.def > $tempOut
|
||||
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.4.2000.def > $tempOut
|
||||
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.3.0.def > $tempOut
|
||||
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.3.120.def > $tempOut
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#!/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
|
||||
|
||||
label="grib_merge_test"
|
||||
|
||||
tempGrib=temp.$label.grib
|
||||
tempFilt=temp.$label.filt
|
||||
tempLog=temp.$label.log
|
||||
tempOut=temp.$label.txt
|
||||
tempRef=temp.$label.ref
|
||||
|
||||
f1=$ECCODES_SAMPLES_PATH/regular_ll_pl_grib1.tmpl
|
||||
f2=$ECCODES_SAMPLES_PATH/regular_ll_sfc_grib1.tmpl
|
||||
${tools_dir}/grib_merge $f1 $f2 $tempGrib
|
||||
|
||||
# Clean up
|
||||
rm -f $tempGrib $tempFilt $tempLog $tempOut $tempRef
|
Loading…
Reference in New Issue