bufr.pm:bufr_reencode_help

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bufr.pm:bufr_reencode_help [2019-02-16 07:40:44]
pals
bufr.pm:bufr_reencode_help [2022-05-31 09:29:31] (current)
Line 1: Line 1:
 <code> <code>
 Usage: Usage:
-      bufrencode.pl --data <data file> --metadata <metadata file> +      bufr_reencode.pl <file containing decoded BUFR message(s)
-          [--outfile <file to print encoded BUFR message to>] +           [--outfile <file to print encoded BUFR message(s) to>] 
-          [--strict_checking n] +           [--width n] 
-          [--tableformat <BUFRDC|ECCODES>+           [--strict_checking n] 
-          [--tablepath <path to BUFR tables>+           [--tableformat <BUFRDC|ECCODES>
-          [--verbose n] +           [--tablepath <path to BUFR tables>
-          [--help]+           [--verbose n] 
 +           [--help]
  
 Options: Options:
-       --help               Display Usage and explain the options. Almost +    Bufr_reencode.pl will create BUFR message(sprinted to STDOUT from 
-                            the same as consulting perldoc bufrencode.pl +    contents of input filewhich should match exactly what you would get by 
-       --outfile <filename> Will print the encoded BUFR message to <filename> +    running bufrread.pl on the final BUFR message(s).
-                            instead of STDOUT +
-       --strict_checking n  n=0 Disable strict checking of BUFR format +
-                            n=1 Issue warning if (recoverableerror in +
-                                BUFR format +
-                            n=2 (default) Croak if (recoverable) error in BUFR format. +
-                                Nothing more in this message will be encoded. +
-       --tableformat        Currently supported are BUFRDC and ECCODES (default is BUFRDC) +
-       --tablepath <path to BUFR tables> +
-                            If used, will set path to BUFR tables. If not +
-                            set, will fetch tables from the environment +
-                            variable BUFR_TABLESor if this is not set: +
-                            will use DEFAULT_TABLE_PATH_<tableformat> +
-                            hard coded in source code. +
-       --verbose n          Set verbose level to n, 0<=n<=6 (default 0). +
-                            Verbose output is sent to STDOUT, so ought to +
-                            be combined with option --outfile+
  
-  Required options: +    Normal use:
-   --metadata <metadata file>: +
-    For the metadata file, use this as a prototype and change the values as +
-    desired:+
  
-      BUFR_EDITION +         bufr_reencode.pl bufr.decoded > reencoded.bufr
-      MASTER_TABLE +
-      CENTRE  88 +
-      SUBCENTRE +
-      UPDATE_SEQUENCE_NUMBER +
-      OPTIONAL_SECTION +
-      DATA_CATEGORY +
-      INT_DATA_SUBCATEGORY +
-      LOC_DATA_SUBCATEGORY  255 +
-      MASTER_TABLE_VERSION  14 +
-      LOCAL_TABLE_VERSION +
-      YEAR  2008 +
-      MONTH  9 +
-      DAY  1 +
-      HOUR  6 +
-      MINUTE +
-      SECOND +
-      OBSERVED_DATA +
-      COMPRESSED_DATA +
-      DESCRIPTORS_UNEXPANDED  308004 012005 002002+
  
-    For BUFR edition < 4, replace the lines INT_DATA_SUBCATEGORY, +    after first having done
-    LOC_DATA_SUBCATEGORY, YEAR and SECOND with new lines DATA_SUBCATEGORY +
-    and YEAR_OF_CENTURY (the order of lines doesn't matter).+
  
-   --data <data file>: +         bufrread.pl 'BUFR filebufr.decoded 
-    For the data file, use the same format as would result if you did run on +         Edit file bufr.decoded as desired
-    the generated BUFR message+
  
-        bufrread.pl <bufr file> --data_only | cut --31+    Options (may be abbreviated, e.g. "--h" or "-h" for "--help"):
  
-    or if you use bufrread.pl with "--width n", replace 31 with n+16. For +       --outfile <filename>  Will print encoded BUFR messages to <filename> 
-    example, the file might begin with +                             instead of STDOUT 
- +       --width n             The decoded message(s) was created by using 
-          001195          Newport +                             bufrread.pl with option --width n 
-          005002            51.55 +       --strict_checking   n=0 Disable strict checking of BUFR format 
-         3  006002            -2.99 +                             n=Issue warning if (recoverable) error in 
-         4  004001             2008 +                                 BUFR format 
-    ..+                             n=(default) Croak if (recoverable) error in BUFR format
- +                                 Nothing more in this message will be encoded
-    Every time a new line starting with the number 1 is meta new subset +       --verbose n           Set verbose level to n, 0<=n<=6 (default 0)
-    will be generated in the BUFR message. Lines not starting with a number +                             Verbose output is sent to STDOUTso ought to 
-    are ignored. +                             be combined with option --outfile 
- +       --tableformat         Currently supported are BUFRDC and ECCODES (default is BUFRDC) 
-    For missing valuesuse 'missing' or stop the line after the BUFR +       --tablepath <path to BUFR tables> 
-    descriptor+                             If usedwill set path to BUFR tablesIf not set, 
- +                             will fetch tables from the environment variable 
-    Associated values should use BUFR descriptor 999999and operator +                             BUFR_TABLESor if this is not set: will use 
-    descriptors 22[2345]000 and 23[2567]000 should not have a value, neither +                             DEFAULT_TABLE_PATH_<tableformat> hard coded in source code
-    should this line be numbered, e.g. +       --help                Display Usage and explain the options used. Almost 
- +                             the same as consulting perldoc bufr_reencode.pl
-       160  011002          missing +
-            222000 +
-       161  031002              160 +
-       162  031031                +
-    ... +
- +
-    To encode a NIL subset, all delayed replication factors should be +
-    nonzero, and all other values set to missing except for the descriptors +
-    defining the station. +
- +
-    Options may be abbreviated, e.g. "--h" or "-h" for "--help"+
  
 </code> </code>
  • bufr.pm/bufr_reencode_help.txt
  • Last modified: 2022-05-31 09:29:31
  • (external edit)