#!/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 set -u # --------------------------------------------------------- # This is the test for the JIRA issue ECC-1150 # ECC-1150: keys 'lowerLimit' and 'upperLimit' cannot be MISSING # --------------------------------------------------------- label="grib_ecc-1150-test" tempGrib=temp.${label}.grib tempFilt=temp.${label}.filt in=$ECCODES_SAMPLES_PATH/GRIB2.tmpl ${tools_dir}/grib_set -s \ productDefinitionTemplateNumber=5,scaleFactorOfLowerLimit=missing,scaledValueOfLowerLimit=missing \ $in $tempGrib grib_check_key_equals $tempGrib lowerLimit MISSING grib_check_key_equals $tempGrib upperLimit 0 cat > $tempFilt <