bufr2synop 0.24.0
|
This file includes the code for build_bufrdeco_tables binary. More...
Go to the source code of this file.
Macros | |
#define | CONFIG_H |
Functions | |
void | print_usage (void) |
int | main (int argc, char *argv[]) |
Variables | |
const char | SELF [] = "build_bufrdeco_tables" |
char | INPUT_FILE [256] |
char | TABLE_TYPE [8] |
int | IS_WMO |
int | A_FIELDS [8] = {1,2,-1,-1,-1,-1,-1,-1} |
int | B_FIELDS [8] = {3,4,5,6,7,8,9,-1} |
int | C_FIELDS [8] = {1,3,4,5,6,7,-1,-1} |
int | D_FIELDS [8] = {3,6,4,7,-1,-1,-1,-1} |
int | B_FIELDS_2 [8] = {2,3,4,5,6,7,8,-1} |
int | C_FIELDS_2 [8] = {0,2,3,4,5,6,-1,-1} |
int | D_FIELDS_2 [8] = {2,5,3,6,-1,-1,-1,-1} |
int | B_FIELDS_3 [8] = {2,3,11,4,5,6,7,-1} |
int | C_FIELDS_3 [8] = {0,2,3,4,5,6,-1,-1} |
int | D_FIELDS_3 [8] = {2,5,3,6,-1,-1,-1,-1} |
This file includes the code for build_bufrdeco_tables binary.
build_bufrdeco_tables is the tool to convert original BUFR files from ECMWF package and WMO machine readable files into the format used by the decode library bufrdeco included in this package. bufrdeco uses BUFR table files in csv format like WMO but supressing some fields from original WMO files.
Because of WMO has not released csv table files for versions prior to 18, it is needed to build them since version 13 using ECMWF table files. Version 13 is backward compatible with prior versions.
Following the ECMWF way to set the CodeFlag tables as C Tables, the original WMO CodeFlag Tables are named as C tables. Original WMO C tables with descriptors operators an A tables are no needed in this package.
Definition in file build_bufrdeco_tables.c.
#define CONFIG_H |
Definition at line 41 of file build_bufrdeco_tables.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 77 of file build_bufrdeco_tables.c.
References A_FIELDS, B_FIELDS, B_FIELDS_2, B_FIELDS_3, bufr_adjust_string(), bufr_charray_to_string(), BUFR_EXPLAINED_LENGTH, bufr_descriptor::c, C_FIELDS, C_FIELDS_2, C_FIELDS_3, CSV_MAXL, csv_quoted_string(), D_FIELDS, D_FIELDS_2, D_FIELDS_3, bufr_descriptor::f, INPUT_FILE, IS_WMO, parse_csv_line(), print_usage(), SELF, TABLE_TYPE, and uint32_t_to_descriptor().
void print_usage | ( | void | ) |
Definition at line 64 of file build_bufrdeco_tables.c.
References PACKAGE_VERSION, and SELF.
Referenced by main().
int A_FIELDS[8] = {1,2,-1,-1,-1,-1,-1,-1} |
Definition at line 48 of file build_bufrdeco_tables.c.
Referenced by main().
int B_FIELDS[8] = {3,4,5,6,7,8,9,-1} |
Definition at line 49 of file build_bufrdeco_tables.c.
Referenced by main().
int B_FIELDS_2[8] = {2,3,4,5,6,7,8,-1} |
Definition at line 53 of file build_bufrdeco_tables.c.
Referenced by main().
int B_FIELDS_3[8] = {2,3,11,4,5,6,7,-1} |
Definition at line 57 of file build_bufrdeco_tables.c.
Referenced by main().
int C_FIELDS[8] = {1,3,4,5,6,7,-1,-1} |
Definition at line 50 of file build_bufrdeco_tables.c.
Referenced by main().
int C_FIELDS_2[8] = {0,2,3,4,5,6,-1,-1} |
Definition at line 54 of file build_bufrdeco_tables.c.
Referenced by main().
int C_FIELDS_3[8] = {0,2,3,4,5,6,-1,-1} |
Definition at line 58 of file build_bufrdeco_tables.c.
Referenced by main().
int D_FIELDS[8] = {3,6,4,7,-1,-1,-1,-1} |
Definition at line 51 of file build_bufrdeco_tables.c.
Referenced by main().
int D_FIELDS_2[8] = {2,5,3,6,-1,-1,-1,-1} |
Definition at line 55 of file build_bufrdeco_tables.c.
Referenced by main().
int D_FIELDS_3[8] = {2,5,3,6,-1,-1,-1,-1} |
Definition at line 59 of file build_bufrdeco_tables.c.
Referenced by main().
char INPUT_FILE[256] |
Definition at line 45 of file build_bufrdeco_tables.c.
Referenced by main().
int IS_WMO |
Definition at line 47 of file build_bufrdeco_tables.c.
Referenced by main().
const char SELF[] = "build_bufrdeco_tables" |
Definition at line 44 of file build_bufrdeco_tables.c.
Referenced by main(), and print_usage().
char TABLE_TYPE[8] |
Definition at line 46 of file build_bufrdeco_tables.c.
Referenced by main().