bufr2synop 0.24.0
|
decodes the descriptors with X = 04 (date and time) More...
#include "bufr2tac.h"
Go to the source code of this file.
Functions | |
int | time_period_duration (struct bufr2tac_subset_state *s) |
Get time period duration in seconds. More... | |
int | hour_rounded (struct synop_chunks *syn) |
Get the rounded hour of a given date. More... | |
int | syn_parse_x04 (struct synop_chunks *syn, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 04. More... | |
int | buoy_parse_x04 (struct buoy_chunks *b, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 04. More... | |
int | climat_parse_x04 (struct climat_chunks *c, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 04. More... | |
int | temp_parse_x04 (struct temp_chunks *t, struct bufr2tac_subset_state *s) |
Parse a expanded descriptor with X = 04. More... | |
decodes the descriptors with X = 04 (date and time)
Definition in file bufr2tac_x04.c.
int buoy_parse_x04 | ( | struct buoy_chunks * | b, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 04.
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 254 of file bufr2tac_x04.c.
References bufr2tac_subset_state::a, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), report_date_ext::DD, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, buoy_chunks::e, report_date_ext::HH, bufr2tac_subset_state::i, bufr2tac_subset_state::itval, bufr2tac_subset_state::ival, bufr2tac_subset_state::jtval, bufr2tac_subset_state::k_itval, bufr2tac_subset_state::k_jtval, bufr_atom_data::mask, bufr2tac_subset_state::mask, report_date_ext::MM, report_date_ext::mm, SUBSET_MASK_HAVE_DAY, SUBSET_MASK_HAVE_HOUR, SUBSET_MASK_HAVE_MINUTE, SUBSET_MASK_HAVE_MONTH, SUBSET_MASK_HAVE_YEAR, bufr_descriptor::y, and report_date_ext::YYYY.
Referenced by parse_subset_as_buoy().
int climat_parse_x04 | ( | struct climat_chunks * | c, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 04.
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 405 of file bufr2tac_x04.c.
References bufr2tac_subset_state::a, bufr2tac_subset_state::a1, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), CLIMAT_SEC0, CLIMAT_SEC1, CLIMAT_SEC2, CLIMAT_SEC4, bufr2tac_subset_state::day, report_date_ext::DD, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, bufr2tac_subset_state::dift, climat_chunks::e, climat_sec4::GnGn, climat_sec4::GxGx, report_date_ext::HH, bufr2tac_subset_state::i, bufr2tac_subset_state::is_normal, bufr2tac_subset_state::isq_val, bufr2tac_subset_state::ival, climat_sec0::JJJ, bufr_atom_data::mask, bufr2tac_subset_state::mask, climat_chunks::mask, climat_sec0::MM, report_date_ext::MM, report_date_ext::mm, bufr2tac_subset_state::month, bufr2tac_subset_state::more_days, bufr2tac_subset_state::nday, climat_sec1::nrnr, climat_sec2::nrnr, climat_chunks::s0, climat_chunks::s1, climat_chunks::s2, climat_chunks::s4, SUBSET_MASK_HAVE_DAY, SUBSET_MASK_HAVE_HOUR, SUBSET_MASK_HAVE_MINUTE, SUBSET_MASK_HAVE_MONTH, SUBSET_MASK_HAVE_YEAR, bufr_atom_data::val, bufr_descriptor::x, bufr_descriptor::y, climat_sec2::YbYb, climat_sec2::YcYc, and report_date_ext::YYYY.
Referenced by parse_subset_as_climat().
int hour_rounded | ( | struct synop_chunks * | syn | ) |
Get the rounded hour of a given date.
syn | pointer to the synop_chunks struct |
It returns the rounded hour if >= 0. If < 0 problems
Definition at line 78 of file bufr2tac_x04.c.
References report_date_ext::DD, synop_chunks::e, report_date_ext::HH, report_date_ext::MM, report_date_ext::mm, and report_date_ext::YYYY.
Referenced by syn_parse_x13().
int syn_parse_x04 | ( | struct synop_chunks * | syn, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 04.
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 110 of file bufr2tac_x04.c.
References bufr2tac_subset_state::a, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), report_date_ext::DD, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, synop_chunks::e, report_date_ext::HH, bufr2tac_subset_state::i, bufr2tac_subset_state::itmask, bufr2tac_subset_state::itval, bufr2tac_subset_state::ival, bufr2tac_subset_state::jtmask, bufr2tac_subset_state::jtval, bufr2tac_subset_state::k_itval, bufr2tac_subset_state::k_jtval, bufr_atom_data::mask, bufr2tac_subset_state::mask, report_date_ext::MM, report_date_ext::mm, SUBSET_MASK_HAVE_DAY, SUBSET_MASK_HAVE_HOUR, SUBSET_MASK_HAVE_MINUTE, SUBSET_MASK_HAVE_MONTH, SUBSET_MASK_HAVE_YEAR, bufr_descriptor::y, and report_date_ext::YYYY.
Referenced by parse_subset_as_synop().
int temp_parse_x04 | ( | struct temp_chunks * | t, |
struct bufr2tac_subset_state * | s | ||
) |
Parse a expanded descriptor with X = 04.
t | pointer to a struct temp_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 575 of file bufr2tac_x04.c.
References bufr2tac_subset_state::a, temp_chunks::a, temp_chunks::b, BUFR2TAC_DEBUG_LEVEL, bufr2tac_set_error(), temp_chunks::c, temp_chunks::d, report_date_ext::DD, bufr_atom_data::desc, DESCRIPTOR_VALUE_MISSING, temp_raw_point_data::dt, temp_raw_wind_shear_point::dt, temp_a::e, temp_b::e, temp_c::e, temp_d::e, temp_raw_point_data::flags, temp_sec7::GG, temp_sec7::gg, report_date_ext::HH, bufr2tac_subset_state::itval, bufr2tac_subset_state::ival, bufr_atom_data::mask, bufr2tac_subset_state::mask, report_date_ext::MM, report_date_ext::mm, temp_raw_data::n, temp_raw_wind_shear_data::n, bufr2tac_subset_state::r, temp_raw_data::raw, temp_raw_wind_shear_data::raw, RAW_TEMP_NMAX_POINTS, bufr2tac_subset_state::rep, temp_a::s7, temp_b::s7, temp_c::s7, temp_d::s7, report_date_ext::ss, SUBSET_MASK_HAVE_DAY, SUBSET_MASK_HAVE_HOUR, SUBSET_MASK_HAVE_MINUTE, SUBSET_MASK_HAVE_MONTH, SUBSET_MASK_HAVE_SECOND, SUBSET_MASK_HAVE_YEAR, bufr2tac_subset_state::w, bufr_descriptor::y, and report_date_ext::YYYY.
Referenced by parse_subset_as_temp().
int time_period_duration | ( | struct bufr2tac_subset_state * | s | ) |
Get time period duration in seconds.
s | pinter to struct bufr2tac_subset_state |
Returns -1 if no duration is computed. Otherwise returns time duration in seconds
Definition at line 33 of file bufr2tac_x04.c.
References DESCRIPTOR_VALUE_MISSING, bufr2tac_subset_state::itmask, bufr2tac_subset_state::itval, bufr2tac_subset_state::jtmask, bufr2tac_subset_state::jtval, bufr2tac_subset_state::k_itval, and bufr2tac_subset_state::k_jtval.
Referenced by syn_parse_x12(), syn_parse_x13(), and syn_parse_x14().