File: grib_get_data.sh

package info (click to toggle)
eccodes 2.44.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 150,256 kB
  • sloc: cpp: 163,056; ansic: 26,308; sh: 21,602; f90: 6,854; perl: 6,363; python: 5,087; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 274; xml: 183; awk: 66
file content (23 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

echo "-# To get a latitude, longitude, value list, skipping the missing values(=9999)"
echo "\\verbatim"
echo ">grib_get_data ../data/reduced_gaussian_model_level.grib2"
echo "\\endverbatim"

echo "-# If you want to define your missing value=1111 and to print the string 'missing' in place of it"
echo "\\verbatim"
echo ">grib_get_data -m 1111:missing ../data/reduced_latlon_surface.grib2"
echo "\\endverbatim"

echo "-# If you want to print the value of other keys with the data value list"
echo "\\verbatim"
echo ">grib_get_data -p centre,level,step ../data/reduced_gaussian_model_level.grib2"
echo "\\endverbatim"

echo "-# If you want to control the formatting of the latitudes and longitudes"
echo "\\verbatim"
echo ">grib_get_data -L %12.6f%12.6f ../data/reduced_latlon_surface.grib2"
echo "\\endverbatim"