bufr2synop 0.24.0
|
This file includes the code to extract BUFR messages from NOAA bin files. More...
#include "bufrnoaa.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
int | STAGE |
int | SELECT |
int | INDIVIDUAL |
int | COLECT |
int | VERBOSE |
int | LISTF |
unsigned char | BUFR [BUFRLEN] |
unsigned char | BUF [BLEN] |
char | ENTRADA [256] |
char | SEL [64] |
char | SELS [64] |
char | SELU [64] |
char | SELO [64] |
char | PREFIX [64] |
char | HEADER_MARK |
struct stat | INSTAT |
char | OWN [] = "bufrnoaa" |
char | SEP [] = "\r\r\n" |
char | FINAL_SEP [4] |
This file includes the code to extract BUFR messages from NOAA bin files.
*.bin files have the following sequence header: in the form '****NNNNNNN**** new line Name: This is taken as name \r\r
bufr report \r\r
First, it parses bufr reports from file with path included with argument -i Then for every report several decisions are taken depending on arguments 1) Select or discard depending on the type of BUFR To select we have to set our choice with the aid of argument -T. The argument supplied with '-t' will have one or more chars matching with T2 indexes (see below). As example, '-T USO' will select all the BUFR messages with T2 as U (upper level), S (surface) or O (oceanographic) If no '-t' argument is set it means NO SELECCTION i.e. we almost do nothing 2) For every selected BUFR message we can do any of these task, (they are not excluyent)
Definition in file bufrnoaa.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 210 of file bufrnoaa.c.
References BLEN, BUF, BUFR, bufr_is_selected(), BUFRLEN, COLECT, date_mtime_from_stat(), ENTRADA, FINAL_SEP, HEADER_MARK, INDIVIDUAL, INSTAT, is_bufr(), is_endb(), is_head_custom(), LISTF, mtime_from_stat(), OWN, PREFIX, read_args(), STAGE, timeval_substract(), and VERBOSE.
unsigned char BUF[BLEN] |
Definition at line 195 of file bufrnoaa.c.
Referenced by main().
unsigned char BUFR[BUFRLEN] |
Definition at line 194 of file bufrnoaa.c.
Referenced by main().
int COLECT |
Definition at line 192 of file bufrnoaa.c.
Referenced by main(), and read_args().
char ENTRADA[256] |
Definition at line 196 of file bufrnoaa.c.
Referenced by main().
char FINAL_SEP[4] |
Definition at line 207 of file bufrnoaa.c.
Referenced by main(), and read_args().
char HEADER_MARK |
Header mark character who is repeated four times at the begining
Definition at line 202 of file bufrnoaa.c.
Referenced by main(), and read_args().
int INDIVIDUAL |
Definition at line 192 of file bufrnoaa.c.
Referenced by main(), and read_args().
struct stat INSTAT |
Definition at line 204 of file bufrnoaa.c.
Referenced by main().
int LISTF |
if != then a list of messages in bin file is generated
Definition at line 193 of file bufrnoaa.c.
Referenced by main(), and read_args().
char OWN[] = "bufrnoaa" |
Definition at line 205 of file bufrnoaa.c.
Referenced by main(), print_usage(), print_version(), and read_args().
char PREFIX[64] |
Definition at line 201 of file bufrnoaa.c.
Referenced by main(), and read_args().
char SEL[64] |
Selection string for argument -T according with T1
Definition at line 197 of file bufrnoaa.c.
int SELECT |
Definition at line 192 of file bufrnoaa.c.
Referenced by read_args().
char SELO[64] |
Selection string for A1 when T2='O' (argument -O)
Definition at line 200 of file bufrnoaa.c.
Referenced by bufr_is_selected(), and read_args().
char SELS[64] |
Selection string for A1 when T2='S' (argument -S)
Definition at line 198 of file bufrnoaa.c.
Referenced by bufr_is_selected(), and read_args().
char SELU[64] |
Selection string for A1 when T2='U' (argument -U)
Definition at line 199 of file bufrnoaa.c.
Referenced by bufr_is_selected(), and read_args().
char SEP[] = "\r\r\n" |
Definition at line 206 of file bufrnoaa.c.
Referenced by read_args().
int STAGE |
Definition at line 192 of file bufrnoaa.c.
Referenced by main().
int VERBOSE |
Definition at line 192 of file bufrnoaa.c.
Referenced by bufrtotac_read_args(), main(), and read_args().