Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bufr.pm:bufrread_help [2010-02-01 12:12:39] pals created |
bufr.pm:bufrread_help [2022-05-31 09:29:31] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| < | < | ||
| - | Usage: | + | Usage: |
| + | | ||
| + | | ||
| + | [--all_operators] | ||
| + | [--bitmap] | ||
| + | [--codetables] | ||
| + | [--data_only] | ||
| + | [--filter <filter file>] | ||
| + | [--help] | ||
| + | [--nodata] | ||
| + | [--noqc] | ||
| + | [--on_error_stop] | ||
| + | [--optional_section] | ||
| + | [--outfile < | ||
| + | [--param < | ||
| + | [--strict_checking n] | ||
| + | [--tableformat < | ||
| + | [--tablepath <path to BUFR tables> | ||
| + | [--verbose n] | ||
| + | [--width n] | ||
| - | Will print section | + | Options: |
| - | Options | + | --ahl < |
| + | | ||
| + | | ||
| + | --bitmap | ||
| + | | ||
| + | is [CODE TABLE] or [FLAG TABLE] | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | more info you might prefer to consult perldoc bufrread.pl | ||
| + | | ||
| + | | ||
| + | (or any descriptors following 222000) | ||
| + | | ||
| + | | ||
| + | Will print to < | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | n=1 Issue warning if (recoverable) error in | ||
| + | BUFR format | ||
| + | n=2 Croak if (recoverable) error in BUFR format. | ||
| + | | ||
| + | --tableformat | ||
| + | --tablepath <path to BUFR tables> | ||
| + | Set path to BUFR tables (overrides ENV{BUFR_TABLES}) | ||
| + | --verbose n Set verbose level to n, 0< | ||
| + | show the tables loaded. | ||
| + | | ||
| + | | ||
| - | --codetables | + | |
| - | is [CODE TABLE] or [FLAG TABLE] | + | |
| - | --data_only | + | |
| - | | + | |
| - | Decode parameters with descriptors in < | + | |
| - | --filter <filter file> | + | |
| - | Decode observations meeting criteria in <filter file> only | + | |
| - | --bitmap | + | |
| - | --noqc | + | |
| - | (or any descriptors following 222000) | + | |
| - | | + | |
| - | Will print to < | + | |
| - | --optional_section | + | |
| - | Display a hex dump of optional section if present | + | |
| - | --width n Set width of field used for data values to n characters | + | |
| - | (default is 15) | + | |
| - | | + | |
| - | n=1 Issue warning if (recoverable) error in | + | |
| - | BUFR format | + | |
| - | n=2 Croak if (recoverable) error in BUFR format. | + | |
| - | Nothing more in this message will be decoded. | + | |
| - | --all_operators Show all operator descriptors when printing section 4 | + | |
| - | --tablepath <path to BUFR tables> | + | |
| - | Set path to BUFR tables (overrides ENV{BUFR_TABLES}) | + | |
| - | --verbose n Set verbose level to n, 0< | + | |
| - | --help | + | |
| - | You should probably | + | To avoid having to use the " |
| - | | + | the environment variable |
| - | or use the --tablepath | + | tables are located (unless the default path provided by bufrread.pl |
| + | works for you). For tableformat ECCODES, se | ||
| + | <http://search.cpan.org/dist/Geo-BUFR/ | ||
| + | for more info on how to set "--tablepath" (or BUFR_TABLES). | ||
| - | Each line in <descriptor file> should | + | For option " |
| - | Rest of line will be ignored. bufrread will extract values for these descriptors | + | E.g. "--ahl " |
| - | only. If used together with --filter, < | + | |
| - | in <filter file>. | + | possibly be required when using the utility programs included |
| + | Geo::BUFR. | ||
| - | Using --filter will decode only those observations that meet one of the criteria | + | For option "--param" each line in <descriptor |
| - | <filter | + | BUFR descriptor |
| - | ignored. | + | will display values for these descriptors only. |
| - | # All stations | + | Using " |
| - | D: 001001 | + | the criteria |
| - | 1 | + | |
| - | D: 001001 001002 | + | |
| - | 3 895 | + | |
| - | 6 252 | + | |
| - | D: 001011 | + | |
| - | LF5U # Ekofisk | + | |
| - | D!: 004004 | + | |
| - | 6 | + | |
| - | 7 | + | |
| - | which decodes all observations with block number 01, two other specific wmo stations | + | D: 001001 |
| - | and one specific ship, all of which having hour (004004) equal to 6 or 7. | + | 1 |
| - | If there is no value line after a descriptor line, it is enough that the observation | + | D: 001001 001002 |
| - | contains the descriptor(s), | + | 3 895 |
| - | from a BUFR synop file, the filter file should contain this single line only: | + | |
| + | D: 001011 | ||
| + | | ||
| + | D!: 004004 | ||
| + | 6 | ||
| + | 7 | ||
| - | D: 001011 | + | which decodes all observations with block number 01, two other specific |
| + | WMO stations and one specific ship, all of which having hour (004004) | ||
| + | equal to 6 or 7. If there is no value line after a descriptor line, it | ||
| + | is enough that the observation contains the descriptor(s), | ||
| + | values are. So to extract all ship messages from a BUFR file, the filter | ||
| + | file should contain this single line only: | ||
| + | |||
| + | | ||
| + | |||
| + | If an error occurs during decoding (typically because the required BUFR | ||
| + | table is missing or message is corrupt), the BUFR message is skipped | ||
| + | with an error message printed to STDERR, and processing then continues | ||
| + | with the next BUFR message. You can change this default behaviour, | ||
| + | however, by setting " | ||
| - | If an error occurs during decoding (typically because the required BUFR table is | ||
| - | missing or message is corrupt) the message is skipped, and the number of errors | ||
| - | is reported at end of output. | ||
| </ | </ | ||