bufr2synop 0.24.0
Functions
bufr2tac_mrproper.c File Reference

file with the code to clean and init structures More...

#include "bufr2tac.h"
Include dependency graph for bufr2tac_mrproper.c:

Go to the source code of this file.

Functions

void clean_syn_sec0 (struct synop_sec0 *s)
 clean a synop_sec0 struct More...
 
void clean_syn_sec1 (struct synop_sec1 *s)
 clean a synop_sec1 struct More...
 
void clean_syn_sec2 (struct synop_sec2 *s)
 clean a synop_sec2 struct More...
 
void clean_syn_sec3 (struct synop_sec3 *s)
 clean a synop_sec3 struct More...
 
void clean_syn_sec4 (struct synop_sec4 *s)
 clean a synop_sec4 struct More...
 
void clean_syn_sec5 (struct synop_sec5 *s)
 clean a synop_sec5 struct More...
 
void clean_report_date_ext (struct report_date_ext *s)
 clean a synop_ext struct More...
 
void clean_wigos_id (struct wigos_id *w)
 clean a synop_ext struct More...
 
void bufr2tac_clean_synop_chunks (struct synop_chunks *syn)
 
void clean_buoy_sec0 (struct buoy_sec0 *s)
 clean a buoy_sec0 struct More...
 
void clean_buoy_sec1 (struct buoy_sec1 *s)
 clean a buoy_sec1 struct More...
 
void clean_buoy_sec2 (struct buoy_sec2 *s)
 clean a buoy_sec2 struct More...
 
void clean_buoy_sec3 (struct buoy_sec3 *s)
 clean a buoy_sec3 struct More...
 
void clean_buoy_sec4 (struct buoy_sec4 *s)
 clean a buoy_sec4 struct More...
 
void bufr2tac_clean_buoy_chunks (struct buoy_chunks *b)
 cleans a buoy_chunks struct More...
 
void bufr2tac_clean_temp_chunks (struct temp_chunks *t)
 cleans a buoy_chunks struct More...
 
void clean_climat_sec0 (struct climat_sec0 *s)
 clean a climat_sec0 struct More...
 
void clean_climat_sec1 (struct climat_sec1 *s)
 clean a climat_sec1 struct More...
 
void clean_climat_sec2 (struct climat_sec2 *s)
 clean a climat_sec2 struct More...
 
void clean_climat_sec3 (struct climat_sec3 *s)
 clean a climat_sec3 struct More...
 
void clean_climat_sec4 (struct climat_sec4 *s)
 clean a climat_sec4 struct More...
 
void clean_climat_old (struct climat_old *s)
 clean a climat_sec4 struct More...
 
void bufr2tac_clean_climat_chunks (struct climat_chunks *c)
 cleans a climat_chunks struct More...
 
void bufr2tac_clean_metreport (struct metreport *m)
 

Detailed Description

file with the code to clean and init structures

Definition in file bufr2tac_mrproper.c.

Function Documentation

◆ bufr2tac_clean_buoy_chunks()

void bufr2tac_clean_buoy_chunks ( struct buoy_chunks b)

cleans a buoy_chunks struct

Parameters
bpointer to the struct to clean

Definition at line 178 of file bufr2tac_mrproper.c.

179{
180 b->mask = 0;
181 clean_report_date_ext ( & ( b->e ) );
182 clean_wigos_id ( & ( b->wid ) );
183 clean_buoy_sec0 ( & ( b->s0 ) );
184 clean_buoy_sec1 ( & ( b->s1 ) );
185 clean_buoy_sec2 ( & ( b->s2 ) );
186 clean_buoy_sec3 ( & ( b->s3 ) );
187 clean_buoy_sec4 ( & ( b->s4 ) );
188
189 b->error[0] = '\0';
190}
void clean_buoy_sec2(struct buoy_sec2 *s)
clean a buoy_sec2 struct
void clean_buoy_sec1(struct buoy_sec1 *s)
clean a buoy_sec1 struct
void clean_wigos_id(struct wigos_id *w)
clean a synop_ext struct
void clean_buoy_sec0(struct buoy_sec0 *s)
clean a buoy_sec0 struct
void clean_buoy_sec4(struct buoy_sec4 *s)
clean a buoy_sec4 struct
void clean_buoy_sec3(struct buoy_sec3 *s)
clean a buoy_sec3 struct
void clean_report_date_ext(struct report_date_ext *s)
clean a synop_ext struct
struct buoy_sec3 s3
Definition: metbuoy.h:204
struct wigos_id wid
Definition: metbuoy.h:200
char error[128]
Definition: metbuoy.h:206
struct buoy_sec2 s2
Definition: metbuoy.h:203
struct report_date_ext e
Definition: metbuoy.h:199
int mask
Definition: metbuoy.h:198
struct buoy_sec1 s1
Definition: metbuoy.h:202
struct buoy_sec4 s4
Definition: metbuoy.h:205
struct buoy_sec0 s0
Definition: metbuoy.h:201

