2013-03-25 12:04:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "-# grib_get fails if a key is not found.\\n "
|
|
|
|
echo "\\verbatim "
|
2017-10-17 17:03:08 +00:00
|
|
|
echo ">grib_get -p nosuchkey ../data/tigge_pf_ecmwf.grib2"
|
2013-03-25 12:04:10 +00:00
|
|
|
set +e
|
2017-10-17 17:03:08 +00:00
|
|
|
./grib_get -p nosuchkey ../data/tigge_pf_ecmwf.grib2
|
2013-03-25 12:04:10 +00:00
|
|
|
set -e
|
2017-10-17 17:03:08 +00:00
|
|
|
ecbo "ECCODES ERROR : Key/value not found"
|
2013-03-25 12:04:10 +00:00
|
|
|
echo "\\endverbatim "
|
|
|
|
echo "-# To get the step of the first GRIB message in a file: \\n"
|
|
|
|
echo "\\verbatim "
|
|
|
|
echo ">grib_get -w count=1 -p step ../data/tigge_pf_ecmwf.grib2"
|
|
|
|
echo "\\endverbatim "
|