Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
bufr.pm:bufrdump.pl_help [2010-11-30 14:18:37] pals |
bufr.pm:bufrdump.pl_help [2012-06-04 09:26:39] pals |
||
---|---|---|---|
Line 2: | Line 2: | ||
Usage: | Usage: | ||
bufrdump.pl <bufr file(s)> | bufrdump.pl <bufr file(s)> | ||
- | [--filter <filter file>] | + | [--filter <filter file | filter list>] |
- | [--param < | + | [--param < |
[--sort] | [--sort] | ||
[--sort_on < | [--sort_on < | ||
[--station <station list>] | [--station <station list>] | ||
[--transform < | [--transform < | ||
- | [--lon1 x1] | + | [--lon1 |
- | [--lat1 y1] | + | [--lat1 |
- | [--lon2 x2] | + | [--lon2 |
- | [--lat2 | + | [--lat2 |
+ | [--obstype < | ||
[--tablepath <path to BUFR tables>] | [--tablepath <path to BUFR tables>] | ||
[--help] | [--help] | ||
Options: | Options: | ||
- | --filter <filter file> | + | --filter <filter file | filter list> |
- | Decode observations meeting criteria in <filter file> only | + | Decode observations meeting criteria in filter file or |
- | --param < | + | filter list only |
- | Print parameters in parameter file or comma separated | + | --param < |
- | list (e.g. wmonr,TA) only, in same order as they occur | + | Print parameters in parameter file or comma |
- | | + | |
- | | + | |
+ | followed by --delimiter <del>, the parameters vill | ||
+ | | ||
+ | | ||
--sort | --sort | ||
- | first stations with wmonr, then stations with call sign, | + | first stations with wmonr, then stations with nationalnr, |
- | | + | |
--sort_on < | --sort_on < | ||
- | values of <parameter>, or decreasing values if a ' | + | values of parameter, or decreasing values if a ' |
follows the parameter name. E.g. --sort_on TA- will | follows the parameter name. E.g. --sort_on TA- will | ||
sort on decreasing temperatures. Observations not | sort on decreasing temperatures. Observations not | ||
Line 33: | Line 37: | ||
except when --sort_on is combined with --sort (in which | except when --sort_on is combined with --sort (in which | ||
case sorting is done firstly on station identification, | case sorting is done firstly on station identification, | ||
- | secondly on <parameter> with missing values printed first) | + | secondly on parameter with missing values printed first) |
--station <station list> | --station <station list> | ||
Print observations for stations in station list only, | Print observations for stations in station list only, | ||
Line 39: | Line 43: | ||
--transform < | --transform < | ||
Do the transformations of parameter values listed in | Do the transformations of parameter values listed in | ||
- | | + | transformation file |
- | --lon1 x1 | + | --lon1 |
- | --lat1 y1 | + | --lat1 |
- | --lon2 x2 | + | --lon2 |
- | --lat2 y2 | + | --lat2 |
x1,y1,x2,y2 should be decimal degrees | x1,y1,x2,y2 should be decimal degrees | ||
+ | --obstype < | ||
+ | Force observation type. If this option is not set, | ||
+ | will make an educated guess of observation type | ||
+ | based on metadata in section 1 of each BUFR | ||
+ | message. | ||
--tablepath <path to BUFR tables> | --tablepath <path to BUFR tables> | ||
Set path to BUFR tables (overrides ENV{BUFR_TABLES}) | Set path to BUFR tables (overrides ENV{BUFR_TABLES}) | ||
Line 53: | Line 62: | ||
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 bufrdump.pl | ||
works for you). | works for you). | ||
Line 91: | Line 100: | ||
01001,,-1.5 | 01001,,-1.5 | ||
,LF5U,9.0 | ,LF5U,9.0 | ||
+ | |||
+ | You can choose another delimiter than comma by use of option --delimiter | ||
+ | < | ||
Using --filter will decode only those observations that meet at least | Using --filter will decode only those observations that meet at least | ||
Line 97: | Line 109: | ||
filter file followed by a blank line, then comes the parameter criteria | filter file followed by a blank line, then comes the parameter criteria | ||
which should match < | which should match < | ||
- | is one of =, !=, <, <=, > and >=. An example filter file is | + | is one of =, !=, <, <=, > and >=. The parameter criteria may be phrased |
+ | as alternatives by separating them with ' | ||
+ | | ||
D: 001001 I2.2 | D: 001001 I2.2 | ||
Line 120: | Line 134: | ||
ignored. | ignored. | ||
- | Another example: the simple | + | Another example: the filter file (starting with a blank line!) |
wmonr | wmonr | ||
+ | obstime >= ' | ||
+ | RR_1 | RR_12 | RR_24 | ||
+ | TA < -30 | TA > 30 | ||
- | will print only those observations containing a wmonr (skipping ships). | + | will print only those observations containing a wmonr (skipping ships), |
+ | and having obstime larger or equal to the datetime given, and containing | ||
+ | precipitation for 1, 12 or 24 hours, and having temperature below minus | ||
+ | 30 or above plus 30 degrees Celsius. | ||
+ | |||
+ | For convenience, | ||
+ | provide the filter criteria on the command line. Example: | ||
+ | |||
+ | --filter wmonr,' | ||
+ | |||
+ | will decode only observations with wmonr, having positive temperature | ||
+ | and containing precipitation for 12 or 24 hours. If (like for --param) | ||
+ | the filter list consists of one criterium only, a comma must be | ||
+ | appended. | ||
To avoid the need of creating a filter file when observations for some | To avoid the need of creating a filter file when observations for some | ||
few stations are requested, you can provide the stations in a comma | few stations are requested, you can provide the stations in a comma | ||
- | separated list after option --station. | + | separated list after option --station. |
--station wmonr=01001, | --station wmonr=01001, | ||
+ | --station nationalnr=614_0050410003, | ||
--station call_sign=LF5U | --station call_sign=LF5U | ||
--station buoyid=64607, | --station buoyid=64607, | ||
+ | --station aircraft=EU3421, | ||
You cannot mix different kinds of stations this way (before ' | You cannot mix different kinds of stations this way (before ' | ||
- | choose either wmonr, call_sign | + | choose either wmonr, nationalnr, call_sign, buoy_id |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
+ | | ||
The --transform option is provided mainly to be able to use other units | The --transform option is provided mainly to be able to use other units | ||
Line 163: | Line 196: | ||
to be applied for sky not all covered by clouds, you should use NN != | to be applied for sky not all covered by clouds, you should use NN != | ||
100 instead of NN != 8 in filter file. | 100 instead of NN != 8 in filter file. | ||
+ | |||
+ | The --obstype option might be handy in some special cases, like when you | ||
+ | are interested only in the surface part of oceanographic data (then use | ||
+ | ' | ||
+ | high resolution radiosonde data (then use ' | ||
+ | when data category and/or data sub-category in the BUFR messages have | ||
+ | unusual values. | ||
</ | </ |