References clean_buoy_sec0(), clean_buoy_sec1(), clean_buoy_sec2(), clean_buoy_sec3(), clean_buoy_sec4(), clean_report_date_ext(), clean_wigos_id(), buoy_chunks::e, buoy_chunks::error, buoy_chunks::mask, buoy_chunks::s0, buoy_chunks::s1, buoy_chunks::s2, buoy_chunks::s3, buoy_chunks::s4, and buoy_chunks::wid.

Referenced by parse_subset_as_buoy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bufr2tac_clean_climat_chunks()

void bufr2tac_clean_climat_chunks ( struct climat_chunks c)

cleans a climat_chunks struct

Parameters
cpointer to the struct to clean

Definition at line 262 of file bufr2tac_mrproper.c.

263{
264 c->mask = 0;
265 clean_report_date_ext ( & ( c->e ) );
266 clean_wigos_id ( & ( c->wid ) );
267 clean_climat_sec0 ( & ( c->s0 ) );
268 clean_climat_sec1 ( & ( c->s1 ) );
269 clean_climat_sec2 ( & ( c->s2 ) );
270 clean_climat_sec3 ( & ( c->s3 ) );
271 clean_climat_sec4 ( & ( c->s4 ) );
272 clean_climat_old ( & ( c->o ) );
273 c->error[0] = '\0';
274}
void clean_climat_old(struct climat_old *s)
clean a climat_sec4 struct
void clean_climat_sec1(struct climat_sec1 *s)
clean a climat_sec1 struct
void clean_climat_sec0(struct climat_sec0 *s)
clean a climat_sec0 struct
void clean_climat_sec2(struct climat_sec2 *s)
clean a climat_sec2 struct
void clean_climat_sec3(struct climat_sec3 *s)
clean a climat_sec3 struct
void clean_climat_sec4(struct climat_sec4 *s)
clean a climat_sec4 struct
struct climat_old o
Definition: metclimat.h:222
struct climat_sec4 s4
Definition: metclimat.h:221
struct report_date_ext e
Definition: metclimat.h:215
struct climat_sec1 s1
Definition: metclimat.h:218
struct climat_sec0 s0
Definition: metclimat.h:217
struct wigos_id wid
Definition: metclimat.h:216
char error[128]
Definition: metclimat.h:223
struct climat_sec2 s2
Definition: metclimat.h:219
struct climat_sec3 s3
Definition: metclimat.h:220

References clean_climat_old(), clean_climat_sec0(), clean_climat_sec1(), clean_climat_sec2(), clean_climat_sec3(), clean_climat_sec4(), clean_report_date_ext(), clean_wigos_id(), climat_chunks::e, climat_chunks::error, climat_chunks::mask, climat_chunks::o, climat_chunks::s0, climat_chunks::s1, climat_chunks::s2, climat_chunks::s3, climat_chunks::s4, and climat_chunks::wid.

Referenced by parse_subset_as_climat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bufr2tac_clean_metreport()

void bufr2tac_clean_metreport ( struct metreport m)

Definition at line 276 of file bufr2tac_mrproper.c.

277{
278 if (m != NULL)
279 memset(m, 0, sizeof (struct metreport));
280}
all the information for a meteorological report in WMO text format from a BUFR file
Definition: bufr2tac.h:309

Referenced by bufrtotac_parse_subset_sequence().

Here is the caller graph for this function:

◆ bufr2tac_clean_synop_chunks()

