#!/bin/sh # Copyright 2005-2014 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 #set -x outfile=out.grib sample_g1=$GRIB_SAMPLES_PATH/GRIB1.tmpl temp=temp.grib file=${data_dir}/regular_gaussian_pressure_level.grib1 cat >good<level.filter< test.dump diff good test.dump # GRIB-492 ${tools_dir}grib_set -s indicatorOfTypeOfLevel=110 $sample_g1 $temp res=`${tools_dir}grib_get -p indicatorOfTypeOfLevel:l,topLevel,bottomLevel $temp` [ "$res" = "110 0 0" ] rm -f level.filter good test.dump $temp