eccodes/examples/F90/grib_samples.sh

28 lines
1.1 KiB
Bash
Raw Normal View History

2013-03-25 12:04:10 +00:00
#!/bin/sh
2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2013-03-25 12:04:10 +00:00
#
# 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
2013-03-25 12:04:10 +00:00
# Take a GRIB file in the data folder and make it a sample file (extension .tmpl)
2021-03-13 14:20:07 +00:00
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl
2013-03-25 12:04:10 +00:00
cp ${data_dir}/regular_latlon_surface.grib1 ${data_dir}/regular_latlon_surface.grib1.tmpl
# Change the ECCODES_SAMPLES_PATH: put the data dir first
ECCODES_SAMPLES_PATH=${data_dir}:${samples_dir}
export ECCODES_SAMPLES_PATH
2017-02-03 14:29:47 +00:00
${examples_dir}/eccodes_f_grib_samples > /dev/null
2013-03-25 12:04:10 +00:00
# Extend the ECCODES_SAMPLES_PATH: put the data dir second
ECCODES_SAMPLES_PATH=${samples_dir}:${data_dir}
export ECCODES_SAMPLES_PATH
2017-02-03 14:29:47 +00:00
${examples_dir}/eccodes_f_grib_samples > /dev/null
2013-03-25 12:04:10 +00:00
rm -f f_out.samples.grib1
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl