File: grib_get.sh

package info (click to toggle)
grib-api 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 217,848 kB
  • ctags: 16,929
  • sloc: ansic: 111,244; sh: 14,785; makefile: 5,307; f90: 3,583; perl: 3,160; python: 2,830; yacc: 712; fortran: 468; lex: 330; cpp: 305; awk: 66
file content (16 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

echo "-# grib_get fails if a key is not found.\\n "
echo "\\verbatim "
echo ">grib_get -p gribname ../data/tigge_pf_ecmwf.grib2"
set +e
./grib_get -p gribname ../data/tigge_pf_ecmwf.grib2
set -e
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 "