35 strcpy ( target,
"9" );
36 else if ( grad < 6.5 )
37 strcpy ( target,
"8" );
38 else if ( grad < 8.0 )
39 strcpy ( target,
"7" );
40 else if ( grad < 10.5 )
41 strcpy ( target,
"6" );
42 else if ( grad < 13.5 )
43 strcpy ( target,
"5" );
44 else if ( grad < 17.5 )
45 strcpy ( target,
"4" );
46 else if ( grad < 25.0 )
47 strcpy ( target,
"3" );
48 else if ( grad < 40.0 )
49 strcpy ( target,
"2" );
50 else if ( grad >= 45.0 )
51 strcpy ( target,
"1" );
53 strcpy ( target,
"0" );
84 if (s->
ival > 9999 || s->
ival < -9999)
98 if ( s->
ival == 100000 )
100 strcpy ( syn->
s1.
a3,
"1" );
102 else if ( s->
ival == 92500 )
104 strcpy ( syn->
s1.
a3,
"2" );
106 else if ( s->
ival == 85000 )
108 strcpy ( syn->
s1.
a3,
"8" );
110 else if ( s->
ival == 70000 )
112 strcpy ( syn->
s1.
a3,
"7" );
114 else if ( s->
ival == 50000 )
116 strcpy ( syn->
s1.
a3,
"5" );
181 if ( s->
k_rep == ( s->
i - 1 ) )
189 s->
deep = ( int ) ( s->
val + 0.5 );
274 if ( s->
rep > 0 && s->
r->
n > 0 )
278 else if ( s->
w->
n > 0 )
Include header file for binary bufr2tac.
int bufr2tac_set_error(struct bufr2tac_subset_state *s, int severity, char *origin, char *explanation)
#define SUBSET_MASK_HAVE_ALTITUDE
Bit mask to mark a struct bufr_subset_sequence_data having altitude.
int buoy_parse_x07(struct buoy_chunks *b, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 07.
char * grad_to_ec(char *target, double grad)
Converts elevation in grads to ec (code table 1004)
int temp_parse_x07(struct temp_chunks *t, struct bufr2tac_subset_state *s)
int syn_parse_x07(struct synop_chunks *syn, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 07.
int climat_parse_x07(struct climat_chunks *c, struct bufr2tac_subset_state *s)
#define DESCRIPTOR_VALUE_MISSING
Bit mask for a missing value in a struct bufr_atom_data.
#define SYNOP_SEC3
mask bit meaning section 3 or synop is solicited to or parsed with success
stores information needed to parse a sequential list of expanded descriptors for a subset
struct temp_raw_wind_shear_data * w
struct bufr_atom_data * a
struct bufr_descriptor desc
contains all possible substrings from a synop report is parsed with success
contains all possible substrings from a synop report is parsed with success
contains all possible substrings from a synop report is parsed with success
Store the whole TEMP report.
struct temp_raw_point_data raw[TEMP_NMAX_POINTS *4]
struct temp_raw_wind_shear_point raw[TEMP_NMAX_POINTS]