File: grib_get.dox

package info (click to toggle)
eccodes 2.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 154,404 kB
  • sloc: cpp: 162,953; ansic: 26,308; sh: 21,742; f90: 6,854; perl: 6,361; python: 5,172; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 283; xml: 183; awk: 66
file content (63 lines) | stat: -rw-r--r-- 2,689 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*!  \page grib_get grib_get
\section DESCRIPTION 
 Get values of some keys from a grib file.
	It is similar to grib_ls, but fails returning an error code 
	when an error occurs (e.g. key not found).

\section USAGE 
 grib_get 
 [options] grib_file grib_file ...

\section OPTIONS 
-f  \n Force. Force the execution not to fail on error.
 \n \n -p key[:{s/d/i}],key[:{s/d/i}],... \n 
		Declaration of keys to print.
		For each key a string (key:s), a double (key:d) or an integer (key:i)
		type can be requested. Default type is string.
 \n \n -F format \n 
		C style format for floating-point values.
 \n \n -l Latitude,Longitude[,MODE,file] \n 
		Value close to the point of a Latitude,Longitude.
		Allowed values for MODE are:
		4 (4 values in the nearest points are printed) Default
		1 (the value at the nearest point is printed)
		file (file is used as mask. The closer point with mask value>=0.5 is printed)
 \n \n -P key[:{s/d/i}],key[:{s/d/i}],... \n 
		As -p adding the declared keys to the default list.
 \n \n -w key[:{s/d/i}]{=/!=}value,key[:{s/d/i}]{=/!=}value,... \n 
		Where clause.
		Messages are processed only if they match all the key/value constraints.
		A valid constraint is of type key=value or key!=value.
		For each key a string (key:s), a double (key:d) or an integer (key:i)
		type can be specified. Default type is string.
 \n \n -n namespace \n 
		All the keys belonging to the given namespace are printed.
 \n \n -s key[:{s/d/i}]=value,key[:{s/d/i}]=value,... \n 
		Key/values to set.
		For each key a string (key:s), a double (key:d) or an integer (key:i)
		type can be defined. By default the native type is set.
 \n \n -V  \n Version.
 \n \n -W width \n 
		Minimum width of each column in output. Default is 10.
 \n \n -m  \n Mars keys are printed.
 \n \n -M  \n Multi-field support off. Turn off support for multiple fields in single grib message.
 \n \n -g  \n Copy GTS header. 
 \n \n -G  \n GRIBEX compatibility mode.
 \n \n -T T | B | M | A \n Message type. T->GTS, B->BUFR, M->METAR (Experimental),A->Any (Experimental).
			The input file is interpreted according to the message type.
 \n \n -7  \n Does not fail when the message has wrong length
 \n \n -X offset \n 
		Input file offset in bytes. Processing of the input file will start from "offset".
 \n \n -i index \n 
		Data value corresponding to the given index is printed.
 \n \n 
\section grib_get_examples grib_get examples
-# grib_get fails if a key is not found.\n 
\verbatim 
>grib_get -p gribname ../data/tigge_pf_ecmwf.grib2
\endverbatim 
-# To get the step of the first GRIB message in a file: \n
\verbatim 
>grib_get -w count=1 -p step ../data/tigge_pf_ecmwf.grib2
\endverbatim 
*/