bufr2synop 0.24.0
|
file with the code to print the results in case of temp reposrt More...
#include "bufr2tac.h"
Go to the source code of this file.
Functions | |
int | print_temp_raw_data (struct temp_raw_data *r) |
Prints for debug a struct temp_raw_data. More... | |
int | print_temp_raw_wind_shear_data (struct temp_raw_wind_shear_data *w) |
Prints for debug a struct temp_raw_data. More... | |
size_t | print_temp_a_sec1 (char **sec1, size_t lmax, struct temp_chunks *t) |
Prints the section 1 of part A of a TEMP report. More... | |
size_t | print_temp_a_sec2 (char **sec2, size_t lmax, struct temp_chunks *t) |
Prints the section 2 of part A of a TEMP report. More... | |
size_t | print_temp_a_sec3 (char **sec3, size_t lmax, struct temp_chunks *t) |
Prints the section 3 of part A of a TEMP report. More... | |
size_t | print_temp_a_sec4 (char **sec4, size_t lmax, struct temp_chunks *t) |
Prints the section 4 of part A of a TEMP report. More... | |
size_t | print_temp_a_sec7 (char **sec7, size_t lmax, struct temp_chunks *t) |
Prints the section 7 of part A of a TEMP report. More... | |
int | print_temp_a (struct metreport *m) |
Prints the part A of a TEMP report into a string. More... | |
size_t | print_temp_b_sec1 (char **sec1, size_t lmax, struct temp_chunks *t) |
Prints the section 1 of part B of a TEMP report. More... | |
size_t | print_temp_b_sec5 (char **sec5, size_t lmax, struct temp_chunks *t) |
Prints the section 5 of part B of a TEMP report. More... | |
size_t | print_temp_b_sec6 (char **sec6, size_t lmax, struct temp_chunks *t) |
Prints the section 6 of part B of a TEMP report. More... | |
size_t | print_temp_b_sec7 (char **sec7, size_t lmax, struct temp_chunks *t) |
Prints the section 7 of part B of a TEMP report. More... | |
size_t | print_temp_b_sec8 (char **sec8, size_t lmax, struct temp_chunks *t) |
Prints the section 8 of part B of a TEMP report. More... | |
int | print_temp_b (struct metreport *m) |
Prints the part B of a TEMP report into a string. More... | |
size_t | print_temp_c_sec1 (char **sec1, size_t lmax, struct temp_chunks *t) |
Prints the section 1 of part C of a TEMP report. More... | |
size_t | print_temp_c_sec2 (char **sec2, size_t lmax, struct temp_chunks *t) |
Prints the section 2 of part C of a TEMP report. More... | |
size_t | print_temp_c_sec3 (char **sec3, size_t lmax, struct temp_chunks *t) |
Prints the section 3 of part C of a TEMP report. More... | |
size_t | print_temp_c_sec4 (char **sec4, size_t lmax, struct temp_chunks *t) |
Prints the section 4 of part C of a TEMP report. More... | |
size_t | print_temp_c_sec7 (char **sec7, size_t lmax, struct temp_chunks *t) |
Prints the section 7 of part C of a TEMP report. More... | |
int | print_temp_c (struct metreport *m) |
Prints the part C of a TEMP report into a string. More... | |
size_t | print_temp_d_sec1 (char **sec1, size_t lmax, struct temp_chunks *t) |
Prints the section 1 of part D of a TEMP report. More... | |
size_t | print_temp_d_sec5 (char **sec5, size_t lmax, struct temp_chunks *t) |
Prints the section 5 of part D of a TEMP report. More... | |
size_t | print_temp_d_sec6 (char **sec6, size_t lmax, struct temp_chunks *t) |
Prints the section 6 of part D of a TEMP report. More... | |
size_t | print_temp_d_sec7 (char **sec7, size_t lmax, struct temp_chunks *t) |
Prints the section 7 of part D of a TEMP report. More... | |
int | print_temp_d (struct metreport *m) |
Prints the part D of a TEMP report into a string. More... | |
int | print_temp_report (struct metreport *m) |
print the four parts of a decoded TEMP report from a BUFR file into strings More... | |
file with the code to print the results in case of temp reposrt
Definition in file bufr2tac_print_temp.c.
int print_temp_a | ( | struct metreport * | m | ) |
Prints the part A of a TEMP report into a string.
m | pointer to struct metreport where are both target and source |
If OK returns 0, otherwise 1
Definition at line 346 of file bufr2tac_print_temp.c.
References metreport::alphanum, temp_chunks::c, PRINT_BITMASK_GEO, PRINT_BITMASK_WIGOS, print_geo(), metreport::print_mask, print_temp_a_sec1(), print_temp_a_sec2(), print_temp_a_sec3(), print_temp_a_sec4(), print_temp_a_sec7(), print_wigos_id(), temp_chunks::t, and metreport::temp.
Referenced by print_temp_report().
size_t print_temp_a_sec1 | ( | char ** | sec1, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 1 of part A of a TEMP report.
sec1 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec1
Definition at line 145 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_acd_sec1::D_D, met_datetime::datime, temp_acd_sec1::h0h0h0h0, temp_acd_sec1::id, temp_acd_sec1::II, temp_acd_sec1::iii, temp_acd_sec1::im, temp_acd_sec1::LaLaLa, temp_acd_sec1::LoLoLoLo, temp_acd_sec1::MiMi, temp_acd_sec1::MjMj, temp_acd_sec1::MMM, temp_acd_sec1::Qc, temp_a::s1, temp_chunks::t, temp_acd_sec1::Ula, temp_acd_sec1::Ulo, and temp_acd_sec1::YYGG.
Referenced by print_temp_a().
size_t print_temp_a_sec2 | ( | char ** | sec2, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 2 of part A of a TEMP report.
sec2 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec2
Definition at line 211 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_main_level_data::DnDn, temp_std_level_data::DnDn, temp_main_level_data::dndnfnfnfn, temp_std_level_data::dndnfnfnfn, temp_std_level_data::hnhnhn, temp_a_sec2::lev0, temp_a_sec2::n, temp_std_level_data::PnPn, temp_main_level_data::PnPnPn, temp_a::s2, temp_a_sec2::std, temp_main_level_data::TnTnTan, and temp_std_level_data::TnTnTan.
Referenced by print_temp_a().
size_t print_temp_a_sec3 | ( | char ** | sec3, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 3 of part A of a TEMP report.
sec3 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec3
Definition at line 242 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_main_level_data::DnDn, temp_main_level_data::dndnfnfnfn, temp_ac_sec3::n, temp_main_level_data::PnPnPn, temp_a::s3, temp_main_level_data::TnTnTan, and temp_ac_sec3::trop.
Referenced by print_temp_a().
size_t print_temp_a_sec4 | ( | char ** | sec4, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 4 of part A of a TEMP report.
sec4 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec1
Definition at line 276 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_max_wind_data::dmdmfmfmfm, temp_ac_sec4::n, temp_max_wind_data::no_last_wind, temp_max_wind_data::PmPmPm, temp_a::s4, temp_max_wind_data::vava, temp_max_wind_data::vbvb, and temp_ac_sec4::windx.
Referenced by print_temp_a().
size_t print_temp_a_sec7 | ( | char ** | sec7, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 7 of part A of a TEMP report.
sec7 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec7
Definition at line 321 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_sec7::GG, temp_sec7::gg, temp_sec7::rara, temp_a::s7, temp_sec7::sasa, temp_sec7::sn, temp_sec7::sr, and temp_sec7::TwTwTw.
Referenced by print_temp_a().
int print_temp_b | ( | struct metreport * | m | ) |
Prints the part B of a TEMP report into a string.
m | pointer to struct metreport where are both target and source |
If OK returns 0, otherwise 1
Definition at line 600 of file bufr2tac_print_temp.c.
References metreport::alphanum, metreport::alphanum2, temp_chunks::c, PRINT_BITMASK_GEO, PRINT_BITMASK_WIGOS, print_geo(), metreport::print_mask, print_temp_b_sec1(), print_temp_b_sec5(), print_temp_b_sec6(), print_temp_b_sec7(), print_temp_b_sec8(), print_wigos_id(), temp_chunks::t, and metreport::temp.
Referenced by print_temp_report().
size_t print_temp_b_sec1 | ( | char ** | sec1, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 1 of part B of a TEMP report.
sec1 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec1
Definition at line 388 of file bufr2tac_print_temp.c.
References temp_chunks::c, met_datetime::t, and temp_chunks::t.
Referenced by print_temp_b().
size_t print_temp_b_sec5 | ( | char ** | sec5, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 5 of part B of a TEMP report.
sec5 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec5
Definition at line 453 of file bufr2tac_print_temp.c.
References temp_chunks::c, temp_chunks::t, and TEMP_NMAX_POINTS.
Referenced by print_temp_b().
size_t print_temp_b_sec6 | ( | char ** | sec6, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 6 of part B of a TEMP report.
sec6 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec6
Definition at line 478 of file bufr2tac_print_temp.c.
References temp_chunks::c, temp_chunks::t, and TEMP_NMAX_POINTS.
Referenced by print_temp_b().
size_t print_temp_b_sec7 | ( | char ** | sec7, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 7 of part B of a TEMP report.
sec7 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec7
Definition at line 505 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_b().
size_t print_temp_b_sec8 | ( | char ** | sec8, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 8 of part B of a TEMP report.
sec8 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec8
Definition at line 532 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_b().
int print_temp_c | ( | struct metreport * | m | ) |
Prints the part C of a TEMP report into a string.
m | pointer to struct metreport where are both target and source |
If OK returns 0, otherwise 1
Definition at line 838 of file bufr2tac_print_temp.c.
References metreport::alphanum, metreport::alphanum3, temp_chunks::c, PRINT_BITMASK_GEO, PRINT_BITMASK_WIGOS, print_geo(), metreport::print_mask, print_temp_c_sec1(), print_temp_c_sec2(), print_temp_c_sec3(), print_temp_c_sec4(), print_temp_c_sec7(), print_wigos_id(), temp_chunks::t, and metreport::temp.
Referenced by print_temp_report().
size_t print_temp_c_sec1 | ( | char ** | sec1, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 1 of part C of a TEMP report.
sec1 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec1
Definition at line 643 of file bufr2tac_print_temp.c.
References temp_chunks::c, met_datetime::t, and temp_chunks::t.
Referenced by print_temp_c().
size_t print_temp_c_sec2 | ( | char ** | sec2, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 2 of part C of a TEMP report.
sec2 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec2
Definition at line 708 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_c().
size_t print_temp_c_sec3 | ( | char ** | sec3, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 3 of part C of a TEMP report.
sec3 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec3
Definition at line 735 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_c().
size_t print_temp_c_sec4 | ( | char ** | sec4, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 4 of part C of a TEMP report.
sec4 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec4
Definition at line 769 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_c().
size_t print_temp_c_sec7 | ( | char ** | sec7, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 7 of part C of a TEMP report.
sec7 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec7
Definition at line 813 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_c().
int print_temp_d | ( | struct metreport * | m | ) |
Prints the part D of a TEMP report into a string.
m | pointer to struct metreport where are both target and source |
If OK returns 0, otherwise 1
Definition at line 1022 of file bufr2tac_print_temp.c.
References metreport::alphanum, metreport::alphanum4, temp_chunks::c, PRINT_BITMASK_GEO, PRINT_BITMASK_WIGOS, print_geo(), metreport::print_mask, print_temp_d_sec1(), print_temp_d_sec5(), print_temp_d_sec6(), print_temp_d_sec7(), print_wigos_id(), temp_chunks::t, and metreport::temp.
Referenced by print_temp_report().
size_t print_temp_d_sec1 | ( | char ** | sec1, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 1 of part D of a TEMP report.
sec1 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec1
Definition at line 880 of file bufr2tac_print_temp.c.
References temp_chunks::c, met_datetime::t, and temp_chunks::t.
Referenced by print_temp_d().
size_t print_temp_d_sec5 | ( | char ** | sec5, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 5 of part D of a TEMP report.
sec5 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec5
Definition at line 945 of file bufr2tac_print_temp.c.
References temp_chunks::c, temp_chunks::t, and TEMP_NMAX_POINTS.
Referenced by print_temp_d().
size_t print_temp_d_sec6 | ( | char ** | sec6, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 6 of part D of a TEMP report.
sec6 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec6
Definition at line 970 of file bufr2tac_print_temp.c.
References temp_chunks::c, temp_chunks::t, and TEMP_NMAX_POINTS.
Referenced by print_temp_d().
size_t print_temp_d_sec7 | ( | char ** | sec7, |
size_t | lmax, | ||
struct temp_chunks * | t | ||
) |
Prints the section 7 of part D of a TEMP report.
sec7 | the pointer where to print section |
lmax | max length permited |
t | pointer to s atruct temp_chunks where the parse results are set |
returns the string sec7
Definition at line 997 of file bufr2tac_print_temp.c.
References temp_chunks::c, and temp_chunks::t.
Referenced by print_temp_d().
int print_temp_raw_data | ( | struct temp_raw_data * | r | ) |
Prints for debug a struct temp_raw_data.
r | the pointer of struct to print |
This is used mainly for debug
Definition at line 33 of file bufr2tac_print_temp.c.
References temp_raw_point_data::dd, temp_raw_point_data::dlat, temp_raw_point_data::dlon, temp_raw_point_data::dt, temp_raw_point_data::ff, temp_raw_point_data::flags, temp_raw_point_data::h, MISSING_REAL, temp_raw_data::n, temp_raw_point_data::p, temp_raw_data::raw, temp_raw_point_data::T, and temp_raw_point_data::Td.
int print_temp_raw_wind_shear_data | ( | struct temp_raw_wind_shear_data * | w | ) |
Prints for debug a struct temp_raw_data.
w | the pointer of struct to print |
Used in debug stage
Definition at line 98 of file bufr2tac_print_temp.c.
References temp_raw_wind_shear_point::dlat, temp_raw_wind_shear_point::dlon, temp_raw_wind_shear_point::dt, temp_raw_wind_shear_point::flags, MISSING_REAL, temp_raw_wind_shear_data::n, temp_raw_wind_shear_point::p, temp_raw_wind_shear_data::raw, temp_raw_wind_shear_point::ws_abv, and temp_raw_wind_shear_point::ws_blw.
int print_temp_report | ( | struct metreport * | m | ) |
print the four parts of a decoded TEMP report from a BUFR file into strings
m | pointer to a struct metreport in which alphanumeric string members stores the reults |
Definition at line 1058 of file bufr2tac_print_temp.c.
References temp_chunks::a, temp_chunks::b, temp_chunks::c, temp_chunks::d, temp_a::mask, temp_b::mask, temp_c::mask, temp_d::mask, print_temp_a(), print_temp_b(), print_temp_c(), print_temp_d(), metreport::temp, TEMP_SEC_2, TEMP_SEC_5, and TEMP_SEC_6.
Referenced by parse_subset_sequence().