Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
bufr.pm:bufrread_help [2010-09-21 08:05:47] pals |
bufr.pm:bufrread_help [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
< | < | ||
Usage: | Usage: | ||
- | | + | |
+ | [--ahl < | ||
+ | [--all_operators] | ||
+ | [--bitmap] | ||
+ | [--codetables] | ||
+ | [--data_only] | ||
[--filter <filter file>] | [--filter <filter file>] | ||
- | [--param < | + | [--help] |
- | [--sort | --sort_on < | + | |
- | [--transform < | + | [--noqc] |
- | [--lon1 x1] | + | |
- | [--lat1 y1] | + | [--optional_section] |
- | [--lon2 x2] | + | [--outfile < |
- | [--lat2 x2] | + | [--param < |
+ | [--strict_checking n] | ||
+ | [--tableformat < | ||
[--tablepath <path to BUFR tables>] | [--tablepath <path to BUFR tables>] | ||
- | [--help] | + | [--verbose n] |
+ | [--width n] | ||
Options: | Options: | ||
- | | + | --ahl <ahl_regexp> |
- | Decode | + | |
- | --param < | + | |
- | Print parameters in <parameter | + | --bitmap |
- | as they occur in <parameter | + | |
- | vill be printed using the CSV (comma separated values) format | + | is [CODE TABLE] or [FLAG TABLE] |
- | --sort Sort the decoded observations on station identification; | + | --data_only |
- | first stations with wmonr, then stations with call sign, | + | |
- | then stations with buoy_id | + | Decode observations meeting criteria |
- | --sort_on | + | --help Display Usage and explain |
- | | + | more info you might prefer to consult perldoc bufrread.pl |
- | follows the parameter name. Observations not containing | + | |
- | the parameter at all will be printed lastly. E.g. | + | |
- | | + | |
- | --transform | + | |
- | Do the transformations of parameter values listed | + | |
- | | + | Will print to <filename> instead of STDOUT |
- | | + | |
- | | + | Display a hex dump of optional section if present |
- | | + | --param <descriptor |
- | | + | Display parameters with descriptors |
- | | + | --strict_checking n n=0 (default) Disable strict checking of BUFR format |
- | --tablepath <path to BUFR tables> | + | n=1 Issue warning if (recoverable) error in |
- | Set path to BUFR tables (overrides ENV{BUFR_TABLES}) | + | BUFR format |
- | --help Print this Usage | + | n=2 Croak if (recoverable) error in BUFR format. |
+ | Nothing more in this message/ | ||
+ | --tableformat | ||
+ | --tablepath <path to BUFR tables> | ||
+ | | ||
+ | | ||
+ | show the tables loaded. | ||
+ | | ||
+ | | ||
- | Options may be abbreviated, | + | Options may be abbreviated, |
To avoid having to use the " | To avoid having to use the " | ||
- | the invironment | + | the environment |
- | tables are located (unless the default path provided by bufrdump.pl | + | tables are located (unless the default path provided by bufrread.pl |
- | works for you). | + | works for you). For tableformat ECCODES, se |
+ | < | ||
+ | for more info on how to set " | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | possibly be required when using the utility programs included in |
+ | | ||
- | wmonr | + | For option " |
- | | + | BUFR descriptor (6 digits). Rest of line will be ignored. bufrread.pl |
- | TA | + | will display values for these descriptors only. |
- | | + | |
- | | + | the criteria in <filter file> (and all of those criteria marked D!). |
- | (e.g. ' | + | |
- | If --csv is used in conjunction with --param, all values will be printed | + | |
- | using the CSV format, with first line listing the parameters, and with | + | |
- | missing fields printed as -32767 if the parameter is marked with ' | + | D: 001001 001002 |
- | parameter file. With the parameter file above, the listing may for | + | |
- | example start like | + | |
- | + | D: 001011 | |
- | wmonr, | + | LF5U # Ekofisk |
- | 01001,, | + | |
- | ,LF5U,9.0 | + | |
- | + | | |
- | Using --filter will decode only those observations that meet at least | + | |
- | one of the BUFR descriptor criteria and all of the parameter criteria in | + | |
- | <filter file>, where the BUFR descriptor criteria should come first in | + | |
- | filter file followed by a blank line, then comes the parameter criteria | + | |
- | which should match < | + | |
- | is one of =, !=, <, <=, > and >=. An example filter file is | + | |
- | + | ||
- | | + | |
- | | + | |
- | D: 001001 | + | |
- | | + | |
- | | + | |
- | D: 001011 | + | |
- | LF5U | + | |
- | + | ||
- | | + | |
- | NN != 8 | + | |
- | TA >= 5 | + | |
- | | + | |
- | | + | |
which decodes all observations with block number 01, two other specific | which decodes all observations with block number 01, two other specific | ||
- | | + | |
- | cloud cover different from 8 (but NN must be part of the message) and | + | |
- | | + | is enough that the observation contains the descriptor(s), whatever |
- | precipitation for last 24 hours. Comment lines starting with # will be | + | |
- | ignored. | + | |
- | + | ||
- | Another example: the simple filter file (starting with a blank line!) | + | |
- | + | ||
- | wmonr | + | |
- | + | ||
- | will print only those observations containing a wmonr (skipping ships). | + | |
- | + | ||
- | The --transform option is provided mainly to be able to use other units | + | |
- | than what is default in bufrdump.pl. The transformation file should list | + | |
- | the transformations wanted, one per line as | + | |
- | + | ||
- | < | + | |
- | + | ||
- | | + | |
- | + | ||
- | For example, the following transformation file will display wind speed | + | |
- | | + | |
- | cloud cover NN in % (instead of the default which is using WMO code | + | |
- | | + | |
- | | + | |
- | FG = sprintf(" | + | |
- | NN = int($x*12.5 + .5) | + | |
- | If --transform is combined with --filter, | + | If an error occurs during decoding (typically because |
- | | + | |
- | to be applied for sky not all covered by clouds, you should use NN != | + | |
- | | + | |
+ | however, by setting " | ||
</ | </ |