void bufr2tac_clean_synop_chunks ( struct synop_chunks syn)

Definition at line 104 of file bufr2tac_mrproper.c.

105{
106 syn->mask = 0;
107 clean_report_date_ext ( & ( syn->e ) );
108 clean_wigos_id ( & ( syn->wid ) );
109 clean_syn_sec0 ( & ( syn->s0 ) );
110 clean_syn_sec1 ( & ( syn->s1 ) );
111 clean_syn_sec2 ( & ( syn->s2 ) );
112 clean_syn_sec3 ( & ( syn->s3 ) );
113 clean_syn_sec5 ( & ( syn->s5 ) );
114
115 // default
116 strcpy ( syn->s0.iw,"/" );
117 strcpy ( syn->s1.ir,"/" );
118 strcpy ( syn->s1.ix,"/" );
119 strcpy ( syn->s1.h,"/" );
120 strcpy ( syn->s1.VV,"//" );
121 strcpy ( syn->s1.N,"/" );
122 strcpy ( syn->s1.dd,"//" );
123 strcpy ( syn->s1.ff,"//" );
124
125 syn->error[0] = '\0';
126}
void clean_syn_sec2(struct synop_sec2 *s)
clean a synop_sec2 struct
void clean_syn_sec1(struct synop_sec1 *s)
clean a synop_sec1 struct
void clean_syn_sec0(struct synop_sec0 *s)
clean a synop_sec0 struct
void clean_syn_sec5(struct synop_sec5 *s)
clean a synop_sec5 struct
void clean_syn_sec3(struct synop_sec3 *s)
clean a synop_sec3 struct
struct synop_sec1 s1
Definition: metsynop.h:298
struct synop_sec2 s2
Definition: metsynop.h:299
struct synop_sec3 s3
Definition: metsynop.h:300
struct wigos_id wid
Definition: metsynop.h:296
char error[128]
Definition: metsynop.h:303
struct synop_sec5 s5
Definition: metsynop.h:302
struct report_date_ext e
Definition: metsynop.h:295
struct synop_sec0 s0
Definition: metsynop.h:297
char iw[2]
Definition: metsynop.h:100
char ix[2]
Definition: metsynop.h:124
char ff[4]
Definition: metsynop.h:129
char ir[2]
Definition: metsynop.h:123
char h[2]
Definition: metsynop.h:125
char N[2]
Definition: metsynop.h:127
char VV[4]
Definition: metsynop.h:126
char dd[4]
Definition: metsynop.h:128

References clean_report_date_ext(), clean_syn_sec0(), clean_syn_sec1(), clean_syn_sec2(), clean_syn_sec3(), clean_syn_sec5(), clean_wigos_id(), synop_sec1::dd, synop_chunks::e, synop_chunks::error, synop_sec1::ff, synop_sec1::h, synop_sec1::ir, synop_sec0::iw, synop_sec1::ix, synop_chunks::mask, synop_sec1::N, synop_chunks::s0, synop_chunks::s1, synop_chunks::s2, synop_chunks::s3, synop_chunks::s5, synop_sec1::VV, and synop_chunks::wid.

Referenced by parse_subset_as_synop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bufr2tac_clean_temp_chunks()

void bufr2tac_clean_temp_chunks ( struct temp_chunks t)

cleans a buoy_chunks struct

Parameters
tpointer to the struct to clean

Definition at line 197 of file bufr2tac_mrproper.c.

198{
199 memset ( t, 0, sizeof ( struct temp_chunks ) );
200}
Store the whole TEMP report.
Definition: mettemp.h:511

Referenced by parse_subset_as_temp().

Here is the caller graph for this function:

◆ clean_buoy_sec0()

void clean_buoy_sec0 ( struct buoy_sec0 s)

clean a buoy_sec0 struct

Parameters
spointer to the buoy_sec0 struct

Definition at line 132 of file bufr2tac_mrproper.c.

133{
134 memset ( s, 0, sizeof ( struct buoy_sec0 ) );
135}
contains all possible substrings from section 0 when a report is parsed with success
Definition: metbuoy.h:65

Referenced by bufr2tac_clean_buoy_chunks().

Here is the caller graph for this function:

◆ clean_buoy_sec1()

