34 if ( grad >= 22.5 && grad < 67.5 )
36 else if ( grad >= 67.5 && grad < 112.5 )
38 else if ( grad >= 112.5 && grad < 157.5 )
40 else if ( grad >= 157.5 && grad < 202.5 )
42 else if ( grad >= 202.5 && grad < 247.5 )
44 else if ( grad >= 247.5 && grad < 292.5 )
46 else if ( grad >= 292.5 && grad < 337.5 )
48 else if ( ( grad >= 337.5 && grad <= 360.0 ) ||
49 ( grad >0.0 && grad < 22.5 ) )
51 else if ( grad == 0.0 )
80 ia = ( int ) ( fabs ( s->
val ) * 10.0 + 0.5 );
81 if (ia > 999 || ia < 0)
83 sprintf ( syn->
s0.
LaLaLa,
"%03d", ia );
104 strcpy ( syn->
s0.
Qc,
"5" );
106 strcpy ( syn->
s0.
Qc,
"3" );
111 strcpy ( syn->
s0.
Qc,
"7" );
113 strcpy ( syn->
s0.
Qc,
"1" );
148 ia = ( int ) ( fabs ( s->
val ) * 1000.0 + 0.5 );
223 ia = ( int ) ( fabs ( s->
val ) * 10.0 + 0.5 );
239 strcpy ( t->
a.
s1.
Qc,
"5" );
241 strcpy ( t->
a.
s1.
Qc,
"3" );
246 strcpy ( t->
a.
s1.
Qc,
"7" );
248 strcpy ( t->
a.
s1.
Qc,
"1" );
266 if ( s->
rep > 0 && s->
r->
n > 0 )
270 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_LATITUDE_SOUTH
Bit mask to mark a struct bufr_subset_sequence_data with south latitude.
#define SUBSET_MASK_LONGITUDE_WEST
Bit mask to mark a struct bufr_subset_sequence_data with west longitude.
#define SUBSET_MASK_HAVE_LATITUDE
Bit mask to mark a struct bufr_subset_sequence_data having latitude.
char * latlon_to_MMM(char *target, double lat, double lon)
convert latitude and longitude to a MMM string
int temp_parse_x05(struct temp_chunks *t, struct bufr2tac_subset_state *s)
int buoy_parse_x05(struct buoy_chunks *b, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 05.
char * grad_to_D(char *D, double grad)
Converts true direction in grads to D (code table 0700)
int climat_parse_x05(struct climat_chunks *c, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 05.
int syn_parse_x05(struct synop_chunks *syn, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 05.
#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]