bufr2synop 0.24.0
|
file with the code to parse a sequence as a SYNOP FM-12, FM-13 and FM-14 More...
#include "bufr2tac.h"
Go to the source code of this file.
Functions | |
int | synop_YYYYMMDDHHmm_to_YYGG (struct synop_chunks *syn) |
Sets YYGG from YYYYMMDDHHmm extended group. More... | |
char * | guess_WMO_region_synop (struct synop_chunks *syn) |
Try to find WMO region if it is not already set and WMO Block and number index are known. More... | |
int | parse_subset_as_synop (struct metreport *m, struct bufr2tac_subset_state *s, struct bufr_subset_sequence_data *sq, char *err) |
parses a subset sequence as an Land fixed SYNOP FM-12, SHIP FM-13 or SYNOP-mobil FM-14 report More... | |
file with the code to parse a sequence as a SYNOP FM-12, FM-13 and FM-14
Definition in file bufr2tac_synop.c.
char * guess_WMO_region_synop | ( | struct synop_chunks * | syn | ) |
Try to find WMO region if it is not already set and WMO Block and number index are known.
syn | pointer to the struct synop_chunks with all known data for a synop |
It returns a pointer to the string with WMO region
Definition at line 93 of file bufr2tac_synop.c.
References synop_sec0::A1, guess_WMO_region(), synop_sec0::II, synop_sec0::iii, synop_sec0::Reg, and synop_chunks::s0.
int parse_subset_as_synop | ( | struct metreport * | m, |
struct bufr2tac_subset_state * | s, | ||
struct bufr_subset_sequence_data * | sq, | ||
char * | err | ||
) |
parses a subset sequence as an Land fixed SYNOP FM-12, SHIP FM-13 or SYNOP-mobil FM-14 report
m | pointer to a struct metreport where set some results |
s | pointer to a struct bufr2tac_subset_state |
sq | pointer to a struct bufr_subset_sequence_data with the parsed sequence on input |
err | string with detected errors, if any |
It return 0 if all is OK. Otherwise returns 1 and it also fills the err string
Definition at line 119 of file bufr2tac_synop.c.
References bufr2tac_subset_state::a, bufr2tac_subset_state::a1, bufr2tac_subset_state::alt, met_geo::alt, bufr2tac_clean_synop_chunks(), check_date_from_future(), bufr2tac_subset_state::country, met_geo::country, synop_sec0::D_D, report_date_ext::DD, synop_chunks::e, synop_sec1::ff, metreport::g, synop_sec1::GG, synop_sec1::gg, report_date_ext::HH, bufr2tac_subset_state::i, synop_sec0::II, synop_sec0::iii, synop_sec0::IIIII, met_geo::index, synop_sec1::ir, bufr2tac_subset_state::isq, wigos_id::issue, wigos_id::issuer, bufr2tac_subset_state::ival, synop_sec0::iw, synop_sec1::ix, synop_sec3::j5, synop_sec3::j524, bufr2tac_subset_state::lat, met_geo::lat, wigos_id::local_id, bufr2tac_subset_state::lon, met_geo::lon, bufr2tac_subset_state::mask, synop_chunks::mask, synop_sec0::MiMi, synop_sec0::MjMj, report_date_ext::MM, report_date_ext::mm, bufr2tac_subset_state::name, met_geo::name, synop_sec1::RRR, synop_sec3::RRR, synop_sec3::RRRR24, synop_chunks::s0, synop_chunks::s1, synop_chunks::s3, synop_sec3::SS, synop_sec3::SSS, SUBSET_MASK_HAVE_ALTITUDE, SUBSET_MASK_HAVE_COUNTRY, SUBSET_MASK_HAVE_DAY, SUBSET_MASK_HAVE_HOUR, SUBSET_MASK_HAVE_LATITUDE, SUBSET_MASK_HAVE_LONGITUDE, SUBSET_MASK_HAVE_MINUTE, SUBSET_MASK_HAVE_MONTH, SUBSET_MASK_HAVE_NAME, SUBSET_MASK_HAVE_NO_SIGNIFICANT_W1, SUBSET_MASK_HAVE_NO_SIGNIFICANT_W2, SUBSET_MASK_HAVE_NO_SIGNIFICANT_WW, SUBSET_MASK_HAVE_TYPE_STATION, SUBSET_MASK_HAVE_WIGOS_ID, SUBSET_MASK_HAVE_YEAR, syn_parse_x01(), syn_parse_x02(), syn_parse_x04(), syn_parse_x05(), syn_parse_x06(), syn_parse_x07(), syn_parse_x08(), syn_parse_x10(), syn_parse_x11(), syn_parse_x12(), syn_parse_x13(), syn_parse_x14(), syn_parse_x20(), syn_parse_x22(), syn_parse_x31(), metreport::synop, SYNOP_BUFR, SYNOP_EXT, SYNOP_SEC3, synop_YYYYMMDDHHmm_to_YYGG(), metreport::t, bufr2tac_subset_state::type, metreport::type, bufr2tac_subset_state::type_report, bufr2tac_subset_state::val, synop_sec1::W1, synop_sec1::W2, met_geo::wid, synop_chunks::wid, synop_sec1::ww, report_date_ext::YYYY, and YYYYMMDDHHmm_to_met_datetime().
Referenced by parse_subset_sequence().
int synop_YYYYMMDDHHmm_to_YYGG | ( | struct synop_chunks * | syn | ) |
Sets YYGG from YYYYMMDDHHmm extended group.
syn | pointer to the target struct synop_chunks |
Definition at line 31 of file bufr2tac_synop.c.
References report_date_ext::DD, synop_chunks::e, synop_sec0::GG, report_date_ext::HH, report_date_ext::MM, report_date_ext::mm, synop_chunks::s0, synop_sec0::YY, and report_date_ext::YYYY.
Referenced by parse_subset_as_synop().