37 ic = ( int ) ( P * 0.1 );
41 ic = ( int ) ( -P * 0.1 );
43 sprintf ( target,
"%03d", ic % 1000 );
52 ic = ( int ) ( P * 0.01 + 0.5 );
56 ic = ( int ) ( P * 0.1 + 0.5 );
58 sprintf ( target,
"%03d", ic % 1000 );
72 ic = ( int ) ( P * 0.1 );
73 sprintf ( target,
"%04d", ic % 10000 );
105 sprintf ( syn->
s1.
hhh,
"%03d", abs(s->
ival) % 1000 );
111 memcpy ( syn->
s1.
PPPP, aux, 4 );
118 memcpy(syn->
s1.
ppp, aux, 3);
125 memcpy ( syn->
s3.
ppp24, aux, 3 );
141 sprintf ( syn->
s1.
a,
"%1d",s->
ival );
181 strcpy ( b->
s1.
PPPP, aux );
186 sprintf ( b->
s1.
a,
"%1d",s->
ival );
192 memcpy( b->
s1.
ppp, aux, 3 );
218 if ( c == NULL || s == NULL )
269 strcpy ( c->
s1.
PPPP, aux );
274 strcpy ( c->
s2.
PPPP, aux );
299 if ( t == NULL || s == NULL )
312 if ( s->
rep > 0 && s->
r->
n > 0 )
Include header file for binary bufr2tac.
int bufr2tac_set_error(struct bufr2tac_subset_state *s, int severity, char *origin, char *explanation)
char * pascal_to_ppp(char *target, double P)
Converts pascal values (variation) into a ppp string.
char * pascal_to_pnpnpn(char *target, double P)
int climat_parse_x10(struct climat_chunks *c, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 10.
int buoy_parse_x10(struct buoy_chunks *b, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 10.
char * pascal_to_PPPP(char *target, double P)
Converts pascal values into a PPPP string.
int syn_parse_x10(struct synop_chunks *syn, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 10.
int temp_parse_x10(struct temp_chunks *t, struct bufr2tac_subset_state *s)
Parse a expanded descriptor with X = 10.
#define DESCRIPTOR_VALUE_MISSING
Bit mask for a missing value in a struct bufr_atom_data.
#define BUOY_SEC1
mask bit meaning section 1 of buoy is solicited to or parsed with success
#define CLIMAT_SEC2
mask bit meaning section 2 of climat is solicited to or parsed with success
#define CLIMAT_SEC1
mask bit meaning section 1 of climat is solicited to or parsed with success
#define SYNOP_SEC1
mask bit meaning section 1 or synop is solicited to or parsed with success
#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 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]