bufr2synop 0.24.0
|
decodes the descriptors with X = 13 . Precipitation and hidrology More...
#include "bufr2tac.h"
Go to the source code of this file.
Functions | |
char * | prec_to_RRR (char *target, double r) |
converts a precipitation in Kg/m2 into a RRR string More... | |
char * | prec_to_RRRR (char *target, double r) |
converts a precipitation in Kg/m2 into a RRRR string (code table 3596) More... | |
char * | prec_to_RRRR24 (char *target, double r) |
converts a precipitation in Kg/m2 into a RRRR24 string More... | |
char * | prec_to_RxRxRxRx (char *target, double r) |
converts a precipitation in Kg/m2 into a RxRxRxRx string More... | |
char * | total_snow_depth_to_sss (char *target, double r) |
converts tatal snow depth in m to sss (code table 3889) More... | |
char * | recent_snow_to_ss (char *target, double r) |
converts recent snow in m to ss (code table 3870) More... | |
int | syn_parse_x13 (struct synop_chunks *syn, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 13. More... | |
int | buoy_parse_x13 (struct buoy_chunks *b, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 13. More... | |
int | climat_parse_x13 (struct climat_chunks *c, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 13. More... | |
decodes the descriptors with X = 13 . Precipitation and hidrology
Definition in file bufr2tac_x13.c.
int buoy_parse_x13 | ( | struct buoy_chunks * | b, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 13.
b | pointer to a struct buoy_chunks where to set the results |
s | pointer to a struct bufr2tac_subset_state where is stored needed information in sequential analysis |
It returns 0 if success, 1 if problems when processing. If a descriptor is not processed returns 0 anyway
Definition at line 877 of file bufr2tac_x13.c.
References bufr2tac_subset_state::a, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, bufr_atom_data::mask, and bufr_descriptor::y.
Referenced by parse_subset_as_buoy().
int climat_parse_x13 | ( | struct climat_chunks * | c, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 13.
c | pointer to a struct climat_chunks where to set the results |
s | pointer to a struct bufr2tac_subset_state where is stored needed information in sequential analysis |
It returns 0 if success, 1 if problems when processing. If a descriptor is not processed returns 0 anyway
Definition at line 909 of file bufr2tac_x13.c.
References bufr2tac_subset_state::a, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), CLIMAT_SEC1, CLIMAT_SEC2, CLIMAT_SEC4, bufr2tac_subset_state::day, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, climat_sec1::eee, climat_sec2::eee, bufr2tac_subset_state::is_normal, bufr2tac_subset_state::ival, bufr_atom_data::mask, climat_chunks::mask, bufr2tac_subset_state::more_days, prec_to_RRRR(), prec_to_RxRxRxRx(), climat_sec1::R1R1R1R1, climat_sec2::R1R1R1R1, climat_sec1::Rd, climat_sec4::RxRxRxRx, climat_chunks::s1, climat_chunks::s2, climat_chunks::s4, bufr2tac_subset_state::val, bufr_descriptor::y, and climat_sec4::yr.
Referenced by parse_subset_as_climat().
char * prec_to_RRR | ( | char * | target, |
double | r | ||
) |
converts a precipitation in Kg/m2 into a RRR string
r | the precipitation |
target | the resulting string |
Definition at line 32 of file bufr2tac_x13.c.
Referenced by syn_parse_x13().
char * prec_to_RRRR | ( | char * | target, |
double | r | ||
) |
converts a precipitation in Kg/m2 into a RRRR string (code table 3596)
r | the precipitation |
target | the resulting string |
Definition at line 64 of file bufr2tac_x13.c.
Referenced by climat_parse_x13().
char * prec_to_RRRR24 | ( | char * | target, |
double | r | ||
) |
converts a precipitation in Kg/m2 into a RRRR24 string
r | the precipitation |
target | the resulting string |
Definition at line 87 of file bufr2tac_x13.c.
Referenced by syn_parse_x13().
char * prec_to_RxRxRxRx | ( | char * | target, |
double | r | ||
) |
converts a precipitation in Kg/m2 into a RxRxRxRx string
r | the precipitation |
target | the resulting string |
Definition at line 110 of file bufr2tac_x13.c.
Referenced by climat_parse_x13().
char * recent_snow_to_ss | ( | char * | target, |
double | r | ||
) |
converts recent snow in m to ss (code table 3870)
r | recent snow depth in meters |
target | the resulting string |
Definition at line 157 of file bufr2tac_x13.c.
Referenced by syn_parse_x13().
int syn_parse_x13 | ( | struct synop_chunks * | syn, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 13.
syn | pointer to a struct synop_chunks where to set the results |
s | pointer to a struct bufr2tac_subset_state where is stored needed information in sequential analysis |
It returns 0 if success, 1 if problems when processing. If a descriptor is not processed returns 0 anyway
Definition at line 201 of file bufr2tac_x13.c.
References bufr2tac_subset_state::a, synop_sec0::A1, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), synop_sec3::d9, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, synop_chunks::e, report_date_ext::HH, hour_rounded(), synop_sec0::II, synop_sec0::iii, bufr2tac_subset_state::ival, bufr_atom_data::mask, synop_chunks::mask, data9::misc, data9::n, prec_to_RRR(), prec_to_RRRR24(), recent_snow_to_ss(), synop_sec1::RRR, synop_sec3::RRR, synop_sec5::RRR, synop_sec3::RRRR24, synop_chunks::s0, synop_chunks::s1, synop_chunks::s3, synop_chunks::s5, misc3::SpSp, synop_sec3::sss, SYNOP_NMISC, SYNOP_SEC1, SYNOP_SEC3, SYNOP_SEC5, time_period_duration(), total_snow_depth_to_sss(), synop_sec1::tr, synop_sec3::tr, synop_sec5::tr, synop_sec1::UUU, bufr2tac_subset_state::val, synop_sec3::XoXoXoXo, and bufr_descriptor::y.
Referenced by parse_subset_as_synop().
char * total_snow_depth_to_sss | ( | char * | target, |
double | r | ||
) |
converts tatal snow depth in m to sss (code table 3889)
r | recent snow depth in meters |
target | the resulting string |
Definition at line 124 of file bufr2tac_x13.c.
Referenced by syn_parse_x13().