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.sh
|
|
|
|
|
|
|
|
# if an index file does not exist then
|
|
|
|
# create index and save to disk
|
2017-02-03 14:29:47 +00:00
|
|
|
${examples_dir}/eccodes_f_grib_index > index_f90.out
|
2013-03-25 12:04:10 +00:00
|
|
|
diff index_f90.out ${data_dir}/index_f90.ok
|
|
|
|
|
|
|
|
# if an index file exists then load the index from it
|
2017-02-03 14:29:47 +00:00
|
|
|
${examples_dir}/eccodes_f_grib_index > index_f90.out
|
2013-03-25 12:04:10 +00:00
|
|
|
diff index_f90.out ${data_dir}/index_f90.ok
|
2013-11-13 11:51:45 +00:00
|
|
|
|
|
|
|
rm -f index.idx index_f90.out
|