void clean_buoy_sec1 ( struct buoy_sec1 s)

clean a buoy_sec1 struct

Parameters
spointer to the buoy_sec1 struct

Definition at line 141 of file bufr2tac_mrproper.c.

142{
143 memset ( s, 0, sizeof ( struct buoy_sec1 ) );
144}
contains all possible substrings from section 1 when a report is parsed with success
Definition: metbuoy.h:90

Referenced by bufr2tac_clean_buoy_chunks().

Here is the caller graph for this function:

◆ clean_buoy_sec2()

void clean_buoy_sec2 ( struct buoy_sec2 s)

clean a buoy_sec2 struct

Parameters
spointer to the buoy_sec2 struct

Definition at line 150 of file bufr2tac_mrproper.c.

151{
152 memset ( s, 0, sizeof ( struct buoy_sec2 ) );
153}
contains all possible substrings from section 2 when a report is parsed with success
Definition: metbuoy.h:111

Referenced by bufr2tac_clean_buoy_chunks().

Here is the caller graph for this function:

◆ clean_buoy_sec3()

void clean_buoy_sec3 ( struct buoy_sec3 s)

clean a buoy_sec3 struct

Parameters
spointer to the buoy_sec3 struct

Definition at line 159 of file bufr2tac_mrproper.c.

160{
161 memset ( s, 0, sizeof ( struct buoy_sec3 ) );
162}
contains all possible substrings from section 3 when a report is parsed with success
Definition: metbuoy.h:148

Referenced by bufr2tac_clean_buoy_chunks().

Here is the caller graph for this function:

◆ clean_buoy_sec4()

void clean_buoy_sec4 ( struct buoy_sec4 s)

clean a buoy_sec4 struct

Parameters
spointer to the buoy_sec3 struct

Definition at line 168 of file bufr2tac_mrproper.c.

169{
170 memset ( s, 0, sizeof ( struct buoy_sec4 ) );
171}
contains all possible substrings from section 4 when a report is parsed with success
Definition: metbuoy.h:162

Referenced by bufr2tac_clean_buoy_chunks().

Here is the caller graph for this function:

◆ clean_climat_old()

void clean_climat_old ( struct climat_old s)

clean a climat_sec4 struct

Parameters
spointer to the climat_old struct

Definition at line 251 of file bufr2tac_mrproper.c.

252{
253 memset ( s, 0, sizeof ( struct climat_old ) );
254}
contains all possible substrings from old CLIMAT format when a report is parsed with success
Definition: metclimat.h:196

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_climat_sec0()

void clean_climat_sec0 ( struct climat_sec0 s)

clean a climat_sec0 struct

Parameters
spointer to the climat_sec0 struct

Definition at line 206 of file bufr2tac_mrproper.c.

207{
208 memset ( s, 0, sizeof ( struct climat_sec0 ) );
209}
contains all possible substrings from section 0 when a report is parsed with success
Definition: metclimat.h:69

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_climat_sec1()

void clean_climat_sec1 ( struct climat_sec1 s)

clean a climat_sec1 struct

Parameters
spointer to the climat_sec1 struct

Definition at line 215 of file bufr2tac_mrproper.c.

216{
217 memset ( s, 0, sizeof ( struct climat_sec1 ) );
218}
contains all possible substrings from section 1 when a report is parsed with success
Definition: metclimat.h:81

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_climat_sec2()

void clean_climat_sec2 ( struct climat_sec2 s)

clean a climat_sec2 struct

Parameters
spointer to the climat_sec2 struct

Definition at line 224 of file bufr2tac_mrproper.c.

225{
226 memset ( s, 0, sizeof ( struct climat_sec2 ) );
227}
contains all possible substrings from section 2 when a report is parsed with success
Definition: metclimat.h:110

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_climat_sec3()

void clean_climat_sec3 ( struct climat_sec3 s)

clean a climat_sec3 struct

Parameters
spointer to the climat_sec3 struct

Definition at line 233 of file bufr2tac_mrproper.c.

234{
235 memset ( s, 0, sizeof ( struct climat_sec3 ) );
236}
contains all possible substrings from section 3 when a report is parsed with success
Definition: metclimat.h:138

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_climat_sec4()

