bufr2synop 0.24.0
bufrtotac.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2013-2022 by Guillermo Ballester Valor *
3 * gbv@ogimet.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20/*!
21 \file bufrtotac.h
22 \brief Include header file for binary bufrtotac
23*/
24#include "bufrdeco.h"
25#include "bufr2tac.h"
26
27extern struct bufrdeco BUFR;
30extern struct metreport REPORT;
31extern struct bufr2tac_subset_state STATE;
32extern struct bufr2tac_error_stack ERRS;
33
34extern const char SELF[];
35extern char ERR[256];
36extern char INPUTFILE[256];
37extern char OUTPUTFILE[256];
38extern char OFFSETFILE[BUFRDECO_PATH_LENGTH + 8];
39extern char BUFRTABLES_DIR[256];
40extern char LISTOFFILES[256];
41extern int NFILES;
42extern int SUBSET;
43extern int GTS_HEADER;
44extern int XML;
45extern int JSON;
46extern int CSV;
47extern int EXTRACT;
48extern int DEBUG;
49extern int VERBOSE;
50extern int SHOW_SEQUENCE;
51extern int HTML;
52extern int NOTAC;
53extern int PRINT_WIGOS_ID;
54extern int PRINT_GEO;
56extern int READ_OFFSETS;
57extern int WRITE_OFFSETS;
58extern int USE_CACHE;
59extern int PRINT_JSON_DATA;
60extern int PRINT_JSON_SEC0;
61extern int PRINT_JSON_SEC1;
62extern int PRINT_JSON_SEC2;
63extern int PRINT_JSON_SEC3;
65extern FILE *FL;
66extern FILE *OUT;
67
68// functions
69void bufrtotac_print_version( void );
70void bufrtotac_print_usage ( void );
72int bufrtotac_read_args ( int _argc, char * _argv[] );
73char * get_bufrfile_path ( char *filename, char *fileoffset, char *err );
74int bufrtotac_parse_subset_sequence ( struct metreport *m, struct bufr2tac_subset_state *st, struct bufrdeco *b,
75 char *err );
Include header file for binary bufr2tac.
Include header file for bufrdeco library.
#define BUFRDECO_PATH_LENGTH
Length for files/directory path strings.
Definition: bufrdeco.h:335
int JSON
Definition: bufrtotac.c:107
char OUTPUTFILE[256]
Definition: bufrtotac.c:100
int PRINT_JSON_EXPANDED_TREE
Definition: bufrdeco_json.c:33
int PRINT_JSON_SEC1
Definition: bufrdeco_json.c:29
int bufrtotac_parse_subset_sequence(struct metreport *m, struct bufr2tac_subset_state *st, struct bufrdeco *b, char *err)
Definition: bufrtotac_io.c:356
char ERR[256]
Definition: bufrtotac.c:95
const char SELF[]
Definition: bufrtotac.c:94
int XML
Definition: bufrtotac.c:106
struct bufrdeco_subset_sequence_data SEQ
char INPUTFILE[256]
Definition: bufrtotac.c:98
FILE * OUT
Definition: bufrtotac.c:129
int PRINT_JSON_SEC2
Definition: bufrdeco_json.c:30
int PRINT_JSON_SEC0
Definition: bufrdeco_json.c:28
int PRINT_GEO
Definition: bufrtotac.c:116
int GTS_HEADER
Definition: bufrtotac.c:105
struct bufr2tac_error_stack ERRS
Definition: bufrtotac.c:92
int NFILES
Definition: bufrtotac.c:104
int DEBUG
Definition: bufrtotac.c:103
void bufrtotac_print_usage(void)
Definition: bufrtotac_io.c:31
char * get_bufrfile_path(char *filename, char *fileoffset, char *err)
Definition: bufrtotac_io.c:419
void bufrtotac_print_version(void)
Definition: bufrtotac_io.c:124
int WRITE_OFFSETS
Definition: bufrtotac.c:118
int READ_OFFSETS
Definition: bufrtotac.c:117
char LISTOFFILES[256]
Definition: bufrtotac.c:97
int CSV
Definition: bufrtotac.c:108
struct bufr2tac_subset_state STATE
Definition: bufrtotac.c:91
int SHOW_SEQUENCE
Definition: bufrtotac.c:102
int PRINT_JSON_SEC3
Definition: bufrdeco_json.c:31
struct bufrdeco BUFR
Definition: bufrdeco_json.c:25
int PRINT_JSON_DATA
Definition: bufrtotac.c:121
FILE * FL
Definition: bufrtotac.c:128
char OFFSETFILE[BUFRDECO_PATH_LENGTH+8]
Definition: bufrtotac.c:99
int SUBSET
Definition: bufrtotac.c:120
int USE_CACHE
Definition: bufrtotac.c:119
int HTML
Definition: bufrtotac.c:111
int FIRST_SUBSET
Definition: bufrdeco_json.c:34
int NOTAC
Definition: bufrtotac.c:112
int bufrtotac_set_bufrdeco_bitmask(struct bufrdeco *b)
Set the bufrdeco struct bitmask according with readed args from shell.
Definition: bufrtotac_io.c:463
int VERBOSE
Definition: bufrnoaa.c:192
struct metreport REPORT
Definition: bufrtotac.c:90
int EXTRACT
Definition: bufrdeco_json.c:26
int bufrtotac_read_args(int _argc, char *_argv[])
Definition: bufrtotac_io.c:145
int LAST_SUBSET
Definition: bufrtotac.h:55
char BUFRTABLES_DIR[256]
Definition: bufrtotac.c:96
int PRINT_WIGOS_ID
Definition: bufrtotac.c:115
struct bufrdeco_compressed_data_references REF
Definition: update_tableD.c:41
A stack of structs bufr2tac_error.
Definition: bufr2tac.h:235
struct bufr2tac_error err[BUFR2TAC_ERROR_STACK_DIM]
Definition: bufr2tac.h:238
stores information needed to parse a sequential list of expanded descriptors for a subset
Definition: bufr2tac.h:246
Manage an array of structs bufrdeco_compressed_ref.
Definition: bufrdeco.h:668
Contains all the information for a subset in a expanded squence This is a version to use with bufrdec...
Definition: bufrdeco.h:458
This struct contains all needed data to parse and decode a BUFR file.
Definition: bufrdeco.h:965
all the information for a meteorological report in WMO text format from a BUFR file
Definition: bufr2tac.h:309