36 int col, row, ori = 0;
39 col = ( int ) ( -lat * 0.1 ) + 1;
41 col = 36 - ( int ) ( lat * 0.1 );
46 else if ( lat >= 0.0 )
47 row = ( int ) ( lat * 0.1 );
51 row = ( int ) ( -lat * 0.1 );
54 sprintf ( target,
"%03d", col + ori + row * 36 );
81 ia = ( int ) ( fabs ( s->
val ) * 10.0 + 0.5 );
99 strcpy ( syn->
s0.
Qc,
"5" );
101 strcpy ( syn->
s0.
Qc,
"3" );
106 strcpy ( syn->
s0.
Qc,
"7" );
108 strcpy ( syn->
s0.
Qc,
"1" );
144 ia = ( int ) ( fabs ( s->
val ) * 1000.0 + 0.5 );
214 ia = ( int ) ( fabs ( s->
val ) * 10.0 + 0.5 );
231 strcpy ( t->
a.
s1.
Qc,
"5" );
233 strcpy ( t->
a.
s1.
Qc,
"3" );
238 strcpy ( t->
a.
s1.
Qc,
"7" );
240 strcpy ( t->
a.
s1.
Qc,
"1" );
258 if ( s->
rep > 0 && s->
r->
n > 0 )
262 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_LONGITUDE
Bit mask to mark a struct bufr_subset_sequence_data having longitude.
int syn_parse_x06(struct synop_chunks *syn, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 06.
int buoy_parse_x06(struct buoy_chunks *b, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 06.
int climat_parse_x06(struct climat_chunks *c, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 06.
int temp_parse_x06(struct temp_chunks *t, struct bufr2tac_subset_state *s)
char * latlon_to_MMM(char *target, double lat, double lon)
convert latitude and longitude to a MMM string
#define DESCRIPTOR_VALUE_MISSING
Bit mask for a missing value in a struct bufr_atom_data.
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]