void clean_climat_sec4 ( struct climat_sec4 s)

clean a climat_sec4 struct

Parameters
spointer to the climat_sec4 struct

Definition at line 242 of file bufr2tac_mrproper.c.

243{
244 memset ( s, 0, sizeof ( struct climat_sec4 ) );
245}
contains all possible substrings from section 4 when a report is parsed with success
Definition: metclimat.h:167

Referenced by bufr2tac_clean_climat_chunks().

Here is the caller graph for this function:

◆ clean_report_date_ext()

void clean_report_date_ext ( struct report_date_ext s)

clean a synop_ext struct

Parameters
spointer to the synop_ext struct

Definition at line 85 of file bufr2tac_mrproper.c.

86{
87 memset ( s, 0, sizeof ( struct report_date_ext ) );
88}
contains extensions, not in wmo. Date/time UTC information
Definition: metcommon.h:32

Referenced by bufr2tac_clean_buoy_chunks(), bufr2tac_clean_climat_chunks(), and bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_syn_sec0()

void clean_syn_sec0 ( struct synop_sec0 s)

clean a synop_sec0 struct

Parameters
spointer to the synop_sec0 struct

Definition at line 30 of file bufr2tac_mrproper.c.

31{
32 memset ( s, 0, sizeof ( struct synop_sec0 ) );
33}
contains all possible substrings from section 0 when a report is parsed with success
Definition: metsynop.h:91

Referenced by bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_syn_sec1()

void clean_syn_sec1 ( struct synop_sec1 s)

clean a synop_sec1 struct

Parameters
spointer to the synop_sec1 struct

Definition at line 39 of file bufr2tac_mrproper.c.

40{
41 memset ( s, 0, sizeof ( struct synop_sec1 ) );
42}
contains all possible substrings from section 1 when a report is parsed with success
Definition: metsynop.h:122

Referenced by bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_syn_sec2()

void clean_syn_sec2 ( struct synop_sec2 s)

clean a synop_sec2 struct

Parameters
spointer to the synop_sec2 struct

Definition at line 48 of file bufr2tac_mrproper.c.

49{
50 memset ( s, 0, sizeof ( struct synop_sec2 ) );
51}
contains all possible substrings from section 2 when a report is parsed with success (still incomplet...
Definition: metsynop.h:164

Referenced by bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_syn_sec3()

void clean_syn_sec3 ( struct synop_sec3 s)

clean a synop_sec3 struct

Parameters
spointer to the synop_sec3 struct

Definition at line 57 of file bufr2tac_mrproper.c.

58{
59 memset ( s, 0, sizeof ( struct synop_sec3 ) );
60}
contains most of substrings from section 3 when a report is parsed with success
Definition: metsynop.h:221

Referenced by bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_syn_sec4()

void clean_syn_sec4 ( struct synop_sec4 s)

clean a synop_sec4 struct

Parameters
spointer to the synop_sec4 struct

Definition at line 66 of file bufr2tac_mrproper.c.

67{
68 memset ( s, 0, sizeof ( struct synop_sec4 ) );
69}
contains some of substrings from section 4 when a report is parsed with success
Definition: metsynop.h:268

◆ clean_syn_sec5()

void clean_syn_sec5 ( struct synop_sec5 s)

clean a synop_sec5 struct

Parameters
spointer to the synop_sec5 struct

Definition at line 75 of file bufr2tac_mrproper.c.

76{
77 memset ( s, 0, sizeof ( struct synop_sec5 ) );
78}
contains some of substrings from section 5 when a report is parsed with success
Definition: metsynop.h:283

Referenced by bufr2tac_clean_synop_chunks().

Here is the caller graph for this function:

◆ clean_wigos_id()

void clean_wigos_id ( struct wigos_id w)

clean a synop_ext struct

Parameters
wpointer to the wigos_id struct

Definition at line 94 of file bufr2tac_mrproper.c.

95{
96 memset ( w, 0, sizeof ( struct wigos_id ) );
97}
WIGOS station identifier.
Definition: metcommon.h:46

Referenced by bufr2tac_clean_buoy_chunks(), bufr2tac_clean_climat_chunks(), and bufr2tac_clean_synop_chunks().

Here is the caller graph for this function: