eccodes/tests/grib1_gds_not_present.sh

24 lines
693 B
Bash
Raw Normal View History

2023-08-04 13:23:39 +00:00
#!/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
REDIRECT=/dev/null
label="grib1_gds_not_present_test"
tempGrib=temp.$label.grib
input=$data_dir/reduced_latlon_surface.grib1
${tools_dir}/grib_set -s gridDescriptionSectionPresent=0 $input $tempGrib
${tools_dir}/grib_dump $tempGrib > $REDIRECT 2>&1
# Clean up
rm -f $tempGrib