bufr2synop 0.24.0
|
This file includes the code to get data from a BUFR report using bufrdeco library. More...
#include "bufrdeco.h"
Go to the source code of this file.
Functions | |
void | print_usage (void) |
int | read_args (int _argc, char *_argv[]) |
read the arguments from stdio More... | |
int | set_bufrdeco_mask (struct bufrdeco *b) |
int | main (int argc, char *argv[]) |
Variables | |
struct bufrdeco | BUFR |
int | EXTRACT |
char | ENTRADA [256] |
int | PRINT_JSON_SEC0 |
int | PRINT_JSON_SEC1 |
int | PRINT_JSON_SEC2 |
int | PRINT_JSON_SEC3 |
int | PRINT_JSON_SEC4 |
int | PRINT_JSON_EXPANDED_TREE |
int | FIRST_SUBSET |
int | LAST_SUBSET |
This file includes the code to get data from a BUFR report using bufrdeco library.
Definition in file bufrdeco_json.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 188 of file bufrdeco_json.c.
References BUFR, bufrdeco_close(), bufrdeco_extract_bufr(), bufrdeco_get_target_subset_sequence_data(), bufrdeco_init(), bufrdeco_parse_tree(), bufrdeco_print_json_tree(), bufrdeco_read_bufr(), ENTRADA, bufrdeco::err, bufrdeco::error, EXTRACT, FIRST_SUBSET, LAST_SUBSET, PRINT_JSON_EXPANDED_TREE, read_args(), bufrdeco::sec3, set_bufrdeco_mask(), and bufr_sec3::subsets.
void print_usage | ( | void | ) |
Definition at line 37 of file bufrdeco_json.c.
Referenced by read_args().
int read_args | ( | int | _argc, |
char * | _argv[] | ||
) |
read the arguments from stdio
_argc | number of arguments passed |
_argv | array of arguments |
Returns 1 if succcess, -1 othewise
Definition at line 63 of file bufrdeco_json.c.
References ENTRADA, EXTRACT, FIRST_SUBSET, LAST_SUBSET, PRINT_JSON_EXPANDED_TREE, PRINT_JSON_SEC0, PRINT_JSON_SEC1, PRINT_JSON_SEC2, PRINT_JSON_SEC3, PRINT_JSON_SEC4, and print_usage().
Referenced by main().
int set_bufrdeco_mask | ( | struct bufrdeco * | b | ) |
Definition at line 165 of file bufrdeco_json.c.
References BUFRDECO_OUTPUT_JSON_EXPANDED_TREE, BUFRDECO_OUTPUT_JSON_SEC0, BUFRDECO_OUTPUT_JSON_SEC1, BUFRDECO_OUTPUT_JSON_SEC2, BUFRDECO_OUTPUT_JSON_SEC3, BUFRDECO_OUTPUT_JSON_SUBSET_DATA, bufrdeco::mask, PRINT_JSON_EXPANDED_TREE, PRINT_JSON_SEC0, PRINT_JSON_SEC1, PRINT_JSON_SEC2, PRINT_JSON_SEC3, and PRINT_JSON_SEC4.
Referenced by main().
struct bufrdeco BUFR |
Definition at line 25 of file bufrdeco_json.c.
Referenced by main().
char ENTRADA[256] |
Definition at line 27 of file bufrdeco_json.c.
Referenced by main(), and read_args().
int EXTRACT |
Definition at line 26 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), main(), and read_args().
int FIRST_SUBSET |
First subset to parse
Definition at line 34 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), main(), and read_args().
int LAST_SUBSET |
Last subset to parse
Definition at line 35 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), main(), and read_args().
int PRINT_JSON_EXPANDED_TREE |
If != 0 Prints expanded tree in json format
Definition at line 33 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), main(), read_args(), and set_bufrdeco_mask().
int PRINT_JSON_SEC0 |
If != 0 Prints Sec 0 information in json format
Definition at line 28 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), read_args(), and set_bufrdeco_mask().
int PRINT_JSON_SEC1 |
If != 0 Prints Sec 1 information in json format
Definition at line 29 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), read_args(), and set_bufrdeco_mask().
int PRINT_JSON_SEC2 |
If != 0 Prints Sec 2 information in json format
Definition at line 30 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), read_args(), and set_bufrdeco_mask().
int PRINT_JSON_SEC3 |
If != 0 Prints Sec 3 information in json format
Definition at line 31 of file bufrdeco_json.c.
Referenced by bufrtotac_read_args(), bufrtotac_set_bufrdeco_bitmask(), read_args(), and set_bufrdeco_mask().
int PRINT_JSON_SEC4 |
If != 0 Prints Sec 4 data in json format
Definition at line 32 of file bufrdeco_json.c.
Referenced by read_args(), and set_bufrdeco_mask().