|
bufr2synop 0.24.0
|
This file includes the code to test bufr to TAC libraries using bufrdeco library to decode bufr. More...
#include "bufrtotac.h"
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
Variables | |
| struct bufrdeco | BUFR |
| struct metreport | REPORT |
| struct bufr2tac_subset_state | STATE |
| struct bufr2tac_error_stack | ERRS |
| const char | SELF [] = "bufrtotac" |
| char | ERR [256] |
| char | BUFRTABLES_DIR [256] |
| char | LISTOFFILES [256] |
| char | INPUTFILE [256] |
| char | OFFSETFILE [BUFRDECO_PATH_LENGTH+8] |
| char | OUTPUTFILE [256] |
| int | VERBOSE |
| int | SHOW_SEQUENCE |
| int | DEBUG |
| int | NFILES |
| int | GTS_HEADER |
| int | XML |
| int | JSON |
| int | CSV |
| int | EXTRACT |
| int | ECMWF |
| int | HTML |
| int | NOTAC |
| int | FIRST_SUBSET |
| int | LAST_SUBSET |
| int | PRINT_WIGOS_ID |
| int | PRINT_GEO |
| int | READ_OFFSETS |
| int | WRITE_OFFSETS |
| int | USE_CACHE |
| int | SUBSET |
| int | PRINT_JSON_DATA |
| int | PRINT_JSON_SEC0 |
| int | PRINT_JSON_SEC1 |
| int | PRINT_JSON_SEC2 |
| int | PRINT_JSON_SEC3 |
| int | PRINT_JSON_EXPANDED_TREE |
| FILE * | FL |
| FILE * | OUT |
This file includes the code to test bufr to TAC libraries using bufrdeco library to decode bufr.
Definition in file bufrtotac.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 134 of file bufrtotac.c.
References gts_header::bname, BUFR, bufrdeco_close(), bufrdeco_extract_bufr(), bufrdeco_get_target_subset_sequence_data(), bufrdeco_init(), BUFRDECO_OUTPUT_HTML, bufrdeco_parse_tree(), bufrdeco_print_json_tree(), bufrdeco_print_subset_sequence_data(), bufrdeco_print_subset_sequence_data_tagged_html(), bufrdeco_print_tree(), bufrdeco_read_bufr(), bufrdeco_read_subset_offset_bits(), bufrdeco_reset(), bufrdeco_write_subset_offset_bits(), BUFRTABLES_DIR, bufrdeco::bufrtables_dir, bufrtotac_parse_subset_sequence(), bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), gts_header::center, bufr_sec3::compressed, CSV, DEBUG, gts_header::dtrel, ERR, bufrdeco::error, EXTRACT, FIRST_SUBSET, get_bufrfile_path(), GTS_HEADER, guess_gts_header(), bufrdeco::header, HTML, INPUTFILE, JSON, LAST_SUBSET, bufrdeco::mask, bufr_sec3::ndesc, NFILES, NOTAC, OFFSETFILE, gts_header::order, OUT, OUTPUTFILE, print_bufrdeco_compressed_data_references(), print_csv(), print_html(), print_json(), PRINT_JSON_EXPANDED_TREE, print_plain(), print_sec0_info(), print_sec1_info(), print_sec3_info(), print_sec4_info(), print_xml(), READ_OFFSETS, bufrdeco::refs, REPORT, bufrdeco::sec3, SELF, STATE, SUBSET, bufr_sec3::subsets, gts_header::timestamp, VERBOSE, WRITE_OFFSETS, and XML.

| struct bufrdeco BUFR |
Definition at line 89 of file bufrtotac.c.
Referenced by main().
| char BUFRTABLES_DIR[256] |
Directory for BUFR tables set by user
Definition at line 96 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int CSV |
If == 1 then output is in csv format
Definition at line 108 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int DEBUG |
Show debug information
Definition at line 103 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int ECMWF |
If == 1 then use tables from ECMWF package
Definition at line 110 of file bufrtotac.c.
| char ERR[256] |
< the name of this binary string with an error
Definition at line 95 of file bufrtotac.c.
Referenced by main().
| struct bufr2tac_error_stack ERRS |
struct to store warnings and errors
Definition at line 92 of file bufrtotac.c.
| int EXTRACT |
if != 0 then the decoder tries to extract an embebed bufr in a file seraching for a first '7777' after first 'BUFR'
Definition at line 109 of file bufrtotac.c.
Referenced by main().
| int FIRST_SUBSET |
First subset index in output. First available is 0
Definition at line 113 of file bufrtotac.c.
Referenced by main().
| FILE* FL |
Buffer to read the list of files
Definition at line 128 of file bufrtotac.c.
Referenced by get_bufrfile_path().
| int GTS_HEADER |
If == 1 GTS header have been guessed from filename
Definition at line 105 of file bufrtotac.c.
Referenced by main().
| int HTML |
If == 1 then output is in HTML format
Definition at line 111 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), and main().
| char INPUTFILE[256] |
The pathname of input file
Definition at line 98 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), get_bufrfile_path(), and main().
| int JSON |
If == 1 then output is in json format
Definition at line 107 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int LAST_SUBSET |
Last subset index in output. First available is 0
Definition at line 114 of file bufrtotac.c.
Referenced by main().
| char LISTOFFILES[256] |
The pathname of a file which includes a list of bufr files to parse
Definition at line 97 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and get_bufrfile_path().
| int NFILES |
The amount of files processed
Definition at line 104 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), get_bufrfile_path(), and main().
| int NOTAC |
if == 1 then do not decode to TAC
Definition at line 112 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| char OFFSETFILE[BUFRDECO_PATH_LENGTH+8] |
Definition at line 99 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| FILE* OUT |
Buffer to write to OUTPUTFILE
Definition at line 129 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| char OUTPUTFILE[256] |
The pathname of output file
Definition at line 100 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int PRINT_GEO |
if != 0 then print latitude, longitude and altitude
Definition at line 116 of file bufrtotac.c.
Referenced by bufrtotac_parse_subset_sequence(), and bufrtotac_read_args().
| int PRINT_JSON_DATA |
If != 0 then the data subset is in json format
Definition at line 121 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and bufrtotac_set_bufrdeco_bitmask().
| int PRINT_JSON_EXPANDED_TREE |
If != 0 Prints expanded tree in json format
Definition at line 126 of file bufrtotac.c.
Referenced by main().
| int PRINT_JSON_SEC0 |
If != 0 Prints Sec 0 information in json format
Definition at line 122 of file bufrtotac.c.
| int PRINT_JSON_SEC1 |
If != 0 Prints Sec 1 information in json format
Definition at line 123 of file bufrtotac.c.
| int PRINT_JSON_SEC2 |
If != 0 Prints Sec 2 information in json format
Definition at line 124 of file bufrtotac.c.
| int PRINT_JSON_SEC3 |
If != 0 Prints Sec 3 information in json format
Definition at line 125 of file bufrtotac.c.
| int PRINT_WIGOS_ID |
if != 0 then print wigos id in output
Definition at line 115 of file bufrtotac.c.
Referenced by bufrtotac_parse_subset_sequence(), and bufrtotac_read_args().
| int READ_OFFSETS |
if != then read bit offsets
Definition at line 117 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| struct metreport REPORT |
| const char SELF[] = "bufrtotac" |
Definition at line 94 of file bufrtotac.c.
Referenced by bufrtotac_print_usage(), bufrtotac_print_version(), and main().
| int SHOW_SEQUENCE |
Output explained sequence
Definition at line 102 of file bufrtotac.c.
Referenced by bufrtotac_read_args().
| struct bufr2tac_subset_state STATE |
Includes the info when parsing a subset sequence
Definition at line 91 of file bufrtotac.c.
Referenced by main().
| int SUBSET |
Index of subset in a BUFR being parsed
Definition at line 120 of file bufrtotac.c.
Referenced by bufrtotac_parse_subset_sequence(), and main().
| int USE_CACHE |
if != 0 then use cache of tables
Definition at line 119 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and bufrtotac_set_bufrdeco_bitmask().
| int VERBOSE |
| int WRITE_OFFSETS |
if != 0 then write bit offsets
Definition at line 118 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().
| int XML |
If == 1 then output is in xml format
Definition at line 106 of file bufrtotac.c.
Referenced by bufrtotac_read_args(), and main().