diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.cpp index 73f0276d697c9bc0a040c73885bdc696a2d09ff1..30853eae5050261033a34e19059503734eec7523 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.cpp @@ -1,5 +1,8 @@ #include <AlosSarDataSetSummary.h> +namespace ossimplugins +{ + AlosSarDataSetSummary::AlosSarDataSetSummary() : AlosSarRecord("dataset_sum_rec") { } @@ -10,34 +13,34 @@ AlosSarDataSetSummary::~AlosSarDataSetSummary() std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) { - os<<"seq_num:"<<data._seq_num<<std::endl; + os<<"seq_num:"<<data._seq_num<<std::endl; - os<<"sar_chn:"<<data._sar_chn<<std::endl; + os<<"sar_chn:"<<data._sar_chn<<std::endl; - os<<"scene_id:"<<data._scene_id.c_str()<<std::endl; + os<<"scene_id:"<<data._scene_id.c_str()<<std::endl; - os<<"scene_des:"<<data._scene_des.c_str()<<std::endl; + os<<"scene_des:"<<data._scene_des.c_str()<<std::endl; - os<<"inp_sctim:"<<data._inp_sctim.c_str()<<std::endl; + os<<"inp_sctim:"<<data._inp_sctim.c_str()<<std::endl; - os<<"asc_des:"<<data._asc_des.c_str()<<std::endl; + os<<"asc_des:"<<data._asc_des.c_str()<<std::endl; - os<<"pro_lat:"<<data._pro_lat<<std::endl; + os<<"pro_lat:"<<data._pro_lat<<std::endl; os<<"pro_long:"<<data._pro_long<<std::endl; os<<"pro_head:"<<data._pro_head<<std::endl; - os<<"ellip_des:"<<data._ellip_des.c_str()<<std::endl; + os<<"ellip_des:"<<data._ellip_des.c_str()<<std::endl; - os<<"ellip_maj:"<<data._ellip_maj<<std::endl; + os<<"ellip_maj:"<<data._ellip_maj<<std::endl; - os<<"ellip_min:"<<data._ellip_min<<std::endl; - os<<"earth_mass:"<<data._earth_mass<<std::endl; + os<<"ellip_min:"<<data._ellip_min<<std::endl; + os<<"earth_mass:"<<data._earth_mass<<std::endl; os<<"grav_const:"<<data._grav_const<<std::endl; os<<"ellip_j[0]:"<<data._ellip_j[0]<<std::endl; - os<<"ellip_j[1]:"<<data._ellip_j[1]<<std::endl; - os<<"ellip_j[2]:"<<data._ellip_j[2]<<std::endl; + os<<"ellip_j[1]:"<<data._ellip_j[1]<<std::endl; + os<<"ellip_j[2]:"<<data._ellip_j[2]<<std::endl; os<<"terrain_h:"<<data._terrain_h<<std::endl; os<<"sc_lin:"<<data._sc_lin<<std::endl; os<<"sc_pix:"<<data._sc_pix<<std::endl; @@ -48,7 +51,7 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"sensor_id:"<<data._sensor_id.c_str()<<std::endl; os<<"orbit_num:"<<data._orbit_num.c_str()<<std::endl; - os<<"plat_lat:"<<data._plat_lat<<std::endl; + os<<"plat_lat:"<<data._plat_lat<<std::endl; os<<"plat_long:"<<data._plat_long<<std::endl; @@ -61,23 +64,23 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"wave_length:"<<data._wave_length<<std::endl; - os<<"motion_comp:"<<data._motion_comp.c_str()<<std::endl; + os<<"motion_comp:"<<data._motion_comp.c_str()<<std::endl; - os<<"pulse_code:"<<data._pulse_code.c_str()<<std::endl; + os<<"pulse_code:"<<data._pulse_code.c_str()<<std::endl; - for (int i=0;i<5;i++) - { - os<<"ampl_coef["<<i<<"]:"<<data._ampl_coef[i]<<std::endl; - } + for (int i=0;i<5;i++) + { + os<<"ampl_coef["<<i<<"]:"<<data._ampl_coef[i]<<std::endl; + } for (int i=0;i<5;i++) - { - os<<"phas_coef["<<i<<"]:"<<data._phas_coef[i]<<std::endl; - } + { + os<<"phas_coef["<<i<<"]:"<<data._phas_coef[i]<<std::endl; + } - os<<"chirp_ext_ind:"<<data._chirp_ext_ind<<std::endl; + os<<"chirp_ext_ind:"<<data._chirp_ext_ind<<std::endl; - os<<"fr:"<<data._fr<<std::endl; + os<<"fr:"<<data._fr<<std::endl; os<<"rng_gate:"<<data._rng_gate<<std::endl; @@ -87,7 +90,7 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"rngcmp_f:"<<data._rngcmp_f.c_str()<<std::endl; - os<<"gn_polar:"<<data._gn_polar <<std::endl; + os<<"gn_polar:"<<data._gn_polar <<std::endl; os<<"gn_cross:"<<data._gn_cross <<std::endl; @@ -105,7 +108,7 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"fa:"<<data._fa<<std::endl; - os<<"sat_bintim:"<<data._sat_bintim.c_str()<<std::endl; + os<<"sat_bintim:"<<data._sat_bintim.c_str()<<std::endl; os<<"sat_clktim:"<<data._sat_clktim.c_str()<<std::endl; @@ -143,25 +146,25 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"azi_res:" << data._azi_res << std::endl; - os<<"alt_dopcen[0]:"<<data._alt_dopcen[0]<<std::endl; - os<<"alt_dopcen[1]:"<<data._alt_dopcen[1]<<std::endl; - os<<"alt_dopcen[2]:"<<data._alt_dopcen[2]<<std::endl; + os<<"alt_dopcen[0]:"<<data._alt_dopcen[0]<<std::endl; + os<<"alt_dopcen[1]:"<<data._alt_dopcen[1]<<std::endl; + os<<"alt_dopcen[2]:"<<data._alt_dopcen[2]<<std::endl; os<<"crt_dopcen[0]:"<<data._crt_dopcen[0]<<std::endl; - os<<"crt_dopcen[1]:"<<data._crt_dopcen[1]<<std::endl; - os<<"crt_dopcen[2]:"<<data._crt_dopcen[2]<<std::endl; + os<<"crt_dopcen[1]:"<<data._crt_dopcen[1]<<std::endl; + os<<"crt_dopcen[2]:"<<data._crt_dopcen[2]<<std::endl; os<<"time_dir_pix:"<<data._time_dir_pix.c_str()<<std::endl; - os<<"time_dir_lin:"<<data._time_dir_lin.c_str()<<std::endl; + os<<"time_dir_lin:"<<data._time_dir_lin.c_str()<<std::endl; os<<"alt_rate[0]:"<<data._alt_rate[0]<<std::endl; - os<<"alt_rate[1]:"<<data._alt_rate[1]<<std::endl; - os<<"alt_rate[2]:"<<data._alt_rate[2]<<std::endl; + os<<"alt_rate[1]:"<<data._alt_rate[1]<<std::endl; + os<<"alt_rate[2]:"<<data._alt_rate[2]<<std::endl; os<<"crt_rate[0]:"<<data._crt_rate[0]<<std::endl; - os<<"crt_rate[1]:"<<data._crt_rate[1]<<std::endl; - os<<"crt_rate[2]:"<<data._crt_rate[2]<<std::endl; + os<<"crt_rate[1]:"<<data._crt_rate[1]<<std::endl; + os<<"crt_rate[2]:"<<data._crt_rate[2]<<std::endl; os<<"clutter_lock:"<<data._line_cont.c_str()<<std::endl; @@ -176,353 +179,353 @@ std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data) os<<"rngcmp_desg:"<<data._rngcmp_desg.c_str()<<std::endl; /** - * @Data from 1735 to 4096 to be added - */ + * @Data from 1735 to 4096 to be added + */ - return os; + return os; } std::istream& operator>>(std::istream& is, AlosSarDataSetSummary& data) { - char buf16[17]; - buf16[16]='\0'; - char buf32[33]; - buf32[32] = '\0'; - char buf8[9]; - buf8[8] = '\0'; - char buf4[5]; - buf4[4] = '\0'; + char buf16[17]; + buf16[16]='\0'; + char buf32[33]; + buf32[32] = '\0'; + char buf8[9]; + buf8[8] = '\0'; + char buf4[5]; + buf4[4] = '\0'; char buf2362[2363]; //data skip from 1735 to 4096// buf2362[2362] = '\0'; //data skip from 1735 to 4096// - is.read(buf4,4); - data._seq_num = atoi(buf4); + is.read(buf4,4); + data._seq_num = atoi(buf4); - is.read(buf4,4); - data._sar_chn = atoi(buf4); + is.read(buf4,4); + data._sar_chn = atoi(buf4); - is.read(buf16,16); - data._scene_id = buf16; + is.read(buf16,16); + data._scene_id = buf16; - is.read(buf32,32); - data._scene_des = buf32; + is.read(buf32,32); + data._scene_des = buf32; - is.read(buf32,32); - data._inp_sctim = buf32; + is.read(buf32,32); + data._inp_sctim = buf32; - is.read(buf16,16); - data._asc_des = buf16; + is.read(buf16,16); + data._asc_des = buf16; - is.read(buf16,16); - data._pro_lat = atof(buf16); + is.read(buf16,16); + data._pro_lat = atof(buf16); is.read(buf16,16); - data._pro_long = atof(buf16); + data._pro_long = atof(buf16); is.read(buf16,16); - data._pro_head = atof(buf16); + data._pro_head = atof(buf16); - is.read(buf16,16); - data._ellip_des = buf16; + is.read(buf16,16); + data._ellip_des = buf16; - is.read(buf16,16); - data._ellip_maj = atof(buf16); + is.read(buf16,16); + data._ellip_maj = atof(buf16); - is.read(buf16,16); - data._ellip_min = atof(buf16); + is.read(buf16,16); + data._ellip_min = atof(buf16); - is.read(buf16,16); - data._earth_mass = atof(buf16); + is.read(buf16,16); + data._earth_mass = atof(buf16); is.read(buf16,16); - data._grav_const = atof(buf16); + data._grav_const = atof(buf16); - is.read(buf16,16); - data._ellip_j[0] = atof(buf16); - is.read(buf16,16); - data._ellip_j[1] = atof(buf16); - is.read(buf16,16); - data._ellip_j[2] = atof(buf16); + is.read(buf16,16); + data._ellip_j[0] = atof(buf16); + is.read(buf16,16); + data._ellip_j[1] = atof(buf16); + is.read(buf16,16); + data._ellip_j[2] = atof(buf16); is.read(buf16,16); is.read(buf16,16); - data._terrain_h = atof(buf16); + data._terrain_h = atof(buf16); - is.read(buf8,8); - data._sc_lin = atoi(buf8); + is.read(buf8,8); + data._sc_lin = atoi(buf8); - is.read(buf8,8); - data._sc_pix = atoi(buf8); + is.read(buf8,8); + data._sc_pix = atoi(buf8); - is.read(buf16,16); - data._scene_len = atof(buf16); + is.read(buf16,16); + data._scene_len = atof(buf16); - is.read(buf16,16); - data._scene_wid = atof(buf16); + is.read(buf16,16); + data._scene_wid = atof(buf16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf4,4); - data._nchn = atoi(buf4); + is.read(buf4,4); + data._nchn = atoi(buf4); - is.read(buf4,4); + is.read(buf4,4); - is.read(buf16,16); - data._mission_id = buf16; + is.read(buf16,16); + data._mission_id = buf16; - is.read(buf32,32); - data._sensor_id = buf32; + is.read(buf32,32); + data._sensor_id = buf32; - is.read(buf8,8); - data._orbit_num = buf8; + is.read(buf8,8); + data._orbit_num = buf8; - is.read(buf8,8); - data._plat_lat = atof(buf8); + is.read(buf8,8); + data._plat_lat = atof(buf8); is.read(buf8,8); - data._plat_long = atof(buf8); + data._plat_long = atof(buf8); is.read(buf8,8); - data._plat_head = atof(buf8); + data._plat_head = atof(buf8); is.read(buf8,8); - data._clock_ang = atof(buf8); + data._clock_ang = atof(buf8); is.read(buf8,8); - data._incident_ang = atof(buf8); + data._incident_ang = atof(buf8); is.read(buf8,8); - is.read(buf16,16); - data._wave_length = atof(buf16); + is.read(buf16,16); + data._wave_length = atof(buf16); - is.read(buf8,2); - buf8[2] = '\0'; - data._motion_comp = buf8; + is.read(buf8,2); + buf8[2] = '\0'; + data._motion_comp = buf8; - is.read(buf16,16); - data._pulse_code = buf16; + is.read(buf16,16); + data._pulse_code = buf16; - for (int i=0;i<5;i++) - { - is.read(buf16,16); - data._ampl_coef[i] = atof(buf16); - } + for (int i=0;i<5;i++) + { + is.read(buf16,16); + data._ampl_coef[i] = atof(buf16); + } for (int i=0;i<5;i++) - { - is.read(buf16,16); - data._phas_coef[i] = atof(buf16); - } + { + is.read(buf16,16); + data._phas_coef[i] = atof(buf16); + } is.read(buf8,8); - data._chirp_ext_ind = atoi(buf8); + data._chirp_ext_ind = atoi(buf8); is.read(buf8,8); is.read(buf16,16); - data._fr = atof(buf16); + data._fr = atof(buf16); is.read(buf16,16); - data._rng_gate = atof(buf16); + data._rng_gate = atof(buf16); is.read(buf16,16); - data._rng_length = atof(buf16); + data._rng_length = atof(buf16); is.read(buf8,4); - buf8[4] = '\0'; - data._baseband_f = buf8; + buf8[4] = '\0'; + data._baseband_f = buf8; is.read(buf8,4); - buf8[4] = '\0'; - data._rngcmp_f = buf8; + buf8[4] = '\0'; + data._rngcmp_f = buf8; - is.read(buf16,16); - data._gn_polar = atof(buf16); + is.read(buf16,16); + data._gn_polar = atof(buf16); is.read(buf16,16); - data._gn_cross = atof(buf16); + data._gn_cross = atof(buf16); is.read(buf8,8); - data._chn_bits = atoi(buf8); + data._chn_bits = atoi(buf8); is.read(buf16,12); - buf16[12] = '\0'; - data._quant_desc = buf16; + buf16[12] = '\0'; + data._quant_desc = buf16; is.read(buf16,16); - data._i_bias = atof(buf16); + data._i_bias = atof(buf16); is.read(buf16,16); - data._q_bias = atof(buf16); + data._q_bias = atof(buf16); is.read(buf16,16); - data._iq_ratio = atof(buf16); + data._iq_ratio = atof(buf16); is.read(buf32,32); is.read(buf16,16); is.read(buf16,16); - data._mech_sight = atof(buf16); + data._mech_sight = atof(buf16); is.read(buf4,4); is.read(buf16,16); - data._fa = atof(buf16); + data._fa = atof(buf16); is.read(buf16,16); is.read(buf16,16); is.read(buf16,16); - data._sat_bintim = buf16; + data._sat_bintim = buf16; is.read(buf32,32); - data._sat_clktim = buf32; + data._sat_clktim = buf32; is.read(buf8,8); - data._sat_clkinc = buf8; + data._sat_clkinc = buf8; is.read(buf8,8); is.read(buf16,16); - data._fac_id = buf16; + data._fac_id = buf16; is.read(buf8,8); - data._sys_id = buf8; + data._sys_id = buf8; is.read(buf8,8); - data._ver_id = buf8; + data._ver_id = buf8; is.read(buf32,32); is.read(buf32,32); - data._prod_type = buf32; + data._prod_type = buf32; is.read(buf32,32); - data._algor_id = buf32; + data._algor_id = buf32; is.read(buf16,16); - data._n_azilok = atof(buf16); + data._n_azilok = atof(buf16); is.read(buf16,16); - data._n_rnglok = atof(buf16); + data._n_rnglok = atof(buf16); is.read(buf16,16); - data._bnd_azilok = atof(buf16); + data._bnd_azilok = atof(buf16); is.read(buf16,16); - data._bnd_rnglok = atof(buf16); + data._bnd_rnglok = atof(buf16); is.read(buf16,16); - data._bnd_azi = atof(buf16); + data._bnd_azi = atof(buf16); is.read(buf16,16); - data._bnd_rng = atof(buf16); + data._bnd_rng = atof(buf16); is.read(buf32,32); - data._azi_weight = buf32; + data._azi_weight = buf32; is.read(buf32,32); - data._rng_weight = buf32; + data._rng_weight = buf32; is.read(buf16,16); - data._data_inpsrc = buf16; + data._data_inpsrc = buf16; is.read(buf16,16); - data._rng_res = atof(buf16); + data._rng_res = atof(buf16); is.read(buf16,16); - data._azi_res = atof(buf16); + data._azi_res = atof(buf16); - is.read(buf32,32); + is.read(buf32,32); - is.read(buf16,16); - data._alt_dopcen[0] = atof(buf16); - is.read(buf16,16); - data._alt_dopcen[1] = atof(buf16); - is.read(buf16,16); - data._alt_dopcen[2] = atof(buf16); + is.read(buf16,16); + data._alt_dopcen[0] = atof(buf16); + is.read(buf16,16); + data._alt_dopcen[1] = atof(buf16); + is.read(buf16,16); + data._alt_dopcen[2] = atof(buf16); is.read(buf16,16); is.read(buf16,16); - data._crt_dopcen[0] = atof(buf16); - is.read(buf16,16); - data._crt_dopcen[1] = atof(buf16); - is.read(buf16,16); - data._crt_dopcen[2] = atof(buf16); + data._crt_dopcen[0] = atof(buf16); + is.read(buf16,16); + data._crt_dopcen[1] = atof(buf16); + is.read(buf16,16); + data._crt_dopcen[2] = atof(buf16); is.read(buf8,8); - data._time_dir_pix = buf8; + data._time_dir_pix = buf8; - is.read(buf8,8); - data._time_dir_lin = buf8; + is.read(buf8,8); + data._time_dir_lin = buf8; is.read(buf16,16); - data._alt_rate[0] = atof(buf16); - is.read(buf16,16); - data._alt_rate[1] = atof(buf16); - is.read(buf16,16); - data._alt_rate[2] = atof(buf16); + data._alt_rate[0] = atof(buf16); + is.read(buf16,16); + data._alt_rate[1] = atof(buf16); + is.read(buf16,16); + data._alt_rate[2] = atof(buf16); is.read(buf16,16); is.read(buf16,16); - data._crt_rate[0] = atof(buf16); - is.read(buf16,16); - data._crt_rate[1] = atof(buf16); - is.read(buf16,16); - data._crt_rate[2] = atof(buf16); + data._crt_rate[0] = atof(buf16); + is.read(buf16,16); + data._crt_rate[1] = atof(buf16); + is.read(buf16,16); + data._crt_rate[2] = atof(buf16); is.read(buf16,16); is.read(buf8,8); - data._line_cont = buf8; + data._line_cont = buf8; is.read(buf4,4); - data._clutter_lock = buf4; + data._clutter_lock = buf4; is.read(buf4,4); - data._auto_focus = buf4; + data._auto_focus = buf4; is.read(buf16,16); - data._line_spacing = atof(buf16); + data._line_spacing = atof(buf16); is.read(buf16,16); - data._pix_spacing = atof(buf16); + data._pix_spacing = atof(buf16); is.read(buf16,16); - data._rngcmp_desg = buf16; + data._rngcmp_desg = buf16; /** - * @Data from 1735 to 4096 to be added - */ + * @Data from 1735 to 4096 to be added + */ is.read(buf2362,2362); - return is; + return is; } AlosSarDataSetSummary::AlosSarDataSetSummary(const AlosSarDataSetSummary& rhs): - AlosSarRecord(rhs), - _seq_num(rhs._seq_num), + AlosSarRecord(rhs), + _seq_num(rhs._seq_num), _sar_chn(rhs._sar_chn), - _scene_id(rhs._scene_id), - _scene_des(rhs._scene_des), - _inp_sctim(rhs._inp_sctim), - _asc_des(rhs._asc_des), + _scene_id(rhs._scene_id), + _scene_des(rhs._scene_des), + _inp_sctim(rhs._inp_sctim), + _asc_des(rhs._asc_des), _pro_lat(rhs._pro_lat), _pro_long(rhs._pro_long), _pro_head(rhs._pro_head), - _ellip_des(rhs._ellip_des), + _ellip_des(rhs._ellip_des), _ellip_maj(rhs._ellip_maj), _ellip_min(rhs._ellip_min), - _earth_mass(rhs._earth_mass), + _earth_mass(rhs._earth_mass), _grav_const(rhs._grav_const), _terrain_h(rhs._terrain_h), _sc_lin(rhs._sc_lin), @@ -587,51 +590,51 @@ AlosSarDataSetSummary::AlosSarDataSetSummary(const AlosSarDataSetSummary& rhs): //to be added// { - _ellip_j[0] = rhs._ellip_j[0]; - _ellip_j[1] = rhs._ellip_j[1]; - _ellip_j[2] = rhs._ellip_j[2]; - _ampl_coef[0] = rhs._ampl_coef[0]; - _ampl_coef[1] = rhs._ampl_coef[1]; - _ampl_coef[2] = rhs._ampl_coef[2]; - _ampl_coef[3] = rhs._ampl_coef[3]; - _ampl_coef[4] = rhs._ampl_coef[4]; + _ellip_j[0] = rhs._ellip_j[0]; + _ellip_j[1] = rhs._ellip_j[1]; + _ellip_j[2] = rhs._ellip_j[2]; + _ampl_coef[0] = rhs._ampl_coef[0]; + _ampl_coef[1] = rhs._ampl_coef[1]; + _ampl_coef[2] = rhs._ampl_coef[2]; + _ampl_coef[3] = rhs._ampl_coef[3]; + _ampl_coef[4] = rhs._ampl_coef[4]; _phas_coef[0] = rhs._phas_coef[0]; - _phas_coef[1] = rhs._phas_coef[1]; - _phas_coef[2] = rhs._phas_coef[2]; - _phas_coef[3] = rhs._phas_coef[3]; - _phas_coef[4] = rhs._phas_coef[4]; + _phas_coef[1] = rhs._phas_coef[1]; + _phas_coef[2] = rhs._phas_coef[2]; + _phas_coef[3] = rhs._phas_coef[3]; + _phas_coef[4] = rhs._phas_coef[4]; _alt_dopcen[0] = rhs._alt_dopcen[0]; - _alt_dopcen[1] = rhs._alt_dopcen[1]; - _alt_dopcen[2] = rhs._alt_dopcen[2]; - - _crt_dopcen[0] = rhs._crt_dopcen[0]; - _crt_dopcen[1] = rhs._crt_dopcen[1]; - _crt_dopcen[2] = rhs._crt_dopcen[2]; - - _alt_rate[0] = rhs._alt_rate[0]; - _alt_rate[1] = rhs._alt_rate[1]; - _alt_rate[2] = rhs._alt_rate[2]; - _crt_rate[0] = rhs._crt_rate[0]; - _crt_rate[1] = rhs._crt_rate[1]; - _crt_rate[2] = rhs._crt_rate[2]; + _alt_dopcen[1] = rhs._alt_dopcen[1]; + _alt_dopcen[2] = rhs._alt_dopcen[2]; + + _crt_dopcen[0] = rhs._crt_dopcen[0]; + _crt_dopcen[1] = rhs._crt_dopcen[1]; + _crt_dopcen[2] = rhs._crt_dopcen[2]; + + _alt_rate[0] = rhs._alt_rate[0]; + _alt_rate[1] = rhs._alt_rate[1]; + _alt_rate[2] = rhs._alt_rate[2]; + _crt_rate[0] = rhs._crt_rate[0]; + _crt_rate[1] = rhs._crt_rate[1]; + _crt_rate[2] = rhs._crt_rate[2]; } AlosSarDataSetSummary& AlosSarDataSetSummary::operator=(const AlosSarDataSetSummary& rhs) { - _seq_num = rhs._seq_num; + _seq_num = rhs._seq_num; _sar_chn = rhs._sar_chn; - _scene_id = rhs._scene_id; - _scene_des = rhs._scene_des; - _inp_sctim = rhs._inp_sctim; - _asc_des = rhs._asc_des; + _scene_id = rhs._scene_id; + _scene_des = rhs._scene_des; + _inp_sctim = rhs._inp_sctim; + _asc_des = rhs._asc_des; _pro_lat = rhs._pro_lat; _pro_long = rhs._pro_long; _pro_head = rhs._pro_head; - _ellip_des = rhs._ellip_des; + _ellip_des = rhs._ellip_des; _ellip_maj = rhs._ellip_maj; _ellip_min = rhs._ellip_min; - _earth_mass = rhs._earth_mass; + _earth_mass = rhs._earth_mass; _grav_const = rhs._grav_const; _terrain_h = rhs._terrain_h; _sc_lin = rhs._sc_lin; @@ -693,37 +696,38 @@ AlosSarDataSetSummary& AlosSarDataSetSummary::operator=(const AlosSarDataSetSumm _pix_spacing = rhs._pix_spacing; _rngcmp_desg = rhs._rngcmp_desg; - _ellip_j[0] = rhs._ellip_j[0]; - _ellip_j[1] = rhs._ellip_j[1]; - _ellip_j[2] = rhs._ellip_j[2]; - _ampl_coef[0] = rhs._ampl_coef[0]; - _ampl_coef[1] = rhs._ampl_coef[1]; - _ampl_coef[2] = rhs._ampl_coef[2]; - _ampl_coef[3] = rhs._ampl_coef[3]; - _ampl_coef[4] = rhs._ampl_coef[4]; + _ellip_j[0] = rhs._ellip_j[0]; + _ellip_j[1] = rhs._ellip_j[1]; + _ellip_j[2] = rhs._ellip_j[2]; + _ampl_coef[0] = rhs._ampl_coef[0]; + _ampl_coef[1] = rhs._ampl_coef[1]; + _ampl_coef[2] = rhs._ampl_coef[2]; + _ampl_coef[3] = rhs._ampl_coef[3]; + _ampl_coef[4] = rhs._ampl_coef[4]; _phas_coef[0] = rhs._phas_coef[0]; - _phas_coef[1] = rhs._phas_coef[1]; - _phas_coef[2] = rhs._phas_coef[2]; - _phas_coef[3] = rhs._phas_coef[3]; - _phas_coef[4] = rhs._phas_coef[4]; + _phas_coef[1] = rhs._phas_coef[1]; + _phas_coef[2] = rhs._phas_coef[2]; + _phas_coef[3] = rhs._phas_coef[3]; + _phas_coef[4] = rhs._phas_coef[4]; _alt_dopcen[0] = rhs._alt_dopcen[0]; - _alt_dopcen[1] = rhs._alt_dopcen[1]; - _alt_dopcen[2] = rhs._alt_dopcen[2]; + _alt_dopcen[1] = rhs._alt_dopcen[1]; + _alt_dopcen[2] = rhs._alt_dopcen[2]; - _crt_dopcen[0] = rhs._crt_dopcen[0]; - _crt_dopcen[1] = rhs._crt_dopcen[1]; - _crt_dopcen[2] = rhs._crt_dopcen[2]; + _crt_dopcen[0] = rhs._crt_dopcen[0]; + _crt_dopcen[1] = rhs._crt_dopcen[1]; + _crt_dopcen[2] = rhs._crt_dopcen[2]; - _alt_rate[0] = rhs._alt_rate[0]; - _alt_rate[1] = rhs._alt_rate[1]; - _alt_rate[2] = rhs._alt_rate[2]; - _crt_rate[0] = rhs._crt_rate[0]; - _crt_rate[1] = rhs._crt_rate[1]; - _crt_rate[2] = rhs._crt_rate[2]; + _alt_rate[0] = rhs._alt_rate[0]; + _alt_rate[1] = rhs._alt_rate[1]; + _alt_rate[2] = rhs._alt_rate[2]; + _crt_rate[0] = rhs._crt_rate[0]; + _crt_rate[1] = rhs._crt_rate[1]; + _crt_rate[2] = rhs._crt_rate[2]; //to be added// - return *this; + return *this; +} } diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.h index 7c822dced81c874543f62f6bdd8ecc09e3f04a66..65ca5ce43801a227390e97bee170c18123bc62c8 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarDataSetSummary.h @@ -5,6 +5,10 @@ #include <cstdlib> #include <AlosSarRecordHeader.h> #include <AlosSarRecord.h> + +namespace ossimplugins +{ + /** * @ingroup AlosSarDataSetSummaryRecord * @brief This class is able to read the SAR leader data set summary record of the leader file @@ -15,984 +19,984 @@ class AlosSarDataSetSummary : public AlosSarRecord { public: - /** - * @brief Constructor - */ - AlosSarDataSetSummary(); - - /** - * @brief Destructor - */ - ~AlosSarDataSetSummary(); - - /** - * @brief This function write the AlosSarDataSetSummary in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data); - - /** - * @brief This function read a AlosSarDataSetSummary from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarDataSetSummary& data); - - /** - * @brief Copy constructor - */ - AlosSarDataSetSummary(const AlosSarDataSetSummary& rhs); - - /** - * @brief Copy operator - */ - AlosSarDataSetSummary& operator=(const AlosSarDataSetSummary& rhs); - - /** - * @brief This function is able to create a new instance of the class - */ - AlosSarRecord* Instanciate() - { - return new AlosSarDataSetSummary(); - }; - - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - AlosSarRecord* Clone() - { - return new AlosSarDataSetSummary(*this); - }; - - /** - * @brief Read the class data from a stream - */ - void Read(std::istream& is) - { - is>>*this; - }; - - /** - * @brief Write the class to a stream - */ - void Write(std::ostream& os) - { - os<<*this; - }; - - /** - * @brief Sequence number - */ - int get_seq_num() - { - return _seq_num; - }; - /** - * @brief SAR channel indicator - */ - int get_sar_chn() - { - return _sar_chn; - }; - /** - * @brief Scene identifier - */ - std::string get_scene_id() - { - return _scene_id; - }; - /** - * @brief Scene designator - */ - std::string get_scene_des() - { - return _scene_des; - }; - /** - * @brief Input scene centre time - */ - std::string get_inp_sctim() - { - return _inp_sctim; - }; - /** - * @brief Ascending/descending - */ - std::string get_asc_des() - { - return _asc_des; - }; - /** - * @brief Processed scene centre latitude - */ - double get_pro_lat() - { - return _pro_lat; - }; - /** - * @brief Processed scene centre longitude - */ - double get_pro_long() - { - return _pro_long; - }; - /** - * @brief Processed scene centre headng - */ - double get_pro_head() - { - return _pro_head; - }; - /** - * @brief Ellipsoid designator - */ - std::string get_ellip_des() - { - return _ellip_des; - }; - /** - * @brief Ellipsoid semi-major axis, km - */ - double get_ellip_maj() - { - return _ellip_maj; - }; - /** - * @brief Ellipsoid semi_minor axis, km - */ - double get_ellip_min() - { - return _ellip_min; - }; - /** - * @brief Earth's mass - */ + /** + * @brief Constructor + */ + AlosSarDataSetSummary(); + + /** + * @brief Destructor + */ + ~AlosSarDataSetSummary(); + + /** + * @brief This function write the AlosSarDataSetSummary in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarDataSetSummary& data); + + /** + * @brief This function read a AlosSarDataSetSummary from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarDataSetSummary& data); + + /** + * @brief Copy constructor + */ + AlosSarDataSetSummary(const AlosSarDataSetSummary& rhs); + + /** + * @brief Copy operator + */ + AlosSarDataSetSummary& operator=(const AlosSarDataSetSummary& rhs); + + /** + * @brief This function is able to create a new instance of the class + */ + AlosSarRecord* Instanciate() + { + return new AlosSarDataSetSummary(); + }; + + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + AlosSarRecord* Clone() + { + return new AlosSarDataSetSummary(*this); + }; + + /** + * @brief Read the class data from a stream + */ + void Read(std::istream& is) + { + is>>*this; + }; + + /** + * @brief Write the class to a stream + */ + void Write(std::ostream& os) + { + os<<*this; + }; + + /** + * @brief Sequence number + */ + int get_seq_num() + { + return _seq_num; + }; + /** + * @brief SAR channel indicator + */ + int get_sar_chn() + { + return _sar_chn; + }; + /** + * @brief Scene identifier + */ + std::string get_scene_id() + { + return _scene_id; + }; + /** + * @brief Scene designator + */ + std::string get_scene_des() + { + return _scene_des; + }; + /** + * @brief Input scene centre time + */ + std::string get_inp_sctim() + { + return _inp_sctim; + }; + /** + * @brief Ascending/descending + */ + std::string get_asc_des() + { + return _asc_des; + }; + /** + * @brief Processed scene centre latitude + */ + double get_pro_lat() + { + return _pro_lat; + }; + /** + * @brief Processed scene centre longitude + */ + double get_pro_long() + { + return _pro_long; + }; + /** + * @brief Processed scene centre headng + */ + double get_pro_head() + { + return _pro_head; + }; + /** + * @brief Ellipsoid designator + */ + std::string get_ellip_des() + { + return _ellip_des; + }; + /** + * @brief Ellipsoid semi-major axis, km + */ + double get_ellip_maj() + { + return _ellip_maj; + }; + /** + * @brief Ellipsoid semi_minor axis, km + */ + double get_ellip_min() + { + return _ellip_min; + }; + /** + * @brief Earth's mass + */ double get_earth_mass() - { - return _earth_mass; - }; + { + return _earth_mass; + }; /** - * @brief Gravitational constant - */ + * @brief Gravitational constant + */ double get_grav_const() - { - return _grav_const; - }; + { + return _grav_const; + }; /** - * @brief Ellipsoid J2-4 parameters - */ + * @brief Ellipsoid J2-4 parameters + */ double* get_ellip_j() - { - return _ellip_j; - }; + { + return _ellip_j; + }; /** - * @brief Average terrain height, km - */ + * @brief Average terrain height, km + */ double get_terrain_h() - { - return _terrain_h; - }; + { + return _terrain_h; + }; /** - * @brief Scene centre line number - */ + * @brief Scene centre line number + */ int get_sc_lin() - { - return _sc_lin; - }; + { + return _sc_lin; + }; /** - * @brief Scene centre pixel number - */ + * @brief Scene centre pixel number + */ int get_sc_pix() - { - return _sc_pix; - }; + { + return _sc_pix; + }; /** - * @brief Scene length, km - */ + * @brief Scene length, km + */ double get_scene_len() - { - return _scene_len; - }; + { + return _scene_len; + }; /** - * @brief Scene width, km - */ + * @brief Scene width, km + */ double get_scene_wid() - { - return _scene_wid; - }; + { + return _scene_wid; + }; /** - * @brief Number of SAR channels - */ + * @brief Number of SAR channels + */ double get_nchn() - { - return _nchn; - }; - - /** - * @brief Mission identifier - */ - std::string get_mission_id() - { - return _mission_id; - }; - /** - * @brief Sensor identifier - */ - std::string get_sensor_id() - { - return _sensor_id; - }; - /** - * @brief Orbit number - */ - std::string get_orbit_num() - { - return _orbit_num; - }; - /** - * @brief Platform geodetic latitude - */ + { + return _nchn; + }; + + /** + * @brief Mission identifier + */ + std::string get_mission_id() + { + return _mission_id; + }; + /** + * @brief Sensor identifier + */ + std::string get_sensor_id() + { + return _sensor_id; + }; + /** + * @brief Orbit number + */ + std::string get_orbit_num() + { + return _orbit_num; + }; + /** + * @brief Platform geodetic latitude + */ double get_plat_lat() - { - return _plat_lat; - }; + { + return _plat_lat; + }; /** - * @brief Platform geodetic longitude - */ + * @brief Platform geodetic longitude + */ double get_plat_long() - { - return _plat_long; - }; + { + return _plat_long; + }; /** - * @brief Platform heading - */ + * @brief Platform heading + */ double get_plat_head() - { - return _plat_head; - }; + { + return _plat_head; + }; /** - * @brief Sensor clock angle - */ + * @brief Sensor clock angle + */ double get_clock_ang() - { - return _clock_ang; - }; + { + return _clock_ang; + }; /** - * @brief Incidence angle - */ + * @brief Incidence angle + */ double get_incident_ang() - { - return _incident_ang; - }; + { + return _incident_ang; + }; /** - * @brief Radar wave length - */ + * @brief Radar wave length + */ double get_wave_length() - { - return _wave_length; - }; - /** - * @brief Motion compensation indicator - */ - std::string get_motion_comp() - { - return _motion_comp; - }; - /** - * @brief Range pulse code specifier - */ + { + return _wave_length; + }; + /** + * @brief Motion compensation indicator + */ + std::string get_motion_comp() + { + return _motion_comp; + }; + /** + * @brief Range pulse code specifier + */ std::string get_pulse_code() - { - return _pulse_code; - }; + { + return _pulse_code; + }; /** - * @brief Range chirp coefficients - */ + * @brief Range chirp coefficients + */ double* get_ampl_coef() - { - return _ampl_coef; - }; + { + return _ampl_coef; + }; /** - * @brief Range phase coefficients - */ + * @brief Range phase coefficients + */ double* get_phas_coef() - { - return _phas_coef; - }; + { + return _phas_coef; + }; /** - * @brief Chirp extraction index - */ + * @brief Chirp extraction index + */ int get_chirp_ext_ind() - { - return _chirp_ext_ind; - }; + { + return _chirp_ext_ind; + }; /** - * @brief Range sampling rate - */ + * @brief Range sampling rate + */ double get_fr() - { - return _fr; - }; + { + return _fr; + }; /** - * @brief Range gate start time - */ + * @brief Range gate start time + */ double get_rng_gate() - { - return _rng_gate; - }; + { + return _rng_gate; + }; /** - * @brief Range pulse length - */ + * @brief Range pulse length + */ double get_rng_length() - { - return _rng_length; - }; - /** - * @brief Baseband conversion flag - */ - std::string get_baseband_f() - { - return _baseband_f; - }; - /** - * @brief Range compressed flag - */ + { + return _rng_length; + }; + /** + * @brief Baseband conversion flag + */ + std::string get_baseband_f() + { + return _baseband_f; + }; + /** + * @brief Range compressed flag + */ std::string get_rngcmp_f() - { - return _rngcmp_f; - }; + { + return _rngcmp_f; + }; /** - * @brief Like polarized gain - */ + * @brief Like polarized gain + */ double get_gn_polar() - { - return _gn_polar; - }; + { + return _gn_polar; + }; /** - * @brief Cross polarized gain - */ + * @brief Cross polarized gain + */ double get_gn_cross() - { - return _gn_cross; - }; + { + return _gn_cross; + }; /** - * @brief Number of bits per channel - */ + * @brief Number of bits per channel + */ int get_chn_bits() - { - return _chn_bits; - }; + { + return _chn_bits; + }; /** - * @brief Quantization descriptor - */ + * @brief Quantization descriptor + */ std::string get_quant_desc() - { - return _quant_desc; - }; + { + return _quant_desc; + }; /** - * @brief I channel DC bias - */ + * @brief I channel DC bias + */ double get_i_bias() - { - return _i_bias; - }; + { + return _i_bias; + }; /** - * @brief Q channel DC bias - */ + * @brief Q channel DC bias + */ double get_q_bias() - { - return _q_bias; - }; + { + return _q_bias; + }; /** - * @brief I/Q channel ratio - */ + * @brief I/Q channel ratio + */ double get_iq_ratio() - { - return _iq_ratio; - }; + { + return _iq_ratio; + }; /** - * @brief Mechanical boresight - */ + * @brief Mechanical boresight + */ double get_mech_sight() - { - return _mech_sight; - }; + { + return _mech_sight; + }; /** - * @brief Nominal PRF, Hz - */ + * @brief Nominal PRF, Hz + */ double get_fa() - { - return _fa; - }; + { + return _fa; + }; /** - * @brief Satellite binary time - */ + * @brief Satellite binary time + */ std::string get_sat_bintim() - { - return _sat_bintim; - }; + { + return _sat_bintim; + }; /** - * @brief Satellite clock time - */ + * @brief Satellite clock time + */ std::string get_sat_clktim() - { - return _sat_clktim; - }; + { + return _sat_clktim; + }; /** - * @brief Satellite clock increment - */ + * @brief Satellite clock increment + */ std::string get_sat_clkinc() - { - return _sat_clkinc; - }; + { + return _sat_clkinc; + }; /** - * @brief Processing facility identifier - */ + * @brief Processing facility identifier + */ std::string get_fac_id() - { - return _fac_id; - }; + { + return _fac_id; + }; /** - * @brief Processing system identifier - */ + * @brief Processing system identifier + */ std::string get_sys_id() - { - return _sys_id; - }; + { + return _sys_id; + }; /** - * @brief Processing version identifier - */ + * @brief Processing version identifier + */ std::string get_ver_id() - { - return _ver_id; - }; + { + return _ver_id; + }; /** - * @brief Product type specifier - */ + * @brief Product type specifier + */ std::string get_prod_type() - { - return _prod_type; - }; + { + return _prod_type; + }; /** - * @brief Processing algorithm identifier - */ + * @brief Processing algorithm identifier + */ std::string get_algor_id() - { - return _algor_id; - }; + { + return _algor_id; + }; /** - * @brief Number of azimuth looks - */ + * @brief Number of azimuth looks + */ double get_n_azilok() - { - return _n_azilok; - }; + { + return _n_azilok; + }; /** - * @brief Number of range looks - */ + * @brief Number of range looks + */ double get_n_rnglok() - { - return _n_rnglok; - }; + { + return _n_rnglok; + }; /** - * @brief Bandwidth per look in azimuth,Hz - */ + * @brief Bandwidth per look in azimuth,Hz + */ double get_bnd_azilok() - { - return _bnd_azilok; - }; + { + return _bnd_azilok; + }; /** - * @brief Bandwidth per look in range,Hz - */ + * @brief Bandwidth per look in range,Hz + */ double get_bnd_rnglok() - { - return _bnd_rnglok; - }; + { + return _bnd_rnglok; + }; /** - * @brief Total azimuth look bandwidth - */ + * @brief Total azimuth look bandwidth + */ double get_bnd_azi() - { - return _bnd_azi; - }; + { + return _bnd_azi; + }; /** - * @brief Total range look bandwidth - */ + * @brief Total range look bandwidth + */ double get_bnd_rng() - { - return _bnd_rng; - }; + { + return _bnd_rng; + }; /** - * @brief Azimuth weighting designator - */ + * @brief Azimuth weighting designator + */ std::string get_azi_weight() - { - return _azi_weight; - }; + { + return _azi_weight; + }; /** - * @brief Range weighting designator - */ + * @brief Range weighting designator + */ std::string get_rng_weight() - { - return _rng_weight; - }; + { + return _rng_weight; + }; /** - * @brief Data input source - */ + * @brief Data input source + */ std::string get_data_inpsrc() - { - return _data_inpsrc; - }; + { + return _data_inpsrc; + }; /** - * @brief Range resolution, meter - */ + * @brief Range resolution, meter + */ double get_rng_res() - { - return _rng_res; - }; + { + return _rng_res; + }; /** - * @brief Azimuth resolution, meter - */ + * @brief Azimuth resolution, meter + */ double get_azi_res() - { - return _azi_res; - }; + { + return _azi_res; + }; /** - * @brief Along track Doppler frequency terms - */ + * @brief Along track Doppler frequency terms + */ double* get_alt_dopcen() - { - return _alt_dopcen; - }; + { + return _alt_dopcen; + }; /** - * @brief Cross track Doppler frequency terms - */ + * @brief Cross track Doppler frequency terms + */ double* get_crt_dopcen() - { - return _crt_dopcen; - }; + { + return _crt_dopcen; + }; /** - * @brief Pixel time direction indicator - */ + * @brief Pixel time direction indicator + */ std::string get_time_dir_pix() - { - return _time_dir_pix; - }; + { + return _time_dir_pix; + }; /** - * @brief Line time direction indicator - */ + * @brief Line time direction indicator + */ std::string get_time_dir_lin() - { - return _time_dir_lin; - }; + { + return _time_dir_lin; + }; /** - * @brief Along track Doppler rate term - */ + * @brief Along track Doppler rate term + */ double* get_alt_rate() - { - return _alt_rate; - }; + { + return _alt_rate; + }; /** - * @brief Cross track Doppler rate term - */ + * @brief Cross track Doppler rate term + */ double* get_crt_rate() - { - return _crt_rate; - }; + { + return _crt_rate; + }; /** - * @brief Line content indicator - */ + * @brief Line content indicator + */ std::string get_line_cont() - { - return _line_cont; - }; + { + return _line_cont; + }; /** - * @brief Clutter lock applied flag - */ + * @brief Clutter lock applied flag + */ std::string get_clutter_lock() - { - return _clutter_lock; - }; + { + return _clutter_lock; + }; /** - * @brief Auto-focus applied flag - */ + * @brief Auto-focus applied flag + */ std::string get_auto_focus() - { - return _auto_focus; - }; + { + return _auto_focus; + }; /** - * @brief Line spacing, meters - */ + * @brief Line spacing, meters + */ double get_line_spacing() - { - return _line_spacing; - }; + { + return _line_spacing; + }; /** - * @brief Pixel spacing, meters - */ + * @brief Pixel spacing, meters + */ double get_pix_spacing() - { - return _pix_spacing; - }; + { + return _pix_spacing; + }; /** - * @brief Range compression designator - */ + * @brief Range compression designator + */ std::string get_rngcmp_desg() - { - return _rngcmp_desg; - }; + { + return _rngcmp_desg; + }; /** - * @Data from 1735 to 4096 to be added - */ + * @Data from 1735 to 4096 to be added + */ protected: - /** - * @brief Sequence number - */ - int _seq_num; - /** - * @brief SAR channel indicator - */ - int _sar_chn; - /** - * @brief Scene identifier - */ - std::string _scene_id; - /** - * @brief Scene designator - */ - std::string _scene_des; - /** - * @brief Input scene centre time - */ - std::string _inp_sctim; - /** - * @brief Ascending/descending - */ - std::string _asc_des; - /** - * @brief Processed scene centre latitude - */ - double _pro_lat; - /** - * @brief Processed scene centre longitude - */ - double _pro_long; - /** - * @brief Processed scene centre headng - */ - double _pro_head; - /** - * @brief Ellipsoid designator - */ - std::string _ellip_des; - /** - * @brief Ellipsoid semi-major axis, km - */ - double _ellip_maj; - /** - * @brief Ellipsoid semi_minor axis, km - */ - double _ellip_min; - /** - * @brief Earth's mass - */ + /** + * @brief Sequence number + */ + int _seq_num; + /** + * @brief SAR channel indicator + */ + int _sar_chn; + /** + * @brief Scene identifier + */ + std::string _scene_id; + /** + * @brief Scene designator + */ + std::string _scene_des; + /** + * @brief Input scene centre time + */ + std::string _inp_sctim; + /** + * @brief Ascending/descending + */ + std::string _asc_des; + /** + * @brief Processed scene centre latitude + */ + double _pro_lat; + /** + * @brief Processed scene centre longitude + */ + double _pro_long; + /** + * @brief Processed scene centre headng + */ + double _pro_head; + /** + * @brief Ellipsoid designator + */ + std::string _ellip_des; + /** + * @brief Ellipsoid semi-major axis, km + */ + double _ellip_maj; + /** + * @brief Ellipsoid semi_minor axis, km + */ + double _ellip_min; + /** + * @brief Earth's mass + */ double _earth_mass; /** - * @brief Gravitational constant - */ + * @brief Gravitational constant + */ double _grav_const; /** - * @brief Ellipsoid J2-4 parameters - */ + * @brief Ellipsoid J2-4 parameters + */ double _ellip_j[3]; /** - * @brief Average terrain height, km - */ + * @brief Average terrain height, km + */ double _terrain_h; /** - * @brief Scene centre line number - */ + * @brief Scene centre line number + */ int _sc_lin; /** - * @brief Scene centre pixel number - */ + * @brief Scene centre pixel number + */ int _sc_pix; /** - * @brief Scene length, km - */ + * @brief Scene length, km + */ double _scene_len; /** - * @brief Scene width, km - */ + * @brief Scene width, km + */ double _scene_wid; /** - * @brief Number of SAR channels - */ + * @brief Number of SAR channels + */ double _nchn; /** - * @brief Mission identifier - */ - std::string _mission_id; + * @brief Mission identifier + */ + std::string _mission_id; /** - * @brief Sensor identifier - */ - std::string _sensor_id; + * @brief Sensor identifier + */ + std::string _sensor_id; /** - * @brief Orbit number - */ - std::string _orbit_num; + * @brief Orbit number + */ + std::string _orbit_num; /** - * @brief Platform geodetic latitude - */ + * @brief Platform geodetic latitude + */ double _plat_lat; /** - * @brief Platform geodetic longitude - */ + * @brief Platform geodetic longitude + */ double _plat_long; /** - * @brief Platform heading - */ + * @brief Platform heading + */ double _plat_head; /** - * @brief Sensor clock angle - */ + * @brief Sensor clock angle + */ double _clock_ang; /** - * @brief Incidence angle - */ + * @brief Incidence angle + */ double _incident_ang; /** - * @brief Radar wave length - */ + * @brief Radar wave length + */ double _wave_length; /** - * @brief Motion compensation indicator - */ - std::string _motion_comp; + * @brief Motion compensation indicator + */ + std::string _motion_comp; /** - * @brief Range pulse code specifier - */ + * @brief Range pulse code specifier + */ std::string _pulse_code; /** - * @brief Range chirp coefficients - */ + * @brief Range chirp coefficients + */ double _ampl_coef[5]; /** - * @brief Range phase coefficients - */ + * @brief Range phase coefficients + */ double _phas_coef[5]; /** - * @brief Chirp extraction index - */ + * @brief Chirp extraction index + */ int _chirp_ext_ind; /** - * @brief Range sampling rate - */ + * @brief Range sampling rate + */ double _fr; /** - * @brief Range gate start time - */ + * @brief Range gate start time + */ double _rng_gate; /** - * @brief Range pulse length - */ + * @brief Range pulse length + */ double _rng_length; /** - * @brief Baseband conversion flag - */ - std::string _baseband_f; + * @brief Baseband conversion flag + */ + std::string _baseband_f; /** - * @brief Range compressed flag - */ + * @brief Range compressed flag + */ std::string _rngcmp_f; /** - * @brief Like polarized gain - */ + * @brief Like polarized gain + */ double _gn_polar; /** - * @brief Cross polarized gain - */ + * @brief Cross polarized gain + */ double _gn_cross; /** - * @brief Number of bits per channel - */ + * @brief Number of bits per channel + */ int _chn_bits; /** - * @brief Quantization descriptor - */ + * @brief Quantization descriptor + */ std::string _quant_desc; /** - * @brief I channel DC bias - */ + * @brief I channel DC bias + */ double _i_bias; /** - * @brief Q channel DC bias - */ + * @brief Q channel DC bias + */ double _q_bias; /** - * @brief I/Q channel ratio - */ + * @brief I/Q channel ratio + */ double _iq_ratio; /** - * @brief Mechanical boresight - */ + * @brief Mechanical boresight + */ double _mech_sight; /** - * @brief Nominal PRF, Hz - */ + * @brief Nominal PRF, Hz + */ double _fa; /** - * @brief Satellite binary time - */ + * @brief Satellite binary time + */ std::string _sat_bintim; /** - * @brief Satellite clock time - */ + * @brief Satellite clock time + */ std::string _sat_clktim; /** - * @brief Satellite clock increment - */ + * @brief Satellite clock increment + */ std::string _sat_clkinc; /** - * @brief Processing facility identifier - */ + * @brief Processing facility identifier + */ std::string _fac_id; /** - * @brief Processing system identifier - */ + * @brief Processing system identifier + */ std::string _sys_id; /** - * @brief Processing version identifier - */ + * @brief Processing version identifier + */ std::string _ver_id; /** - * @brief Product type specifier - */ + * @brief Product type specifier + */ std::string _prod_type; /** - * @brief Processing algorithm identifier - */ + * @brief Processing algorithm identifier + */ std::string _algor_id; /** - * @brief Number of azimuth looks - */ + * @brief Number of azimuth looks + */ double _n_azilok; /** - * @brief Number of range looks - */ + * @brief Number of range looks + */ double _n_rnglok; /** - * @brief Bandwidth per look in azimuth,Hz - */ + * @brief Bandwidth per look in azimuth,Hz + */ double _bnd_azilok; /** - * @brief Bandwidth per look in range,Hz - */ + * @brief Bandwidth per look in range,Hz + */ double _bnd_rnglok; /** - * @brief Total azimuth look bandwidth - */ + * @brief Total azimuth look bandwidth + */ double _bnd_azi; /** - * @brief Total range look bandwidth - */ + * @brief Total range look bandwidth + */ double _bnd_rng; /** - * @brief Azimuth weighting designator - */ + * @brief Azimuth weighting designator + */ std::string _azi_weight; /** - * @brief Range weighting designator - */ + * @brief Range weighting designator + */ std::string _rng_weight; /** - * @brief Data input source - */ + * @brief Data input source + */ std::string _data_inpsrc; /** - * @brief Range resolution, meter - */ + * @brief Range resolution, meter + */ double _rng_res; /** - * @brief Azimuth resolution, meter - */ + * @brief Azimuth resolution, meter + */ double _azi_res; /** - * @brief Along track Doppler frequency terms - */ + * @brief Along track Doppler frequency terms + */ double _alt_dopcen[3]; /** - * @brief Cross track Doppler frequency terms - */ + * @brief Cross track Doppler frequency terms + */ double _crt_dopcen[3]; /** - * @brief Pixel time direction indicator - */ + * @brief Pixel time direction indicator + */ std::string _time_dir_pix; /** - * @brief Line time direction indicator - */ + * @brief Line time direction indicator + */ std::string _time_dir_lin; /** - * @brief Along track Doppler rate term - */ + * @brief Along track Doppler rate term + */ double _alt_rate[3]; /** - * @brief Cross track Doppler rate term - */ + * @brief Cross track Doppler rate term + */ double _crt_rate[3]; /** - * @brief Line content indicator - */ + * @brief Line content indicator + */ std::string _line_cont; /** - * @brief Clutter lock applied flag - */ + * @brief Clutter lock applied flag + */ std::string _clutter_lock; /** - * @brief Auto-focus applied flag - */ + * @brief Auto-focus applied flag + */ std::string _auto_focus; /** - * @brief Line spacing, meters - */ + * @brief Line spacing, meters + */ double _line_spacing; /** - * @brief Pixel spacing, meters - */ + * @brief Pixel spacing, meters + */ double _pix_spacing; /** - * @brief Range compression designator - */ + * @brief Range compression designator + */ std::string _rngcmp_desg; /** - * @Data from 1735 to 4096 to be added - */ + * @Data from 1735 to 4096 to be added + */ private: }; - -#endif \ No newline at end of file +} +#endif diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.cpp index a17f77ecc29307bbd23e63591371916295874c5d..0684f46a6d44c4c24f6e143693bc76cf1c960586 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.cpp @@ -1,5 +1,8 @@ #include <AlosSarFacilityData.h> +namespace ossimplugins +{ + AlosSarFacilityData::AlosSarFacilityData() : AlosSarRecord("facility_data_rec") { } @@ -10,1142 +13,1143 @@ AlosSarFacilityData::~AlosSarFacilityData() std::ostream& operator<<(std::ostream& os, const AlosSarFacilityData& data) { - os<<"last_release_qc_date:"<<data._last_release_qc_date.c_str()<<std::endl; + os<<"last_release_qc_date:"<<data._last_release_qc_date.c_str()<<std::endl; - os<<"last_release_cal_date:"<<data._last_release_cal_date.c_str()<<std::endl; + os<<"last_release_cal_date:"<<data._last_release_cal_date.c_str()<<std::endl; - os<<"qa_summary_flag:"<<data._qa_summary_flag<<std::endl; + os<<"qa_summary_flag:"<<data._qa_summary_flag<<std::endl; - os<<"prf_code_change_flag:"<<data._prf_code_change_flag<<std::endl; + os<<"prf_code_change_flag:"<<data._prf_code_change_flag<<std::endl; - os<<"sampling_win_change_flag:"<<data._sampling_win_change_flag<<std::endl; + os<<"sampling_win_change_flag:"<<data._sampling_win_change_flag<<std::endl; - os<<"cal_gain_change_flag:"<<data._cal_gain_change_flag<<std::endl; + os<<"cal_gain_change_flag:"<<data._cal_gain_change_flag<<std::endl; - os<<"quirp_qu_flag:"<<data._quirp_qu_flag<<std::endl; + os<<"quirp_qu_flag:"<<data._quirp_qu_flag<<std::endl; - os<<"inp_data_stat_flag:"<<data._inp_data_stat_flag<<std::endl; + os<<"inp_data_stat_flag:"<<data._inp_data_stat_flag<<std::endl; - os<<"dopp_cent_conf_meas_flag:"<<data._dopp_cent_conf_meas_flag<<std::endl; + os<<"dopp_cent_conf_meas_flag:"<<data._dopp_cent_conf_meas_flag<<std::endl; - os<<"dopp_cent_val_flag:"<<data._dopp_cent_val_flag<<std::endl; + os<<"dopp_cent_val_flag:"<<data._dopp_cent_val_flag<<std::endl; - os<<"dopp_ambig_conf_meas_flag:"<<data._dopp_ambig_conf_meas_flag<<std::endl; + os<<"dopp_ambig_conf_meas_flag:"<<data._dopp_ambig_conf_meas_flag<<std::endl; - os<<"outp_data_mean_flag:"<<data._outp_data_mean_flag<<std::endl; + os<<"outp_data_mean_flag:"<<data._outp_data_mean_flag<<std::endl; - os<<"OGOB_flag:"<<data._OGOB_flag<<std::endl; + os<<"OGOB_flag:"<<data._OGOB_flag<<std::endl; - os<<"PRF_changes:"<<data._PRF_changes<<std::endl; + os<<"PRF_changes:"<<data._PRF_changes<<std::endl; - os<<"sampling_win_changes:"<<data._sampling_win_changes<<std::endl; + os<<"sampling_win_changes:"<<data._sampling_win_changes<<std::endl; - os<<"cal_gain_changes:"<<data._cal_gain_changes<<std::endl; + os<<"cal_gain_changes:"<<data._cal_gain_changes<<std::endl; - os<<"missing_lines:"<<data._missing_lines<<std::endl; + os<<"missing_lines:"<<data._missing_lines<<std::endl; - os<<"rec_gain_changes:"<<data._rec_gain_changes<<std::endl; + os<<"rec_gain_changes:"<<data._rec_gain_changes<<std::endl; - os<<"pulse_width_of_ACF_3db:"<<data._pulse_width_of_ACF_3db<<std::endl; + os<<"pulse_width_of_ACF_3db:"<<data._pulse_width_of_ACF_3db<<std::endl; - os<<"first_side_lobe_lev_of_ACF:"<<data._first_side_lobe_lev_of_ACF<<std::endl; + os<<"first_side_lobe_lev_of_ACF:"<<data._first_side_lobe_lev_of_ACF<<std::endl; - os<<"ISLR_of_ACF:"<<data._ISLR_of_ACF<<std::endl; + os<<"ISLR_of_ACF:"<<data._ISLR_of_ACF<<std::endl; - os<<"dopp_cent_conf_meas:"<<data._dopp_cent_conf_meas<<std::endl; + os<<"dopp_cent_conf_meas:"<<data._dopp_cent_conf_meas<<std::endl; - os<<"dopp_ambig_conf_meas:"<<data._dopp_ambig_conf_meas<<std::endl; + os<<"dopp_ambig_conf_meas:"<<data._dopp_ambig_conf_meas<<std::endl; - os<<"inp_data_I_mean:"<<data._inp_data_I_mean<<std::endl; + os<<"inp_data_I_mean:"<<data._inp_data_I_mean<<std::endl; - os<<"inp_data_Q_mean:"<<data._inp_data_Q_mean<<std::endl; + os<<"inp_data_Q_mean:"<<data._inp_data_Q_mean<<std::endl; - os<<"inp_data_I_stddev:"<<data._inp_data_I_stddev<<std::endl; + os<<"inp_data_I_stddev:"<<data._inp_data_I_stddev<<std::endl; - os<<"inp_data_Q_stddev:"<<data._inp_data_Q_stddev<<std::endl; + os<<"inp_data_Q_stddev:"<<data._inp_data_Q_stddev<<std::endl; - os<<"cal_sys_gain:"<<data._cal_sys_gain<<std::endl; + os<<"cal_sys_gain:"<<data._cal_sys_gain<<std::endl; - os<<"first_rec_gain_read:"<<data._first_rec_gain_read<<std::endl; + os<<"first_rec_gain_read:"<<data._first_rec_gain_read<<std::endl; - os<<"dopp_ambig_num:"<<data._dopp_ambig_num<<std::endl; + os<<"dopp_ambig_num:"<<data._dopp_ambig_num<<std::endl; - os<<"I_channel_bias_correction:"<<data._I_channel_bias_correction<<std::endl; + os<<"I_channel_bias_correction:"<<data._I_channel_bias_correction<<std::endl; - os<<"Q_channel_bias_correction:"<<data._Q_channel_bias_correction<<std::endl; + os<<"Q_channel_bias_correction:"<<data._Q_channel_bias_correction<<std::endl; - os<<"I_channel_gain_correction:"<<data._I_channel_gain_correction<<std::endl; + os<<"I_channel_gain_correction:"<<data._I_channel_gain_correction<<std::endl; - os<<"Q_channel_gain_correction:"<<data._Q_channel_gain_correction<<std::endl; + os<<"Q_channel_gain_correction:"<<data._Q_channel_gain_correction<<std::endl; - os<<"Q_channel_I_Q_correction:"<<data._Q_channel_I_Q_correction<<std::endl; + os<<"Q_channel_I_Q_correction:"<<data._Q_channel_I_Q_correction<<std::endl; - os<<"noise_power:"<<data._noise_power<<std::endl; + os<<"noise_power:"<<data._noise_power<<std::endl; - os<<"int_cal_utc:"<<data._int_cal_utc<<std::endl; + os<<"int_cal_utc:"<<data._int_cal_utc<<std::endl; - os<<"num_valid_cal_pulses:"<<data._num_valid_cal_pulses<<std::endl; + os<<"num_valid_cal_pulses:"<<data._num_valid_cal_pulses<<std::endl; - os<<"num_valid_noise_pulses:"<<data._num_valid_noise_pulses<<std::endl; + os<<"num_valid_noise_pulses:"<<data._num_valid_noise_pulses<<std::endl; - os<<"num_valid_replicas:"<<data._num_valid_replicas<<std::endl; + os<<"num_valid_replicas:"<<data._num_valid_replicas<<std::endl; - os<<"first_replica_sample:"<<data._first_replica_sample<<std::endl; + os<<"first_replica_sample:"<<data._first_replica_sample<<std::endl; - os<<"mean_cal_pulse_power:"<<data._mean_cal_pulse_power<<std::endl; + os<<"mean_cal_pulse_power:"<<data._mean_cal_pulse_power<<std::endl; - os<<"mean_noise_power:"<<data._mean_noise_power<<std::endl; + os<<"mean_noise_power:"<<data._mean_noise_power<<std::endl; - os<<"range_comp_norm_fact:"<<data._range_comp_norm_fact<<std::endl; + os<<"range_comp_norm_fact:"<<data._range_comp_norm_fact<<std::endl; - os<<"replica_power:"<<data._replica_power<<std::endl; + os<<"replica_power:"<<data._replica_power<<std::endl; - os<<"first_range_pixel_mid_az_inc:"<<data._first_range_pixel_mid_az_inc<<std::endl; + os<<"first_range_pixel_mid_az_inc:"<<data._first_range_pixel_mid_az_inc<<std::endl; - os<<"center_range_pix_mid_az_inc:"<<data._center_range_pix_mid_az_inc<<std::endl; + os<<"center_range_pix_mid_az_inc:"<<data._center_range_pix_mid_az_inc<<std::endl; - os<<"last_range_pix_mid_az_inc:"<<data._last_range_pix_mid_az_inc<<std::endl; + os<<"last_range_pix_mid_az_inc:"<<data._last_range_pix_mid_az_inc<<std::endl; - os<<"norm_ref_range_ro:"<<data._norm_ref_range_ro<<std::endl; + os<<"norm_ref_range_ro:"<<data._norm_ref_range_ro<<std::endl; - os<<"antenna_elev_flag:"<<data._antenna_elev_flag<<std::endl; + os<<"antenna_elev_flag:"<<data._antenna_elev_flag<<std::endl; - os<<"abs_cal_const_K:"<<data._abs_cal_const_K<<std::endl; + os<<"abs_cal_const_K:"<<data._abs_cal_const_K<<std::endl; - os<<"upp_bound_K:"<<data._upp_bound_K<<std::endl; + os<<"upp_bound_K:"<<data._upp_bound_K<<std::endl; - os<<"low_bound_K:"<<data._low_bound_K<<std::endl; + os<<"low_bound_K:"<<data._low_bound_K<<std::endl; - os<<"proc_noise_scale_fact:"<<data._proc_noise_scale_fact<<std::endl; + os<<"proc_noise_scale_fact:"<<data._proc_noise_scale_fact<<std::endl; - os<<"K_gen_date:"<<data._K_gen_date.c_str()<<std::endl; + os<<"K_gen_date:"<<data._K_gen_date.c_str()<<std::endl; - os<<"K_vers_num:"<<data._K_vers_num.c_str()<<std::endl; + os<<"K_vers_num:"<<data._K_vers_num.c_str()<<std::endl; - os<<"num_duplic_input_lines:"<<data._num_duplic_input_lines<<std::endl; + os<<"num_duplic_input_lines:"<<data._num_duplic_input_lines<<std::endl; - os<<"estim_bit_error_rate:"<<data._estim_bit_error_rate<<std::endl; + os<<"estim_bit_error_rate:"<<data._estim_bit_error_rate<<std::endl; - os<<"out_image_mean:"<<data._out_image_mean<<std::endl; + os<<"out_image_mean:"<<data._out_image_mean<<std::endl; - os<<"out_image_std_dev:"<<data._out_image_std_dev<<std::endl; + os<<"out_image_std_dev:"<<data._out_image_std_dev<<std::endl; - os<<"out_image_max_value:"<<data._out_image_max_value<<std::endl; + os<<"out_image_max_value:"<<data._out_image_max_value<<std::endl; - os<<"time_raw_data_first_input:"<<data._time_raw_data_first_input.c_str()<<std::endl; + os<<"time_raw_data_first_input:"<<data._time_raw_data_first_input.c_str()<<std::endl; - os<<"time_asc_node_state_vectors:"<<data._time_asc_node_state_vectors.c_str()<<std::endl; + os<<"time_asc_node_state_vectors:"<<data._time_asc_node_state_vectors.c_str()<<std::endl; - os<<"asc_node_pos_X_comp:"<<data._asc_node_pos_X_comp.c_str()<<std::endl; + os<<"asc_node_pos_X_comp:"<<data._asc_node_pos_X_comp.c_str()<<std::endl; - os<<"asc_node_pos_Y_comp:"<<data._asc_node_pos_Y_comp.c_str()<<std::endl; + os<<"asc_node_pos_Y_comp:"<<data._asc_node_pos_Y_comp.c_str()<<std::endl; - os<<"asc_node_pos_Z_comp:"<<data._asc_node_pos_Z_comp.c_str()<<std::endl; + os<<"asc_node_pos_Z_comp:"<<data._asc_node_pos_Z_comp.c_str()<<std::endl; - os<<"asc_node_vel_X_comp:"<<data._asc_node_vel_X_comp.c_str()<<std::endl; + os<<"asc_node_vel_X_comp:"<<data._asc_node_vel_X_comp.c_str()<<std::endl; - os<<"asc_node_vel_Y_comp:"<<data._asc_node_vel_Y_comp.c_str()<<std::endl; + os<<"asc_node_vel_Y_comp:"<<data._asc_node_vel_Y_comp.c_str()<<std::endl; - os<<"asc_node_vel_Z_comp:"<<data._asc_node_vel_Z_comp.c_str()<<std::endl; + os<<"asc_node_vel_Z_comp:"<<data._asc_node_vel_Z_comp.c_str()<<std::endl; - os<<"out_pixel_bit_length:"<<data._out_pixel_bit_length<<std::endl; + os<<"out_pixel_bit_length:"<<data._out_pixel_bit_length<<std::endl; - os<<"proc_gain_param_1:"<<data._proc_gain_param_1<<std::endl; + os<<"proc_gain_param_1:"<<data._proc_gain_param_1<<std::endl; - os<<"proc_gain_param_2:"<<data._proc_gain_param_2<<std::endl; + os<<"proc_gain_param_2:"<<data._proc_gain_param_2<<std::endl; - os<<"proc_gain_param_3:"<<data._proc_gain_param_3<<std::endl; + os<<"proc_gain_param_3:"<<data._proc_gain_param_3<<std::endl; - os<<"peak_loc_cross_correl_fun:"<<data._peak_loc_cross_correl_fun<<std::endl; + os<<"peak_loc_cross_correl_fun:"<<data._peak_loc_cross_correl_fun<<std::endl; - os<<"3_dB_width_CCF:"<<data._3_dB_width_CCF<<std::endl; + os<<"3_dB_width_CCF:"<<data._3_dB_width_CCF<<std::endl; - os<<"first_side_lobe_level:"<<data._first_side_lobe_level<<std::endl; + os<<"first_side_lobe_level:"<<data._first_side_lobe_level<<std::endl; - os<<"ISLR_CCF_between_last:"<<data._ISLR_CCF_between_last<<std::endl; + os<<"ISLR_CCF_between_last:"<<data._ISLR_CCF_between_last<<std::endl; - os<<"peak_loc_CCF_betw_last:"<<data._peak_loc_CCF_betw_last<<std::endl; + os<<"peak_loc_CCF_betw_last:"<<data._peak_loc_CCF_betw_last<<std::endl; - os<<"Roll_Tilt_Mode_flag:"<<data._Roll_Tilt_Mode_flag<<std::endl; + os<<"Roll_Tilt_Mode_flag:"<<data._Roll_Tilt_Mode_flag<<std::endl; - os<<"raw_data_correction_flag:"<<data._raw_data_correction_flag<<std::endl; + os<<"raw_data_correction_flag:"<<data._raw_data_correction_flag<<std::endl; - os<<"look_detecion_flag:"<<data._look_detecion_flag<<std::endl; + os<<"look_detecion_flag:"<<data._look_detecion_flag<<std::endl; - os<<"doppler_ambiguity_estimat_flag:"<<data._doppler_ambiguity_estimat_flag<<std::endl; + os<<"doppler_ambiguity_estimat_flag:"<<data._doppler_ambiguity_estimat_flag<<std::endl; - os<<"azimuth_baseband_convers_flag:"<<data._azimuth_baseband_convers_flag<<std::endl; + os<<"azimuth_baseband_convers_flag:"<<data._azimuth_baseband_convers_flag<<std::endl; - os<<"samples_per_line_used:"<<data._samples_per_line_used<<std::endl; + os<<"samples_per_line_used:"<<data._samples_per_line_used<<std::endl; - os<<"range_lines_skip_factor:"<<data._range_lines_skip_factor<<std::endl; + os<<"range_lines_skip_factor:"<<data._range_lines_skip_factor<<std::endl; - os<<"time_of_inp_state_vectors:"<<data._time_of_inp_state_vectors.c_str()<<std::endl; + os<<"time_of_inp_state_vectors:"<<data._time_of_inp_state_vectors.c_str()<<std::endl; - os<<"inp_state_vect_pos_X_comp:"<<data._inp_state_vect_pos_X_comp.c_str()<<std::endl; + os<<"inp_state_vect_pos_X_comp:"<<data._inp_state_vect_pos_X_comp.c_str()<<std::endl; - os<<"inp_state_vect_pos_Y_comp:"<<data._inp_state_vect_pos_Y_comp.c_str()<<std::endl; + os<<"inp_state_vect_pos_Y_comp:"<<data._inp_state_vect_pos_Y_comp.c_str()<<std::endl; - os<<"inp_state_vect_pos_Z_comp:"<<data._inp_state_vect_pos_Z_comp.c_str()<<std::endl; + os<<"inp_state_vect_pos_Z_comp:"<<data._inp_state_vect_pos_Z_comp.c_str()<<std::endl; - os<<"inp_state_vect_vel_Vx_comp:"<<data._inp_state_vect_vel_Vx_comp.c_str()<<std::endl; + os<<"inp_state_vect_vel_Vx_comp:"<<data._inp_state_vect_vel_Vx_comp.c_str()<<std::endl; - os<<"inp_state_vect_vel_Vy_comp:"<<data._inp_state_vect_vel_Vy_comp.c_str()<<std::endl; + os<<"inp_state_vect_vel_Vy_comp:"<<data._inp_state_vect_vel_Vy_comp.c_str()<<std::endl; - os<<"inp_state_vect_vel_Vz_comp:"<<data._inp_state_vect_vel_Vz_comp.c_str()<<std::endl; + os<<"inp_state_vect_vel_Vz_comp:"<<data._inp_state_vect_vel_Vz_comp.c_str()<<std::endl; - os<<"inp_state_vector_type_flag:"<<data._inp_state_vector_type_flag<<std::endl; + os<<"inp_state_vector_type_flag:"<<data._inp_state_vector_type_flag<<std::endl; - os<<"win_coeff_for_range_match:"<<data._win_coeff_for_range_match<<std::endl; + os<<"win_coeff_for_range_match:"<<data._win_coeff_for_range_match<<std::endl; - os<<"win_coeff_for_azi_match:"<<data._win_coeff_for_azi_match<<std::endl; + os<<"win_coeff_for_azi_match:"<<data._win_coeff_for_azi_match<<std::endl; - os<<"update_period_range_match:"<<data._update_period_range_match<<std::endl; + os<<"update_period_range_match:"<<data._update_period_range_match<<std::endl; - os<<"look_scalar_gain_1:"<<data._look_scalar_gain_1<<std::endl; + os<<"look_scalar_gain_1:"<<data._look_scalar_gain_1<<std::endl; - os<<"look_scalar_gain_2:"<<data._look_scalar_gain_2<<std::endl; + os<<"look_scalar_gain_2:"<<data._look_scalar_gain_2<<std::endl; - os<<"look_scalar_gain_3:"<<data._look_scalar_gain_3<<std::endl; + os<<"look_scalar_gain_3:"<<data._look_scalar_gain_3<<std::endl; - os<<"look_scalar_gain_4:"<<data._look_scalar_gain_4<<std::endl; + os<<"look_scalar_gain_4:"<<data._look_scalar_gain_4<<std::endl; - os<<"look_scalar_gain_5:"<<data._look_scalar_gain_5<<std::endl; + os<<"look_scalar_gain_5:"<<data._look_scalar_gain_5<<std::endl; - os<<"look_scalar_gain_6:"<<data._look_scalar_gain_6<<std::endl; + os<<"look_scalar_gain_6:"<<data._look_scalar_gain_6<<std::endl; - os<<"look_scalar_gain_7:"<<data._look_scalar_gain_7<<std::endl; + os<<"look_scalar_gain_7:"<<data._look_scalar_gain_7<<std::endl; - os<<"look_scalar_gain_8:"<<data._look_scalar_gain_8<<std::endl; + os<<"look_scalar_gain_8:"<<data._look_scalar_gain_8<<std::endl; - os<<"samp_window_start_time_bias:"<<data._samp_window_start_time_bias<<std::endl; + os<<"samp_window_start_time_bias:"<<data._samp_window_start_time_bias<<std::endl; - os<<"doppler_centroid_cubic_coeff:"<<data._doppler_centroid_cubic_coeff<<std::endl; + os<<"doppler_centroid_cubic_coeff:"<<data._doppler_centroid_cubic_coeff<<std::endl; - os<<"PRF_code_first_range_line:"<<data._PRF_code_first_range_line<<std::endl; + os<<"PRF_code_first_range_line:"<<data._PRF_code_first_range_line<<std::endl; - os<<"PRF_code_last_range_line:"<<data._PRF_code_last_range_line<<std::endl; + os<<"PRF_code_last_range_line:"<<data._PRF_code_last_range_line<<std::endl; - os<<"samp_win_start_first:"<<data._samp_win_start_first<<std::endl; + os<<"samp_win_start_first:"<<data._samp_win_start_first<<std::endl; - os<<"samp_win_start_last:"<<data._samp_win_start_last<<std::endl; + os<<"samp_win_start_last:"<<data._samp_win_start_last<<std::endl; - os<<"cal_syst_gain_last_proc:"<<data._cal_syst_gain_last_proc<<std::endl; + os<<"cal_syst_gain_last_proc:"<<data._cal_syst_gain_last_proc<<std::endl; - os<<"receiver_gain_last_proc:"<<data._receiver_gain_last_proc<<std::endl; + os<<"receiver_gain_last_proc:"<<data._receiver_gain_last_proc<<std::endl; - os<<"first_processed_range_sample:"<<data._first_processed_range_sample<<std::endl; + os<<"first_processed_range_sample:"<<data._first_processed_range_sample<<std::endl; - os<<"azimuth_FFT_IFFT_ratio:"<<data._azimuth_FFT_IFFT_ratio<<std::endl; + os<<"azimuth_FFT_IFFT_ratio:"<<data._azimuth_FFT_IFFT_ratio<<std::endl; - os<<"num_azimuth_blocks_proc:"<<data._num_azimuth_blocks_proc<<std::endl; + os<<"num_azimuth_blocks_proc:"<<data._num_azimuth_blocks_proc<<std::endl; - os<<"num_input_raw_data_lines:"<<data._num_input_raw_data_lines<<std::endl; + os<<"num_input_raw_data_lines:"<<data._num_input_raw_data_lines<<std::endl; - os<<"initial_doppler_ambiguity_num:"<<data._initial_doppler_ambiguity_num<<std::endl; + os<<"initial_doppler_ambiguity_num:"<<data._initial_doppler_ambiguity_num<<std::endl; - os<<"thresh_no_1_flag:"<<data._thresh_no_1_flag<<std::endl; + os<<"thresh_no_1_flag:"<<data._thresh_no_1_flag<<std::endl; - os<<"thresh_no_2_flag:"<<data._thresh_no_2_flag<<std::endl; + os<<"thresh_no_2_flag:"<<data._thresh_no_2_flag<<std::endl; - os<<"thresh_no_3_flag:"<<data._thresh_no_3_flag<<std::endl; + os<<"thresh_no_3_flag:"<<data._thresh_no_3_flag<<std::endl; - os<<"thresh_no_4_flag:"<<data._thresh_no_4_flag<<std::endl; + os<<"thresh_no_4_flag:"<<data._thresh_no_4_flag<<std::endl; - os<<"thresh_no_5_flag:"<<data._thresh_no_5_flag<<std::endl; + os<<"thresh_no_5_flag:"<<data._thresh_no_5_flag<<std::endl; - os<<"thresh_no_6_flag:"<<data._thresh_no_6_flag<<std::endl; + os<<"thresh_no_6_flag:"<<data._thresh_no_6_flag<<std::endl; - os<<"thresh_no_7_flag:"<<data._thresh_no_7_flag<<std::endl; + os<<"thresh_no_7_flag:"<<data._thresh_no_7_flag<<std::endl; - os<<"thresh_no_8_flag:"<<data._thresh_no_8_flag<<std::endl; + os<<"thresh_no_8_flag:"<<data._thresh_no_8_flag<<std::endl; - os<<"thresh_no_9_flag:"<<data._thresh_no_9_flag<<std::endl; + os<<"thresh_no_9_flag:"<<data._thresh_no_9_flag<<std::endl; - os<<"thresh_no_10_flag:"<<data._thresh_no_10_flag<<std::endl; + os<<"thresh_no_10_flag:"<<data._thresh_no_10_flag<<std::endl; - os<<"thresh_no_11_flag:"<<data._thresh_no_11_flag<<std::endl; + os<<"thresh_no_11_flag:"<<data._thresh_no_11_flag<<std::endl; - os<<"sat_binary_time_of_first:"<<data._sat_binary_time_of_first<<std::endl; + os<<"sat_binary_time_of_first:"<<data._sat_binary_time_of_first<<std::endl; - os<<"num_valid_pixels_per_range:"<<data._num_valid_pixels_per_range<<std::endl; + os<<"num_valid_pixels_per_range:"<<data._num_valid_pixels_per_range<<std::endl; - os<<"num_range_samp_discarded:"<<data._num_range_samp_discarded<<std::endl; + os<<"num_range_samp_discarded:"<<data._num_range_samp_discarded<<std::endl; - os<<"I_gain_imb_lower_bound:"<<data._I_gain_imb_lower_bound<<std::endl; + os<<"I_gain_imb_lower_bound:"<<data._I_gain_imb_lower_bound<<std::endl; - os<<"I_gain_imb_upper_bound:"<<data._I_gain_imb_upper_bound<<std::endl; + os<<"I_gain_imb_upper_bound:"<<data._I_gain_imb_upper_bound<<std::endl; - os<<"I_Q_quad_depar_lower_bound:"<<data._I_Q_quad_depar_lower_bound<<std::endl; + os<<"I_Q_quad_depar_lower_bound:"<<data._I_Q_quad_depar_lower_bound<<std::endl; - os<<"I_Q_quad_depar_upper_bound:"<<data._I_Q_quad_depar_upper_bound<<std::endl; + os<<"I_Q_quad_depar_upper_bound:"<<data._I_Q_quad_depar_upper_bound<<std::endl; - os<<"3_dB_look_bandwidth:"<<data._3_dB_look_bandwidth<<std::endl; + os<<"3_dB_look_bandwidth:"<<data._3_dB_look_bandwidth<<std::endl; - os<<"3_dB_look_proc_dopp_bandw:"<<data._3_dB_look_proc_dopp_bandw<<std::endl; + os<<"3_dB_look_proc_dopp_bandw:"<<data._3_dB_look_proc_dopp_bandw<<std::endl; - os<<"range_spread_loss_comp_flag:"<<data._range_spread_loss_comp_flag<<std::endl; + os<<"range_spread_loss_comp_flag:"<<data._range_spread_loss_comp_flag<<std::endl; - os<<"datation_flag:"<<data._datation_flag<<std::endl; + os<<"datation_flag:"<<data._datation_flag<<std::endl; - os<<"max_error_range_line_timing:"<<data._max_error_range_line_timing<<std::endl; + os<<"max_error_range_line_timing:"<<data._max_error_range_line_timing<<std::endl; - os<<"form_num_range_line_used:"<<data._form_num_range_line_used<<std::endl; + os<<"form_num_range_line_used:"<<data._form_num_range_line_used<<std::endl; - os<<"autom_look_scal_gain_flag:"<<data._autom_look_scal_gain_flag<<std::endl; + os<<"autom_look_scal_gain_flag:"<<data._autom_look_scal_gain_flag<<std::endl; - os<<"max_value_look_scalar_gain:"<<data._max_value_look_scalar_gain<<std::endl; + os<<"max_value_look_scalar_gain:"<<data._max_value_look_scalar_gain<<std::endl; - os<<"replica_norm_method_flag:"<<data._replica_norm_method_flag<<std::endl; + os<<"replica_norm_method_flag:"<<data._replica_norm_method_flag<<std::endl; - os<<"coef_ground_range_1:"<<data._coef_ground_range_1<<std::endl; + os<<"coef_ground_range_1:"<<data._coef_ground_range_1<<std::endl; - os<<"coef_ground_range_2:"<<data._coef_ground_range_2<<std::endl; + os<<"coef_ground_range_2:"<<data._coef_ground_range_2<<std::endl; - os<<"coef_ground_range_3:"<<data._coef_ground_range_3<<std::endl; + os<<"coef_ground_range_3:"<<data._coef_ground_range_3<<std::endl; - os<<"coef_ground_range_4:"<<data._coef_ground_range_4<<std::endl; + os<<"coef_ground_range_4:"<<data._coef_ground_range_4<<std::endl; - os<<"coef_ant_elev_1:"<<data._coef_ant_elev_1<<std::endl; + os<<"coef_ant_elev_1:"<<data._coef_ant_elev_1<<std::endl; - os<<"coef_ant_elev_2:"<<data._coef_ant_elev_2<<std::endl; + os<<"coef_ant_elev_2:"<<data._coef_ant_elev_2<<std::endl; - os<<"coef_ant_elev_3:"<<data._coef_ant_elev_3<<std::endl; + os<<"coef_ant_elev_3:"<<data._coef_ant_elev_3<<std::endl; - os<<"coef_ant_elev_4:"<<data._coef_ant_elev_4<<std::endl; + os<<"coef_ant_elev_4:"<<data._coef_ant_elev_4<<std::endl; - os<<"coef_ant_elev_5:"<<data._coef_ant_elev_5<<std::endl; + os<<"coef_ant_elev_5:"<<data._coef_ant_elev_5<<std::endl; - os<<"range_time_origin_ant:"<<data._range_time_origin_ant<<std::endl; + os<<"range_time_origin_ant:"<<data._range_time_origin_ant<<std::endl; - return os; + return os; } std::istream& operator>>(std::istream& is, AlosSarFacilityData& data) { - char buf64[65]; - buf64[64] = '\0'; - char buf32[33]; - buf32[32] = '\0'; - char buf24[25]; - buf24[24]='\0'; - char buf22[23]; - buf22[22]='\0'; - char buf20[21]; - buf20[20]='\0'; - char buf16[17]; - buf16[16]='\0'; - char buf12[13]; - buf12[12] = '\0'; - char buf7[8]; - buf7[7] = '\0'; - char buf8[9]; - buf8[8] = '\0'; - char buf6[7]; - buf6[6] = '\0'; - char buf4[5]; - buf4[4] = '\0'; - char buf2[3]; - buf2[2] = '\0'; - char buf1[2]; - buf1[1] = '\0'; + char buf64[65]; + buf64[64] = '\0'; + char buf32[33]; + buf32[32] = '\0'; + char buf24[25]; + buf24[24]='\0'; + char buf22[23]; + buf22[22]='\0'; + char buf20[21]; + buf20[20]='\0'; + char buf16[17]; + buf16[16]='\0'; + char buf12[13]; + buf12[12] = '\0'; + char buf7[8]; + buf7[7] = '\0'; + char buf8[9]; + buf8[8] = '\0'; + char buf6[7]; + buf6[6] = '\0'; + char buf4[5]; + buf4[4] = '\0'; + char buf2[3]; + buf2[2] = '\0'; + char buf1[2]; + buf1[1] = '\0'; - is.read(buf64,64); - data._name_of_facil_rec = buf64; + is.read(buf64,64); + data._name_of_facil_rec = buf64; - is.read(buf6,6); - data._last_release_qc_date = buf6; + is.read(buf6,6); + data._last_release_qc_date = buf6; - is.read(buf2,2); + is.read(buf2,2); - is.read(buf6,6); - data._last_release_cal_date = buf6; + is.read(buf6,6); + data._last_release_cal_date = buf6; - is.read(buf4,4); - data._qa_summary_flag = atoi(buf4); + is.read(buf4,4); + data._qa_summary_flag = atoi(buf4); - is.read(buf4,4); - data._prf_code_change_flag = atoi(buf4); + is.read(buf4,4); + data._prf_code_change_flag = atoi(buf4); - is.read(buf4,4); - data._sampling_win_change_flag = atoi(buf4); + is.read(buf4,4); + data._sampling_win_change_flag = atoi(buf4); - is.read(buf4,4); - data._cal_gain_change_flag = atoi(buf4); + is.read(buf4,4); + data._cal_gain_change_flag = atoi(buf4); - is.read(buf4,4); - data._quirp_qu_flag = atoi(buf4); + is.read(buf4,4); + data._quirp_qu_flag = atoi(buf4); - is.read(buf4,4); - data._inp_data_stat_flag = atoi(buf4); + is.read(buf4,4); + data._inp_data_stat_flag = atoi(buf4); - is.read(buf4,4); - data._dopp_cent_conf_meas_flag = atoi(buf4); + is.read(buf4,4); + data._dopp_cent_conf_meas_flag = atoi(buf4); - is.read(buf4,4); - data._dopp_cent_val_flag = atoi(buf4); + is.read(buf4,4); + data._dopp_cent_val_flag = atoi(buf4); - is.read(buf4,4); - data._dopp_ambig_conf_meas_flag = atoi(buf4); + is.read(buf4,4); + data._dopp_ambig_conf_meas_flag = atoi(buf4); - is.read(buf4,4); - data._outp_data_mean_flag = atoi(buf4); + is.read(buf4,4); + data._outp_data_mean_flag = atoi(buf4); - is.read(buf4,4); - data._OGOB_flag = atoi(buf4); + is.read(buf4,4); + data._OGOB_flag = atoi(buf4); - is.read(buf4,4); - data._PRF_changes = atoi(buf4); + is.read(buf4,4); + data._PRF_changes = atoi(buf4); - is.read(buf4,4); - data._sampling_win_changes = atoi(buf4); + is.read(buf4,4); + data._sampling_win_changes = atoi(buf4); - is.read(buf4,4); - data._cal_gain_changes = atoi(buf4); + is.read(buf4,4); + data._cal_gain_changes = atoi(buf4); - is.read(buf4,4); - data._missing_lines = atoi(buf4); + is.read(buf4,4); + data._missing_lines = atoi(buf4); - is.read(buf4,4); - data._rec_gain_changes = atoi(buf4); + is.read(buf4,4); + data._rec_gain_changes = atoi(buf4); - is.read(buf16,16); - data._pulse_width_of_ACF_3db = atof(buf16); + is.read(buf16,16); + data._pulse_width_of_ACF_3db = atof(buf16); - is.read(buf16,16); - data._first_side_lobe_lev_of_ACF = atof(buf16); + is.read(buf16,16); + data._first_side_lobe_lev_of_ACF = atof(buf16); - is.read(buf16,16); - data._ISLR_of_ACF = atof(buf16); + is.read(buf16,16); + data._ISLR_of_ACF = atof(buf16); - is.read(buf16,16); - data._dopp_cent_conf_meas = atof(buf16); + is.read(buf16,16); + data._dopp_cent_conf_meas = atof(buf16); - is.read(buf16,16); - data._dopp_ambig_conf_meas = atof(buf16); + is.read(buf16,16); + data._dopp_ambig_conf_meas = atof(buf16); - is.read(buf16,16); - data._inp_data_I_mean = atof(buf16); + is.read(buf16,16); + data._inp_data_I_mean = atof(buf16); - is.read(buf16,16); - data._inp_data_Q_mean = atof(buf16); + is.read(buf16,16); + data._inp_data_Q_mean = atof(buf16); - is.read(buf16,16); - data._inp_data_I_stddev = atof(buf16); + is.read(buf16,16); + data._inp_data_I_stddev = atof(buf16); - is.read(buf16,16); - data._inp_data_Q_stddev = atof(buf16); + is.read(buf16,16); + data._inp_data_Q_stddev = atof(buf16); - is.read(buf16,16); - data._cal_sys_gain = atof(buf16); + is.read(buf16,16); + data._cal_sys_gain = atof(buf16); - is.read(buf16,16); - data._first_rec_gain_read = atof(buf16); + is.read(buf16,16); + data._first_rec_gain_read = atof(buf16); - is.read(buf16,16); - data._dopp_ambig_num = atof(buf16); + is.read(buf16,16); + data._dopp_ambig_num = atof(buf16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf16,16); - data._I_channel_bias_correction = atof(buf16); + is.read(buf16,16); + data._I_channel_bias_correction = atof(buf16); - is.read(buf16,16); - data._Q_channel_bias_correction = atof(buf16); + is.read(buf16,16); + data._Q_channel_bias_correction = atof(buf16); - is.read(buf16,16); - data._I_channel_gain_correction = atof(buf16); + is.read(buf16,16); + data._I_channel_gain_correction = atof(buf16); - is.read(buf16,16); - data._Q_channel_gain_correction = atof(buf16); + is.read(buf16,16); + data._Q_channel_gain_correction = atof(buf16); - is.read(buf16,16); - data._Q_channel_I_Q_correction = atof(buf16); + is.read(buf16,16); + data._Q_channel_I_Q_correction = atof(buf16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf16,16); - data._noise_power = atof(buf16); + is.read(buf16,16); + data._noise_power = atof(buf16); - is.read(buf16,16); - data._int_cal_utc = atoi(buf16); + is.read(buf16,16); + data._int_cal_utc = atoi(buf16); - is.read(buf4,4); - data._num_valid_cal_pulses = atoi(buf4); + is.read(buf4,4); + data._num_valid_cal_pulses = atoi(buf4); - is.read(buf4,4); - data._num_valid_noise_pulses = atoi(buf4); + is.read(buf4,4); + data._num_valid_noise_pulses = atoi(buf4); - is.read(buf4,4); - data._num_valid_replicas = atoi(buf4); + is.read(buf4,4); + data._num_valid_replicas = atoi(buf4); - is.read(buf16,16); - data._first_replica_sample = atof(buf16); + is.read(buf16,16); + data._first_replica_sample = atof(buf16); - is.read(buf16,16); - data._mean_cal_pulse_power = atof(buf16); + is.read(buf16,16); + data._mean_cal_pulse_power = atof(buf16); - is.read(buf16,16); - data._mean_noise_power = atof(buf16); + is.read(buf16,16); + data._mean_noise_power = atof(buf16); - is.read(buf16,16); - data._range_comp_norm_fact = atof(buf16); + is.read(buf16,16); + data._range_comp_norm_fact = atof(buf16); - is.read(buf16,16); - data._replica_power = atof(buf16); + is.read(buf16,16); + data._replica_power = atof(buf16); - is.read(buf16,16); - data._first_range_pixel_mid_az_inc = atof(buf16); + is.read(buf16,16); + data._first_range_pixel_mid_az_inc = atof(buf16); - is.read(buf16,16); - data._center_range_pix_mid_az_inc = atof(buf16); + is.read(buf16,16); + data._center_range_pix_mid_az_inc = atof(buf16); - is.read(buf16,16); - data._last_range_pix_mid_az_inc = atof(buf16); + is.read(buf16,16); + data._last_range_pix_mid_az_inc = atof(buf16); - is.read(buf16,16); - data._norm_ref_range_ro = atof(buf16); + is.read(buf16,16); + data._norm_ref_range_ro = atof(buf16); - is.read(buf12,12); + is.read(buf12,12); - is.read(buf4,4); - data._antenna_elev_flag = atoi(buf4); + is.read(buf4,4); + data._antenna_elev_flag = atoi(buf4); - is.read(buf16,16); - data._abs_cal_const_K = atof(buf16); + is.read(buf16,16); + data._abs_cal_const_K = atof(buf16); - is.read(buf16,16); - data._upp_bound_K = atof(buf16); + is.read(buf16,16); + data._upp_bound_K = atof(buf16); - is.read(buf16,16); - data._low_bound_K = atof(buf16); + is.read(buf16,16); + data._low_bound_K = atof(buf16); - is.read(buf16,16); - data._proc_noise_scale_fact = atof(buf16); + is.read(buf16,16); + data._proc_noise_scale_fact = atof(buf16); - is.read(buf6,6); - data._K_gen_date = buf6; + is.read(buf6,6); + data._K_gen_date = buf6; - is.read(buf4,4); - data._K_vers_num = buf4; + is.read(buf4,4); + data._K_vers_num = buf4; - is.read(buf4,4); - data._num_duplic_input_lines = atoi(buf4); + is.read(buf4,4); + data._num_duplic_input_lines = atoi(buf4); - is.read(buf16,16); - data._estim_bit_error_rate = atof(buf16); + is.read(buf16,16); + data._estim_bit_error_rate = atof(buf16); - is.read(buf12,12); + is.read(buf12,12); - is.read(buf16,16); - data._out_image_mean = atof(buf16); + is.read(buf16,16); + data._out_image_mean = atof(buf16); - is.read(buf16,16); - data._out_image_std_dev = atof(buf16); + is.read(buf16,16); + data._out_image_std_dev = atof(buf16); - is.read(buf16,16); - data._out_image_max_value = atof(buf16); + is.read(buf16,16); + data._out_image_max_value = atof(buf16); - is.read(buf24,24); - data._time_raw_data_first_input = buf24; + is.read(buf24,24); + data._time_raw_data_first_input = buf24; - is.read(buf24,24); - data._time_asc_node_state_vectors = buf24; + is.read(buf24,24); + data._time_asc_node_state_vectors = buf24; - is.read(buf22,22); - data._asc_node_pos_X_comp = buf22; + is.read(buf22,22); + data._asc_node_pos_X_comp = buf22; - is.read(buf22,22); - data._asc_node_pos_Y_comp = buf22; + is.read(buf22,22); + data._asc_node_pos_Y_comp = buf22; - is.read(buf22,22); - data._asc_node_pos_Z_comp = buf22; + is.read(buf22,22); + data._asc_node_pos_Z_comp = buf22; - is.read(buf22,22); - data._asc_node_vel_X_comp = buf22; + is.read(buf22,22); + data._asc_node_vel_X_comp = buf22; - is.read(buf22,22); - data._asc_node_vel_Y_comp = buf22; + is.read(buf22,22); + data._asc_node_vel_Y_comp = buf22; - is.read(buf22,22); - data._asc_node_vel_Z_comp = buf22; + is.read(buf22,22); + data._asc_node_vel_Z_comp = buf22; - is.read(buf4,4); - data._out_pixel_bit_length = atoi(buf4); + is.read(buf4,4); + data._out_pixel_bit_length = atoi(buf4); - is.read(buf16,16); - data._proc_gain_param_1 = atof(buf16); + is.read(buf16,16); + data._proc_gain_param_1 = atof(buf16); - is.read(buf16,16); - data._proc_gain_param_2 = atof(buf16); + is.read(buf16,16); + data._proc_gain_param_2 = atof(buf16); - is.read(buf16,16); - data._proc_gain_param_3 = atof(buf16); + is.read(buf16,16); + data._proc_gain_param_3 = atof(buf16); - is.read(buf4,4); - data._peak_loc_cross_correl_fun = atoi(buf4); + is.read(buf4,4); + data._peak_loc_cross_correl_fun = atoi(buf4); - is.read(buf16,16); - data._3_dB_width_CCF = atof(buf16); + is.read(buf16,16); + data._3_dB_width_CCF = atof(buf16); - is.read(buf16,16); - data._first_side_lobe_level = atof(buf16); + is.read(buf16,16); + data._first_side_lobe_level = atof(buf16); - is.read(buf16,16); - data._ISLR_CCF_between_last = atof(buf16); + is.read(buf16,16); + data._ISLR_CCF_between_last = atof(buf16); - is.read(buf4,4); - data._peak_loc_CCF_betw_last = atoi(buf4); + is.read(buf4,4); + data._peak_loc_CCF_betw_last = atoi(buf4); - is.read(buf4,4); - data._Roll_Tilt_Mode_flag = atoi(buf4); + is.read(buf4,4); + data._Roll_Tilt_Mode_flag = atoi(buf4); - is.read(buf4,4); - data._raw_data_correction_flag = atoi(buf4); + is.read(buf4,4); + data._raw_data_correction_flag = atoi(buf4); - is.read(buf4,4); - data._look_detecion_flag = atoi(buf4); + is.read(buf4,4); + data._look_detecion_flag = atoi(buf4); - is.read(buf4,4); - data._doppler_ambiguity_estimat_flag = atoi(buf4); + is.read(buf4,4); + data._doppler_ambiguity_estimat_flag = atoi(buf4); - is.read(buf4,4); - data._azimuth_baseband_convers_flag = atoi(buf4); + is.read(buf4,4); + data._azimuth_baseband_convers_flag = atoi(buf4); - is.read(buf4,4); - data._samples_per_line_used = atoi(buf4); + is.read(buf4,4); + data._samples_per_line_used = atoi(buf4); - is.read(buf4,4); - data._range_lines_skip_factor = atoi(buf4); + is.read(buf4,4); + data._range_lines_skip_factor = atoi(buf4); - is.read(buf24,24); - data._time_of_inp_state_vectors = buf24; + is.read(buf24,24); + data._time_of_inp_state_vectors = buf24; - is.read(buf22,22); - data._inp_state_vect_pos_X_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_pos_X_comp = buf22; - is.read(buf22,22); - data._inp_state_vect_pos_Y_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_pos_Y_comp = buf22; - is.read(buf22,22); - data._inp_state_vect_pos_Z_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_pos_Z_comp = buf22; - is.read(buf22,22); - data._inp_state_vect_vel_Vx_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_vel_Vx_comp = buf22; - is.read(buf22,22); - data._inp_state_vect_vel_Vy_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_vel_Vy_comp = buf22; - is.read(buf22,22); - data._inp_state_vect_vel_Vz_comp = buf22; + is.read(buf22,22); + data._inp_state_vect_vel_Vz_comp = buf22; - is.read(buf4,4); - data._inp_state_vector_type_flag = atoi(buf4); + is.read(buf4,4); + data._inp_state_vector_type_flag = atoi(buf4); - is.read(buf16,16); - data._win_coeff_for_range_match = atof(buf16); + is.read(buf16,16); + data._win_coeff_for_range_match = atof(buf16); - is.read(buf16,16); - data._win_coeff_for_azi_match = atof(buf16); + is.read(buf16,16); + data._win_coeff_for_azi_match = atof(buf16); - is.read(buf4,4); - data._update_period_range_match = atoi(buf4); + is.read(buf4,4); + data._update_period_range_match = atoi(buf4); - is.read(buf16,16); - data._look_scalar_gain_1 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_1 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_2 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_2 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_3 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_3 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_4 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_4 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_5 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_5 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_6 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_6 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_7 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_7 = atof(buf16); - is.read(buf16,16); - data._look_scalar_gain_8 = atof(buf16); + is.read(buf16,16); + data._look_scalar_gain_8 = atof(buf16); - is.read(buf4,4); - data._samp_window_start_time_bias = atoi(buf4); + is.read(buf4,4); + data._samp_window_start_time_bias = atoi(buf4); - is.read(buf22,22); - data._doppler_centroid_cubic_coeff = atof(buf22); + is.read(buf22,22); + data._doppler_centroid_cubic_coeff = atof(buf22); - is.read(buf4,4); - data._PRF_code_first_range_line = atoi(buf4); + is.read(buf4,4); + data._PRF_code_first_range_line = atoi(buf4); - is.read(buf4,4); - data._PRF_code_last_range_line = atoi(buf4); + is.read(buf4,4); + data._PRF_code_last_range_line = atoi(buf4); - is.read(buf4,4); - data._samp_win_start_first = atoi(buf4); + is.read(buf4,4); + data._samp_win_start_first = atoi(buf4); - is.read(buf4,4); - data._samp_win_start_last = atoi(buf4); + is.read(buf4,4); + data._samp_win_start_last = atoi(buf4); - is.read(buf4,4); - data._cal_syst_gain_last_proc = atoi(buf4); + is.read(buf4,4); + data._cal_syst_gain_last_proc = atoi(buf4); - is.read(buf4,4); - data._receiver_gain_last_proc = atoi(buf4); + is.read(buf4,4); + data._receiver_gain_last_proc = atoi(buf4); - is.read(buf4,4); - data._first_processed_range_sample = atoi(buf4); + is.read(buf4,4); + data._first_processed_range_sample = atoi(buf4); - is.read(buf4,4); - data._azimuth_FFT_IFFT_ratio = atoi(buf4); + is.read(buf4,4); + data._azimuth_FFT_IFFT_ratio = atoi(buf4); - is.read(buf4,4); - data._num_azimuth_blocks_proc = atoi(buf4); + is.read(buf4,4); + data._num_azimuth_blocks_proc = atoi(buf4); - is.read(buf8,8); - data._num_input_raw_data_lines = atol(buf8); + is.read(buf8,8); + data._num_input_raw_data_lines = atol(buf8); - is.read(buf4,4); - data._initial_doppler_ambiguity_num = atoi(buf4); + is.read(buf4,4); + data._initial_doppler_ambiguity_num = atoi(buf4); - is.read(buf16,16); - data._thresh_no_1_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_1_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_2_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_2_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_3_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_3_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_4_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_4_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_5_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_5_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_6_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_6_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_7_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_7_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_8_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_8_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_9_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_9_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_10_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_10_flag = atof(buf16); - is.read(buf16,16); - data._thresh_no_11_flag = atof(buf16); + is.read(buf16,16); + data._thresh_no_11_flag = atof(buf16); - is.read(buf16,16); - data._sat_binary_time_of_first = atol(buf16); + is.read(buf16,16); + data._sat_binary_time_of_first = atol(buf16); - is.read(buf4,4); - data._num_valid_pixels_per_range = atoi(buf4); + is.read(buf4,4); + data._num_valid_pixels_per_range = atoi(buf4); - is.read(buf4,4); - data._num_range_samp_discarded = atoi(buf4); + is.read(buf4,4); + data._num_range_samp_discarded = atoi(buf4); - is.read(buf16,16); - data._I_gain_imb_lower_bound = atof(buf16); + is.read(buf16,16); + data._I_gain_imb_lower_bound = atof(buf16); - is.read(buf16,16); - data._I_gain_imb_upper_bound = atof(buf16); + is.read(buf16,16); + data._I_gain_imb_upper_bound = atof(buf16); - is.read(buf16,16); - data._I_Q_quad_depar_lower_bound = atof(buf16); + is.read(buf16,16); + data._I_Q_quad_depar_lower_bound = atof(buf16); - is.read(buf16,16); - data._I_Q_quad_depar_upper_bound = atof(buf16); + is.read(buf16,16); + data._I_Q_quad_depar_upper_bound = atof(buf16); - is.read(buf16,16); - data._3_dB_look_bandwidth = atof(buf16); + is.read(buf16,16); + data._3_dB_look_bandwidth = atof(buf16); - is.read(buf16,16); - data._3_dB_look_proc_dopp_bandw = atof(buf16); + is.read(buf16,16); + data._3_dB_look_proc_dopp_bandw = atof(buf16); - is.read(buf4,4); - data._range_spread_loss_comp_flag = atoi(buf4); + is.read(buf4,4); + data._range_spread_loss_comp_flag = atoi(buf4); - is.read(buf1,1); - data._datation_flag = atoi(buf1); + is.read(buf1,1); + data._datation_flag = atoi(buf1); - is.read(buf7,7); - data._max_error_range_line_timing = atoi(buf7); + is.read(buf7,7); + data._max_error_range_line_timing = atoi(buf7); - is.read(buf7,7); - data._form_num_range_line_used = atoi(buf7); + is.read(buf7,7); + data._form_num_range_line_used = atoi(buf7); - is.read(buf1,1); - data._autom_look_scal_gain_flag = atoi(buf1); + is.read(buf1,1); + data._autom_look_scal_gain_flag = atoi(buf1); - is.read(buf4,4); - data._max_value_look_scalar_gain = atoi(buf4); + is.read(buf4,4); + data._max_value_look_scalar_gain = atoi(buf4); - is.read(buf4,4); - data._replica_norm_method_flag = atoi(buf4); + is.read(buf4,4); + data._replica_norm_method_flag = atoi(buf4); - is.read(buf20,20); - data._coef_ground_range_1 = atof(buf20); + is.read(buf20,20); + data._coef_ground_range_1 = atof(buf20); - is.read(buf20,20); - data._coef_ground_range_2 = atof(buf20); + is.read(buf20,20); + data._coef_ground_range_2 = atof(buf20); - is.read(buf20,20); - data._coef_ground_range_3 = atof(buf20); + is.read(buf20,20); + data._coef_ground_range_3 = atof(buf20); - is.read(buf20,20); - data._coef_ground_range_4 = atof(buf20); + is.read(buf20,20); + data._coef_ground_range_4 = atof(buf20); - is.read(buf20,20); - data._coef_ant_elev_1 = atof(buf20); + is.read(buf20,20); + data._coef_ant_elev_1 = atof(buf20); - is.read(buf20,20); - data._coef_ant_elev_2 = atof(buf20); + is.read(buf20,20); + data._coef_ant_elev_2 = atof(buf20); - is.read(buf20,20); - data._coef_ant_elev_3 = atof(buf20); + is.read(buf20,20); + data._coef_ant_elev_3 = atof(buf20); - is.read(buf20,20); - data._coef_ant_elev_4 = atof(buf20); + is.read(buf20,20); + data._coef_ant_elev_4 = atof(buf20); - is.read(buf20,20); - data._coef_ant_elev_5 = atof(buf20); + is.read(buf20,20); + data._coef_ant_elev_5 = atof(buf20); - is.read(buf16,16); - data._range_time_origin_ant = atof(buf16); + is.read(buf16,16); + data._range_time_origin_ant = atof(buf16); - char buf10238[10238]; - is.read(buf10238,10238); - return is; + char buf10238[10238]; + is.read(buf10238,10238); + return is; } AlosSarFacilityData::AlosSarFacilityData(const AlosSarFacilityData& rhs): - AlosSarRecord(rhs), - _last_release_qc_date(rhs._last_release_qc_date), - _last_release_cal_date(rhs._last_release_cal_date), - _qa_summary_flag(rhs._qa_summary_flag), - _prf_code_change_flag(rhs._prf_code_change_flag), - _sampling_win_change_flag(rhs._sampling_win_change_flag), - _cal_gain_change_flag(rhs._cal_gain_change_flag), - _quirp_qu_flag(rhs._quirp_qu_flag), - _inp_data_stat_flag(rhs._inp_data_stat_flag), - _dopp_cent_conf_meas_flag(rhs._dopp_cent_conf_meas_flag), - _dopp_cent_val_flag(rhs._dopp_cent_val_flag), - _dopp_ambig_conf_meas_flag(rhs._dopp_ambig_conf_meas_flag), - _outp_data_mean_flag(rhs._outp_data_mean_flag), - _OGOB_flag(rhs._OGOB_flag), - _PRF_changes(rhs._PRF_changes), - _sampling_win_changes(rhs._sampling_win_changes), - _cal_gain_changes(rhs._cal_gain_changes), - _missing_lines(rhs._missing_lines), - _rec_gain_changes(rhs._rec_gain_changes), - _pulse_width_of_ACF_3db(rhs._pulse_width_of_ACF_3db), - _first_side_lobe_lev_of_ACF(rhs._first_side_lobe_lev_of_ACF), - _ISLR_of_ACF(rhs._ISLR_of_ACF), - _dopp_cent_conf_meas(rhs._dopp_cent_conf_meas), - _dopp_ambig_conf_meas(rhs._dopp_ambig_conf_meas), - _inp_data_I_mean(rhs._inp_data_I_mean), - _inp_data_Q_mean(rhs._inp_data_Q_mean), - _inp_data_I_stddev(rhs._inp_data_I_stddev), - _inp_data_Q_stddev(rhs._inp_data_Q_stddev), - _cal_sys_gain(rhs._cal_sys_gain), - _first_rec_gain_read(rhs._first_rec_gain_read), - _dopp_ambig_num(rhs._dopp_ambig_num), - _I_channel_bias_correction(rhs._I_channel_bias_correction), - _Q_channel_bias_correction(rhs._Q_channel_bias_correction), - _I_channel_gain_correction(rhs._I_channel_gain_correction), - _Q_channel_gain_correction(rhs._Q_channel_gain_correction), - _Q_channel_I_Q_correction(rhs._Q_channel_I_Q_correction), - _noise_power(rhs._noise_power), - _int_cal_utc(rhs._int_cal_utc), - _num_valid_cal_pulses(rhs._num_valid_cal_pulses), - _num_valid_noise_pulses(rhs._num_valid_noise_pulses), - _num_valid_replicas(rhs._num_valid_replicas), - _first_replica_sample(rhs._first_replica_sample), - _mean_cal_pulse_power(rhs._mean_cal_pulse_power), - _mean_noise_power(rhs._mean_noise_power), - _range_comp_norm_fact(rhs._range_comp_norm_fact), - _replica_power(rhs._replica_power), - _first_range_pixel_mid_az_inc(rhs._first_range_pixel_mid_az_inc), - _center_range_pix_mid_az_inc(rhs._center_range_pix_mid_az_inc), - _last_range_pix_mid_az_inc(rhs._last_range_pix_mid_az_inc), - _norm_ref_range_ro(rhs._norm_ref_range_ro), - _antenna_elev_flag(rhs._antenna_elev_flag), - _abs_cal_const_K(rhs._abs_cal_const_K), - _upp_bound_K(rhs._upp_bound_K), - _low_bound_K(rhs._low_bound_K), - _proc_noise_scale_fact(rhs._proc_noise_scale_fact), - _K_gen_date(rhs._K_gen_date), - _K_vers_num(rhs._K_vers_num), - _num_duplic_input_lines(rhs._num_duplic_input_lines), - _estim_bit_error_rate(rhs._estim_bit_error_rate), - _out_image_mean(rhs._out_image_mean), - _out_image_std_dev(rhs._out_image_std_dev), - _out_image_max_value(rhs._out_image_max_value), - _time_raw_data_first_input(rhs._time_raw_data_first_input), - _time_asc_node_state_vectors(rhs._time_asc_node_state_vectors), - _asc_node_pos_X_comp(rhs._asc_node_pos_X_comp), - _asc_node_pos_Y_comp(rhs._asc_node_pos_Y_comp), - _asc_node_pos_Z_comp(rhs._asc_node_pos_Z_comp), - _asc_node_vel_X_comp(rhs._asc_node_vel_X_comp), - _asc_node_vel_Y_comp(rhs._asc_node_vel_Y_comp), - _asc_node_vel_Z_comp(rhs._asc_node_vel_Z_comp), - _out_pixel_bit_length(rhs._out_pixel_bit_length), - _proc_gain_param_1(rhs._proc_gain_param_1), - _proc_gain_param_2(rhs._proc_gain_param_2), - _proc_gain_param_3(rhs._proc_gain_param_3), - _peak_loc_cross_correl_fun(rhs._peak_loc_cross_correl_fun), - _3_dB_width_CCF(rhs._3_dB_width_CCF), - _first_side_lobe_level(rhs._first_side_lobe_level), - _ISLR_CCF_between_last(rhs._ISLR_CCF_between_last), - _peak_loc_CCF_betw_last(rhs._peak_loc_CCF_betw_last), - _Roll_Tilt_Mode_flag(rhs._Roll_Tilt_Mode_flag), - _raw_data_correction_flag(rhs._raw_data_correction_flag), - _look_detecion_flag(rhs._look_detecion_flag), - _doppler_ambiguity_estimat_flag(rhs._doppler_ambiguity_estimat_flag), - _azimuth_baseband_convers_flag(rhs._azimuth_baseband_convers_flag), - _samples_per_line_used(rhs._samples_per_line_used), - _range_lines_skip_factor(rhs._range_lines_skip_factor), - _time_of_inp_state_vectors(rhs._time_of_inp_state_vectors), - _inp_state_vect_pos_X_comp(rhs._inp_state_vect_pos_X_comp), - _inp_state_vect_pos_Y_comp(rhs._inp_state_vect_pos_Y_comp), - _inp_state_vect_pos_Z_comp(rhs._inp_state_vect_pos_Z_comp), - _inp_state_vect_vel_Vx_comp(rhs._inp_state_vect_vel_Vx_comp), - _inp_state_vect_vel_Vy_comp(rhs._inp_state_vect_vel_Vy_comp), - _inp_state_vect_vel_Vz_comp(rhs._inp_state_vect_vel_Vz_comp), - _inp_state_vector_type_flag(rhs._inp_state_vector_type_flag), - _win_coeff_for_range_match(rhs._win_coeff_for_range_match), - _win_coeff_for_azi_match(rhs._win_coeff_for_azi_match), - _update_period_range_match(rhs._update_period_range_match), - _look_scalar_gain_1(rhs._look_scalar_gain_1), - _look_scalar_gain_2(rhs._look_scalar_gain_2), - _look_scalar_gain_3(rhs._look_scalar_gain_3), - _look_scalar_gain_4(rhs._look_scalar_gain_4), - _look_scalar_gain_5(rhs._look_scalar_gain_5), - _look_scalar_gain_6(rhs._look_scalar_gain_6), - _look_scalar_gain_7(rhs._look_scalar_gain_7), - _look_scalar_gain_8(rhs._look_scalar_gain_8), - _samp_window_start_time_bias(rhs._samp_window_start_time_bias), - _doppler_centroid_cubic_coeff(rhs._doppler_centroid_cubic_coeff), - _PRF_code_first_range_line(rhs._PRF_code_first_range_line), - _PRF_code_last_range_line(rhs._PRF_code_last_range_line), - _samp_win_start_first(rhs._samp_win_start_first), - _samp_win_start_last(rhs._samp_win_start_last), - _cal_syst_gain_last_proc(rhs._cal_syst_gain_last_proc), - _receiver_gain_last_proc(rhs._receiver_gain_last_proc), - _first_processed_range_sample(rhs._first_processed_range_sample), - _azimuth_FFT_IFFT_ratio(rhs._azimuth_FFT_IFFT_ratio), - _num_azimuth_blocks_proc(rhs._num_azimuth_blocks_proc), - _num_input_raw_data_lines(rhs._num_input_raw_data_lines), - _initial_doppler_ambiguity_num(rhs._initial_doppler_ambiguity_num), - _thresh_no_1_flag(rhs._thresh_no_1_flag), - _thresh_no_2_flag(rhs._thresh_no_2_flag), - _thresh_no_3_flag(rhs._thresh_no_3_flag), - _thresh_no_4_flag(rhs._thresh_no_4_flag), - _thresh_no_5_flag(rhs._thresh_no_5_flag), - _thresh_no_6_flag(rhs._thresh_no_6_flag), - _thresh_no_7_flag(rhs._thresh_no_7_flag), - _thresh_no_8_flag(rhs._thresh_no_8_flag), - _thresh_no_9_flag(rhs._thresh_no_9_flag), - _thresh_no_10_flag(rhs._thresh_no_10_flag), - _thresh_no_11_flag(rhs._thresh_no_11_flag), - _sat_binary_time_of_first(rhs._sat_binary_time_of_first), - _num_valid_pixels_per_range(rhs._num_valid_pixels_per_range), - _num_range_samp_discarded(rhs._num_range_samp_discarded), - _I_gain_imb_lower_bound(rhs._I_gain_imb_lower_bound), - _I_gain_imb_upper_bound(rhs._I_gain_imb_upper_bound), - _I_Q_quad_depar_lower_bound(rhs._I_Q_quad_depar_lower_bound), - _I_Q_quad_depar_upper_bound(rhs._I_Q_quad_depar_upper_bound), - _3_dB_look_bandwidth(rhs._3_dB_look_bandwidth), - _3_dB_look_proc_dopp_bandw(rhs._3_dB_look_proc_dopp_bandw), - _range_spread_loss_comp_flag(rhs._range_spread_loss_comp_flag), - _datation_flag(rhs._datation_flag), - _max_error_range_line_timing(rhs._max_error_range_line_timing), - _form_num_range_line_used(rhs._form_num_range_line_used), - _autom_look_scal_gain_flag(rhs._autom_look_scal_gain_flag), - _max_value_look_scalar_gain(rhs._max_value_look_scalar_gain), - _replica_norm_method_flag(rhs._replica_norm_method_flag), - _coef_ground_range_1(rhs._coef_ground_range_1), - _coef_ground_range_2(rhs._coef_ground_range_2), - _coef_ground_range_3(rhs._coef_ground_range_3), - _coef_ground_range_4(rhs._coef_ground_range_4), - _coef_ant_elev_1(rhs._coef_ant_elev_1), - _coef_ant_elev_2(rhs._coef_ant_elev_2), - _coef_ant_elev_3(rhs._coef_ant_elev_3), - _coef_ant_elev_4(rhs._coef_ant_elev_4), - _coef_ant_elev_5(rhs._coef_ant_elev_5), - _range_time_origin_ant(rhs._range_time_origin_ant) + AlosSarRecord(rhs), + _last_release_qc_date(rhs._last_release_qc_date), + _last_release_cal_date(rhs._last_release_cal_date), + _qa_summary_flag(rhs._qa_summary_flag), + _prf_code_change_flag(rhs._prf_code_change_flag), + _sampling_win_change_flag(rhs._sampling_win_change_flag), + _cal_gain_change_flag(rhs._cal_gain_change_flag), + _quirp_qu_flag(rhs._quirp_qu_flag), + _inp_data_stat_flag(rhs._inp_data_stat_flag), + _dopp_cent_conf_meas_flag(rhs._dopp_cent_conf_meas_flag), + _dopp_cent_val_flag(rhs._dopp_cent_val_flag), + _dopp_ambig_conf_meas_flag(rhs._dopp_ambig_conf_meas_flag), + _outp_data_mean_flag(rhs._outp_data_mean_flag), + _OGOB_flag(rhs._OGOB_flag), + _PRF_changes(rhs._PRF_changes), + _sampling_win_changes(rhs._sampling_win_changes), + _cal_gain_changes(rhs._cal_gain_changes), + _missing_lines(rhs._missing_lines), + _rec_gain_changes(rhs._rec_gain_changes), + _pulse_width_of_ACF_3db(rhs._pulse_width_of_ACF_3db), + _first_side_lobe_lev_of_ACF(rhs._first_side_lobe_lev_of_ACF), + _ISLR_of_ACF(rhs._ISLR_of_ACF), + _dopp_cent_conf_meas(rhs._dopp_cent_conf_meas), + _dopp_ambig_conf_meas(rhs._dopp_ambig_conf_meas), + _inp_data_I_mean(rhs._inp_data_I_mean), + _inp_data_Q_mean(rhs._inp_data_Q_mean), + _inp_data_I_stddev(rhs._inp_data_I_stddev), + _inp_data_Q_stddev(rhs._inp_data_Q_stddev), + _cal_sys_gain(rhs._cal_sys_gain), + _first_rec_gain_read(rhs._first_rec_gain_read), + _dopp_ambig_num(rhs._dopp_ambig_num), + _I_channel_bias_correction(rhs._I_channel_bias_correction), + _Q_channel_bias_correction(rhs._Q_channel_bias_correction), + _I_channel_gain_correction(rhs._I_channel_gain_correction), + _Q_channel_gain_correction(rhs._Q_channel_gain_correction), + _Q_channel_I_Q_correction(rhs._Q_channel_I_Q_correction), + _noise_power(rhs._noise_power), + _int_cal_utc(rhs._int_cal_utc), + _num_valid_cal_pulses(rhs._num_valid_cal_pulses), + _num_valid_noise_pulses(rhs._num_valid_noise_pulses), + _num_valid_replicas(rhs._num_valid_replicas), + _first_replica_sample(rhs._first_replica_sample), + _mean_cal_pulse_power(rhs._mean_cal_pulse_power), + _mean_noise_power(rhs._mean_noise_power), + _range_comp_norm_fact(rhs._range_comp_norm_fact), + _replica_power(rhs._replica_power), + _first_range_pixel_mid_az_inc(rhs._first_range_pixel_mid_az_inc), + _center_range_pix_mid_az_inc(rhs._center_range_pix_mid_az_inc), + _last_range_pix_mid_az_inc(rhs._last_range_pix_mid_az_inc), + _norm_ref_range_ro(rhs._norm_ref_range_ro), + _antenna_elev_flag(rhs._antenna_elev_flag), + _abs_cal_const_K(rhs._abs_cal_const_K), + _upp_bound_K(rhs._upp_bound_K), + _low_bound_K(rhs._low_bound_K), + _proc_noise_scale_fact(rhs._proc_noise_scale_fact), + _K_gen_date(rhs._K_gen_date), + _K_vers_num(rhs._K_vers_num), + _num_duplic_input_lines(rhs._num_duplic_input_lines), + _estim_bit_error_rate(rhs._estim_bit_error_rate), + _out_image_mean(rhs._out_image_mean), + _out_image_std_dev(rhs._out_image_std_dev), + _out_image_max_value(rhs._out_image_max_value), + _time_raw_data_first_input(rhs._time_raw_data_first_input), + _time_asc_node_state_vectors(rhs._time_asc_node_state_vectors), + _asc_node_pos_X_comp(rhs._asc_node_pos_X_comp), + _asc_node_pos_Y_comp(rhs._asc_node_pos_Y_comp), + _asc_node_pos_Z_comp(rhs._asc_node_pos_Z_comp), + _asc_node_vel_X_comp(rhs._asc_node_vel_X_comp), + _asc_node_vel_Y_comp(rhs._asc_node_vel_Y_comp), + _asc_node_vel_Z_comp(rhs._asc_node_vel_Z_comp), + _out_pixel_bit_length(rhs._out_pixel_bit_length), + _proc_gain_param_1(rhs._proc_gain_param_1), + _proc_gain_param_2(rhs._proc_gain_param_2), + _proc_gain_param_3(rhs._proc_gain_param_3), + _peak_loc_cross_correl_fun(rhs._peak_loc_cross_correl_fun), + _3_dB_width_CCF(rhs._3_dB_width_CCF), + _first_side_lobe_level(rhs._first_side_lobe_level), + _ISLR_CCF_between_last(rhs._ISLR_CCF_between_last), + _peak_loc_CCF_betw_last(rhs._peak_loc_CCF_betw_last), + _Roll_Tilt_Mode_flag(rhs._Roll_Tilt_Mode_flag), + _raw_data_correction_flag(rhs._raw_data_correction_flag), + _look_detecion_flag(rhs._look_detecion_flag), + _doppler_ambiguity_estimat_flag(rhs._doppler_ambiguity_estimat_flag), + _azimuth_baseband_convers_flag(rhs._azimuth_baseband_convers_flag), + _samples_per_line_used(rhs._samples_per_line_used), + _range_lines_skip_factor(rhs._range_lines_skip_factor), + _time_of_inp_state_vectors(rhs._time_of_inp_state_vectors), + _inp_state_vect_pos_X_comp(rhs._inp_state_vect_pos_X_comp), + _inp_state_vect_pos_Y_comp(rhs._inp_state_vect_pos_Y_comp), + _inp_state_vect_pos_Z_comp(rhs._inp_state_vect_pos_Z_comp), + _inp_state_vect_vel_Vx_comp(rhs._inp_state_vect_vel_Vx_comp), + _inp_state_vect_vel_Vy_comp(rhs._inp_state_vect_vel_Vy_comp), + _inp_state_vect_vel_Vz_comp(rhs._inp_state_vect_vel_Vz_comp), + _inp_state_vector_type_flag(rhs._inp_state_vector_type_flag), + _win_coeff_for_range_match(rhs._win_coeff_for_range_match), + _win_coeff_for_azi_match(rhs._win_coeff_for_azi_match), + _update_period_range_match(rhs._update_period_range_match), + _look_scalar_gain_1(rhs._look_scalar_gain_1), + _look_scalar_gain_2(rhs._look_scalar_gain_2), + _look_scalar_gain_3(rhs._look_scalar_gain_3), + _look_scalar_gain_4(rhs._look_scalar_gain_4), + _look_scalar_gain_5(rhs._look_scalar_gain_5), + _look_scalar_gain_6(rhs._look_scalar_gain_6), + _look_scalar_gain_7(rhs._look_scalar_gain_7), + _look_scalar_gain_8(rhs._look_scalar_gain_8), + _samp_window_start_time_bias(rhs._samp_window_start_time_bias), + _doppler_centroid_cubic_coeff(rhs._doppler_centroid_cubic_coeff), + _PRF_code_first_range_line(rhs._PRF_code_first_range_line), + _PRF_code_last_range_line(rhs._PRF_code_last_range_line), + _samp_win_start_first(rhs._samp_win_start_first), + _samp_win_start_last(rhs._samp_win_start_last), + _cal_syst_gain_last_proc(rhs._cal_syst_gain_last_proc), + _receiver_gain_last_proc(rhs._receiver_gain_last_proc), + _first_processed_range_sample(rhs._first_processed_range_sample), + _azimuth_FFT_IFFT_ratio(rhs._azimuth_FFT_IFFT_ratio), + _num_azimuth_blocks_proc(rhs._num_azimuth_blocks_proc), + _num_input_raw_data_lines(rhs._num_input_raw_data_lines), + _initial_doppler_ambiguity_num(rhs._initial_doppler_ambiguity_num), + _thresh_no_1_flag(rhs._thresh_no_1_flag), + _thresh_no_2_flag(rhs._thresh_no_2_flag), + _thresh_no_3_flag(rhs._thresh_no_3_flag), + _thresh_no_4_flag(rhs._thresh_no_4_flag), + _thresh_no_5_flag(rhs._thresh_no_5_flag), + _thresh_no_6_flag(rhs._thresh_no_6_flag), + _thresh_no_7_flag(rhs._thresh_no_7_flag), + _thresh_no_8_flag(rhs._thresh_no_8_flag), + _thresh_no_9_flag(rhs._thresh_no_9_flag), + _thresh_no_10_flag(rhs._thresh_no_10_flag), + _thresh_no_11_flag(rhs._thresh_no_11_flag), + _sat_binary_time_of_first(rhs._sat_binary_time_of_first), + _num_valid_pixels_per_range(rhs._num_valid_pixels_per_range), + _num_range_samp_discarded(rhs._num_range_samp_discarded), + _I_gain_imb_lower_bound(rhs._I_gain_imb_lower_bound), + _I_gain_imb_upper_bound(rhs._I_gain_imb_upper_bound), + _I_Q_quad_depar_lower_bound(rhs._I_Q_quad_depar_lower_bound), + _I_Q_quad_depar_upper_bound(rhs._I_Q_quad_depar_upper_bound), + _3_dB_look_bandwidth(rhs._3_dB_look_bandwidth), + _3_dB_look_proc_dopp_bandw(rhs._3_dB_look_proc_dopp_bandw), + _range_spread_loss_comp_flag(rhs._range_spread_loss_comp_flag), + _datation_flag(rhs._datation_flag), + _max_error_range_line_timing(rhs._max_error_range_line_timing), + _form_num_range_line_used(rhs._form_num_range_line_used), + _autom_look_scal_gain_flag(rhs._autom_look_scal_gain_flag), + _max_value_look_scalar_gain(rhs._max_value_look_scalar_gain), + _replica_norm_method_flag(rhs._replica_norm_method_flag), + _coef_ground_range_1(rhs._coef_ground_range_1), + _coef_ground_range_2(rhs._coef_ground_range_2), + _coef_ground_range_3(rhs._coef_ground_range_3), + _coef_ground_range_4(rhs._coef_ground_range_4), + _coef_ant_elev_1(rhs._coef_ant_elev_1), + _coef_ant_elev_2(rhs._coef_ant_elev_2), + _coef_ant_elev_3(rhs._coef_ant_elev_3), + _coef_ant_elev_4(rhs._coef_ant_elev_4), + _coef_ant_elev_5(rhs._coef_ant_elev_5), + _range_time_origin_ant(rhs._range_time_origin_ant) {} AlosSarFacilityData& AlosSarFacilityData::operator=(const AlosSarFacilityData& rhs) { - _last_release_qc_date = rhs._last_release_qc_date; - _last_release_cal_date = rhs._last_release_cal_date; - _qa_summary_flag = rhs._qa_summary_flag; - _prf_code_change_flag = rhs._prf_code_change_flag; - _sampling_win_change_flag = rhs._sampling_win_change_flag; - _cal_gain_change_flag = rhs._cal_gain_change_flag; - _quirp_qu_flag = rhs._quirp_qu_flag; - _inp_data_stat_flag = rhs._inp_data_stat_flag; - _dopp_cent_conf_meas_flag = rhs._dopp_cent_conf_meas_flag; - _dopp_cent_val_flag = rhs._dopp_cent_val_flag; - _dopp_ambig_conf_meas_flag = rhs._dopp_ambig_conf_meas_flag; - _outp_data_mean_flag = rhs._outp_data_mean_flag; - _OGOB_flag = rhs._OGOB_flag; - _PRF_changes = rhs._PRF_changes; - _sampling_win_changes = rhs._sampling_win_changes; - _cal_gain_changes = rhs._cal_gain_changes; - _missing_lines = rhs._missing_lines; - _rec_gain_changes = rhs._rec_gain_changes; - _pulse_width_of_ACF_3db = rhs._pulse_width_of_ACF_3db; - _first_side_lobe_lev_of_ACF = rhs._first_side_lobe_lev_of_ACF; - _ISLR_of_ACF = rhs._ISLR_of_ACF; - _dopp_cent_conf_meas = rhs._dopp_cent_conf_meas; - _dopp_ambig_conf_meas = rhs._dopp_ambig_conf_meas; - _inp_data_I_mean = rhs._inp_data_I_mean; - _inp_data_Q_mean = rhs._inp_data_Q_mean; - _inp_data_I_stddev = rhs._inp_data_I_stddev; - _inp_data_Q_stddev = rhs._inp_data_Q_stddev; - _cal_sys_gain = rhs._cal_sys_gain; - _first_rec_gain_read = rhs._first_rec_gain_read; - _dopp_ambig_num = rhs._dopp_ambig_num; - _I_channel_bias_correction = rhs._I_channel_bias_correction; - _Q_channel_bias_correction = rhs._Q_channel_bias_correction; - _I_channel_gain_correction = rhs._I_channel_gain_correction; - _Q_channel_gain_correction = rhs._Q_channel_gain_correction; - _Q_channel_I_Q_correction = rhs._Q_channel_I_Q_correction; - _noise_power = rhs._noise_power; - _int_cal_utc = rhs._int_cal_utc; - _num_valid_cal_pulses = rhs._num_valid_cal_pulses; - _num_valid_noise_pulses = rhs._num_valid_noise_pulses; - _num_valid_replicas = rhs._num_valid_replicas; - _first_replica_sample = rhs._first_replica_sample; - _mean_cal_pulse_power = rhs._mean_cal_pulse_power; - _mean_noise_power = rhs._mean_noise_power; - _range_comp_norm_fact = rhs._range_comp_norm_fact; - _replica_power = rhs._replica_power; - _first_range_pixel_mid_az_inc = rhs._first_range_pixel_mid_az_inc; - _center_range_pix_mid_az_inc = rhs._center_range_pix_mid_az_inc; - _last_range_pix_mid_az_inc = rhs._last_range_pix_mid_az_inc; - _norm_ref_range_ro = rhs._norm_ref_range_ro; - _antenna_elev_flag = rhs._antenna_elev_flag; - _abs_cal_const_K = rhs._abs_cal_const_K; - _upp_bound_K = rhs._upp_bound_K; - _low_bound_K = rhs._low_bound_K; - _proc_noise_scale_fact = rhs._proc_noise_scale_fact; - _K_gen_date = rhs._K_gen_date; - _K_vers_num = rhs._K_vers_num; - _num_duplic_input_lines = rhs._num_duplic_input_lines; - _estim_bit_error_rate = rhs._estim_bit_error_rate; - _out_image_mean = rhs._out_image_mean; - _out_image_std_dev = rhs._out_image_std_dev; - _out_image_max_value = rhs._out_image_max_value; - _time_raw_data_first_input = rhs._time_raw_data_first_input; - _time_asc_node_state_vectors = rhs._time_asc_node_state_vectors; - _asc_node_pos_X_comp = rhs._asc_node_pos_X_comp; - _asc_node_pos_Y_comp = rhs._asc_node_pos_Y_comp; - _asc_node_pos_Z_comp = rhs._asc_node_pos_Z_comp; - _asc_node_vel_X_comp = rhs._asc_node_vel_X_comp; - _asc_node_vel_Y_comp = rhs._asc_node_vel_Y_comp; - _asc_node_vel_Z_comp = rhs._asc_node_vel_Z_comp; - _out_pixel_bit_length = rhs._out_pixel_bit_length; - _proc_gain_param_1 = rhs._proc_gain_param_1; - _proc_gain_param_2 = rhs._proc_gain_param_2; - _proc_gain_param_3 = rhs._proc_gain_param_3; - _peak_loc_cross_correl_fun = rhs._peak_loc_cross_correl_fun; - _3_dB_width_CCF = rhs._3_dB_width_CCF; - _first_side_lobe_level = rhs._first_side_lobe_level; - _ISLR_CCF_between_last = rhs._ISLR_CCF_between_last; - _peak_loc_CCF_betw_last = rhs._peak_loc_CCF_betw_last; - _Roll_Tilt_Mode_flag = rhs._Roll_Tilt_Mode_flag; - _raw_data_correction_flag = rhs._raw_data_correction_flag; - _look_detecion_flag = rhs._look_detecion_flag; - _doppler_ambiguity_estimat_flag = rhs._doppler_ambiguity_estimat_flag; - _azimuth_baseband_convers_flag = rhs._azimuth_baseband_convers_flag; - _samples_per_line_used = rhs._samples_per_line_used; - _range_lines_skip_factor = rhs._range_lines_skip_factor; - _time_of_inp_state_vectors = rhs._time_of_inp_state_vectors; - _inp_state_vect_pos_X_comp = rhs._inp_state_vect_pos_X_comp; - _inp_state_vect_pos_Y_comp = rhs._inp_state_vect_pos_Y_comp; - _inp_state_vect_pos_Z_comp = rhs._inp_state_vect_pos_Z_comp; - _inp_state_vect_vel_Vx_comp = rhs._inp_state_vect_vel_Vx_comp; - _inp_state_vect_vel_Vy_comp = rhs._inp_state_vect_vel_Vy_comp; - _inp_state_vect_vel_Vz_comp = rhs._inp_state_vect_vel_Vz_comp; - _inp_state_vector_type_flag = rhs._inp_state_vector_type_flag; - _win_coeff_for_range_match = rhs._win_coeff_for_range_match; - _win_coeff_for_azi_match = rhs._win_coeff_for_azi_match; - _update_period_range_match = rhs._update_period_range_match; - _look_scalar_gain_1 = rhs._look_scalar_gain_1; - _look_scalar_gain_2 = rhs._look_scalar_gain_2; - _look_scalar_gain_3 = rhs._look_scalar_gain_3; - _look_scalar_gain_4 = rhs._look_scalar_gain_4; - _look_scalar_gain_5 = rhs._look_scalar_gain_5; - _look_scalar_gain_6 = rhs._look_scalar_gain_6; - _look_scalar_gain_7 = rhs._look_scalar_gain_7; - _look_scalar_gain_8 = rhs._look_scalar_gain_8; - _samp_window_start_time_bias = rhs._samp_window_start_time_bias; - _doppler_centroid_cubic_coeff = rhs._doppler_centroid_cubic_coeff; - _PRF_code_first_range_line = rhs._PRF_code_first_range_line; - _PRF_code_last_range_line = rhs._PRF_code_last_range_line; - _samp_win_start_first = rhs._samp_win_start_first; - _samp_win_start_last = rhs._samp_win_start_last; - _cal_syst_gain_last_proc = rhs._cal_syst_gain_last_proc; - _receiver_gain_last_proc = rhs._receiver_gain_last_proc; - _first_processed_range_sample = rhs._first_processed_range_sample; - _azimuth_FFT_IFFT_ratio = rhs._azimuth_FFT_IFFT_ratio; - _num_azimuth_blocks_proc = rhs._num_azimuth_blocks_proc; - _num_input_raw_data_lines = rhs._num_input_raw_data_lines; - _initial_doppler_ambiguity_num = rhs._initial_doppler_ambiguity_num; - _thresh_no_1_flag = rhs._thresh_no_1_flag; - _thresh_no_2_flag = rhs._thresh_no_2_flag; - _thresh_no_3_flag = rhs._thresh_no_3_flag; - _thresh_no_4_flag = rhs._thresh_no_4_flag; - _thresh_no_5_flag = rhs._thresh_no_5_flag; - _thresh_no_6_flag = rhs._thresh_no_6_flag; - _thresh_no_7_flag = rhs._thresh_no_7_flag; - _thresh_no_8_flag = rhs._thresh_no_8_flag; - _thresh_no_9_flag = rhs._thresh_no_9_flag; - _thresh_no_10_flag = rhs._thresh_no_10_flag; - _thresh_no_11_flag = rhs._thresh_no_11_flag; - _sat_binary_time_of_first = rhs._sat_binary_time_of_first; - _num_valid_pixels_per_range = rhs._num_valid_pixels_per_range; - _num_range_samp_discarded = rhs._num_range_samp_discarded; - _I_gain_imb_lower_bound = rhs._I_gain_imb_lower_bound; - _I_gain_imb_upper_bound = rhs._I_gain_imb_upper_bound; - _I_Q_quad_depar_lower_bound = rhs._I_Q_quad_depar_lower_bound; - _I_Q_quad_depar_upper_bound = rhs._I_Q_quad_depar_upper_bound; - _3_dB_look_bandwidth = rhs._3_dB_look_bandwidth; - _3_dB_look_proc_dopp_bandw = rhs._3_dB_look_proc_dopp_bandw; - _range_spread_loss_comp_flag = rhs._range_spread_loss_comp_flag; - _datation_flag = rhs._datation_flag; - _max_error_range_line_timing = rhs._max_error_range_line_timing; - _form_num_range_line_used = rhs._form_num_range_line_used; - _autom_look_scal_gain_flag = rhs._autom_look_scal_gain_flag; - _max_value_look_scalar_gain = rhs._max_value_look_scalar_gain; - _replica_norm_method_flag = rhs._replica_norm_method_flag; - _coef_ground_range_1 = rhs._coef_ground_range_1; - _coef_ground_range_2 = rhs._coef_ground_range_2; - _coef_ground_range_3 = rhs._coef_ground_range_3; - _coef_ground_range_4 = rhs._coef_ground_range_4; - _coef_ant_elev_1 = rhs._coef_ant_elev_1; - _coef_ant_elev_2 = rhs._coef_ant_elev_2; - _coef_ant_elev_3 = rhs._coef_ant_elev_3; - _coef_ant_elev_4 = rhs._coef_ant_elev_4; - _coef_ant_elev_5 = rhs._coef_ant_elev_5; - _range_time_origin_ant = rhs._range_time_origin_ant; - - return *this; + _last_release_qc_date = rhs._last_release_qc_date; + _last_release_cal_date = rhs._last_release_cal_date; + _qa_summary_flag = rhs._qa_summary_flag; + _prf_code_change_flag = rhs._prf_code_change_flag; + _sampling_win_change_flag = rhs._sampling_win_change_flag; + _cal_gain_change_flag = rhs._cal_gain_change_flag; + _quirp_qu_flag = rhs._quirp_qu_flag; + _inp_data_stat_flag = rhs._inp_data_stat_flag; + _dopp_cent_conf_meas_flag = rhs._dopp_cent_conf_meas_flag; + _dopp_cent_val_flag = rhs._dopp_cent_val_flag; + _dopp_ambig_conf_meas_flag = rhs._dopp_ambig_conf_meas_flag; + _outp_data_mean_flag = rhs._outp_data_mean_flag; + _OGOB_flag = rhs._OGOB_flag; + _PRF_changes = rhs._PRF_changes; + _sampling_win_changes = rhs._sampling_win_changes; + _cal_gain_changes = rhs._cal_gain_changes; + _missing_lines = rhs._missing_lines; + _rec_gain_changes = rhs._rec_gain_changes; + _pulse_width_of_ACF_3db = rhs._pulse_width_of_ACF_3db; + _first_side_lobe_lev_of_ACF = rhs._first_side_lobe_lev_of_ACF; + _ISLR_of_ACF = rhs._ISLR_of_ACF; + _dopp_cent_conf_meas = rhs._dopp_cent_conf_meas; + _dopp_ambig_conf_meas = rhs._dopp_ambig_conf_meas; + _inp_data_I_mean = rhs._inp_data_I_mean; + _inp_data_Q_mean = rhs._inp_data_Q_mean; + _inp_data_I_stddev = rhs._inp_data_I_stddev; + _inp_data_Q_stddev = rhs._inp_data_Q_stddev; + _cal_sys_gain = rhs._cal_sys_gain; + _first_rec_gain_read = rhs._first_rec_gain_read; + _dopp_ambig_num = rhs._dopp_ambig_num; + _I_channel_bias_correction = rhs._I_channel_bias_correction; + _Q_channel_bias_correction = rhs._Q_channel_bias_correction; + _I_channel_gain_correction = rhs._I_channel_gain_correction; + _Q_channel_gain_correction = rhs._Q_channel_gain_correction; + _Q_channel_I_Q_correction = rhs._Q_channel_I_Q_correction; + _noise_power = rhs._noise_power; + _int_cal_utc = rhs._int_cal_utc; + _num_valid_cal_pulses = rhs._num_valid_cal_pulses; + _num_valid_noise_pulses = rhs._num_valid_noise_pulses; + _num_valid_replicas = rhs._num_valid_replicas; + _first_replica_sample = rhs._first_replica_sample; + _mean_cal_pulse_power = rhs._mean_cal_pulse_power; + _mean_noise_power = rhs._mean_noise_power; + _range_comp_norm_fact = rhs._range_comp_norm_fact; + _replica_power = rhs._replica_power; + _first_range_pixel_mid_az_inc = rhs._first_range_pixel_mid_az_inc; + _center_range_pix_mid_az_inc = rhs._center_range_pix_mid_az_inc; + _last_range_pix_mid_az_inc = rhs._last_range_pix_mid_az_inc; + _norm_ref_range_ro = rhs._norm_ref_range_ro; + _antenna_elev_flag = rhs._antenna_elev_flag; + _abs_cal_const_K = rhs._abs_cal_const_K; + _upp_bound_K = rhs._upp_bound_K; + _low_bound_K = rhs._low_bound_K; + _proc_noise_scale_fact = rhs._proc_noise_scale_fact; + _K_gen_date = rhs._K_gen_date; + _K_vers_num = rhs._K_vers_num; + _num_duplic_input_lines = rhs._num_duplic_input_lines; + _estim_bit_error_rate = rhs._estim_bit_error_rate; + _out_image_mean = rhs._out_image_mean; + _out_image_std_dev = rhs._out_image_std_dev; + _out_image_max_value = rhs._out_image_max_value; + _time_raw_data_first_input = rhs._time_raw_data_first_input; + _time_asc_node_state_vectors = rhs._time_asc_node_state_vectors; + _asc_node_pos_X_comp = rhs._asc_node_pos_X_comp; + _asc_node_pos_Y_comp = rhs._asc_node_pos_Y_comp; + _asc_node_pos_Z_comp = rhs._asc_node_pos_Z_comp; + _asc_node_vel_X_comp = rhs._asc_node_vel_X_comp; + _asc_node_vel_Y_comp = rhs._asc_node_vel_Y_comp; + _asc_node_vel_Z_comp = rhs._asc_node_vel_Z_comp; + _out_pixel_bit_length = rhs._out_pixel_bit_length; + _proc_gain_param_1 = rhs._proc_gain_param_1; + _proc_gain_param_2 = rhs._proc_gain_param_2; + _proc_gain_param_3 = rhs._proc_gain_param_3; + _peak_loc_cross_correl_fun = rhs._peak_loc_cross_correl_fun; + _3_dB_width_CCF = rhs._3_dB_width_CCF; + _first_side_lobe_level = rhs._first_side_lobe_level; + _ISLR_CCF_between_last = rhs._ISLR_CCF_between_last; + _peak_loc_CCF_betw_last = rhs._peak_loc_CCF_betw_last; + _Roll_Tilt_Mode_flag = rhs._Roll_Tilt_Mode_flag; + _raw_data_correction_flag = rhs._raw_data_correction_flag; + _look_detecion_flag = rhs._look_detecion_flag; + _doppler_ambiguity_estimat_flag = rhs._doppler_ambiguity_estimat_flag; + _azimuth_baseband_convers_flag = rhs._azimuth_baseband_convers_flag; + _samples_per_line_used = rhs._samples_per_line_used; + _range_lines_skip_factor = rhs._range_lines_skip_factor; + _time_of_inp_state_vectors = rhs._time_of_inp_state_vectors; + _inp_state_vect_pos_X_comp = rhs._inp_state_vect_pos_X_comp; + _inp_state_vect_pos_Y_comp = rhs._inp_state_vect_pos_Y_comp; + _inp_state_vect_pos_Z_comp = rhs._inp_state_vect_pos_Z_comp; + _inp_state_vect_vel_Vx_comp = rhs._inp_state_vect_vel_Vx_comp; + _inp_state_vect_vel_Vy_comp = rhs._inp_state_vect_vel_Vy_comp; + _inp_state_vect_vel_Vz_comp = rhs._inp_state_vect_vel_Vz_comp; + _inp_state_vector_type_flag = rhs._inp_state_vector_type_flag; + _win_coeff_for_range_match = rhs._win_coeff_for_range_match; + _win_coeff_for_azi_match = rhs._win_coeff_for_azi_match; + _update_period_range_match = rhs._update_period_range_match; + _look_scalar_gain_1 = rhs._look_scalar_gain_1; + _look_scalar_gain_2 = rhs._look_scalar_gain_2; + _look_scalar_gain_3 = rhs._look_scalar_gain_3; + _look_scalar_gain_4 = rhs._look_scalar_gain_4; + _look_scalar_gain_5 = rhs._look_scalar_gain_5; + _look_scalar_gain_6 = rhs._look_scalar_gain_6; + _look_scalar_gain_7 = rhs._look_scalar_gain_7; + _look_scalar_gain_8 = rhs._look_scalar_gain_8; + _samp_window_start_time_bias = rhs._samp_window_start_time_bias; + _doppler_centroid_cubic_coeff = rhs._doppler_centroid_cubic_coeff; + _PRF_code_first_range_line = rhs._PRF_code_first_range_line; + _PRF_code_last_range_line = rhs._PRF_code_last_range_line; + _samp_win_start_first = rhs._samp_win_start_first; + _samp_win_start_last = rhs._samp_win_start_last; + _cal_syst_gain_last_proc = rhs._cal_syst_gain_last_proc; + _receiver_gain_last_proc = rhs._receiver_gain_last_proc; + _first_processed_range_sample = rhs._first_processed_range_sample; + _azimuth_FFT_IFFT_ratio = rhs._azimuth_FFT_IFFT_ratio; + _num_azimuth_blocks_proc = rhs._num_azimuth_blocks_proc; + _num_input_raw_data_lines = rhs._num_input_raw_data_lines; + _initial_doppler_ambiguity_num = rhs._initial_doppler_ambiguity_num; + _thresh_no_1_flag = rhs._thresh_no_1_flag; + _thresh_no_2_flag = rhs._thresh_no_2_flag; + _thresh_no_3_flag = rhs._thresh_no_3_flag; + _thresh_no_4_flag = rhs._thresh_no_4_flag; + _thresh_no_5_flag = rhs._thresh_no_5_flag; + _thresh_no_6_flag = rhs._thresh_no_6_flag; + _thresh_no_7_flag = rhs._thresh_no_7_flag; + _thresh_no_8_flag = rhs._thresh_no_8_flag; + _thresh_no_9_flag = rhs._thresh_no_9_flag; + _thresh_no_10_flag = rhs._thresh_no_10_flag; + _thresh_no_11_flag = rhs._thresh_no_11_flag; + _sat_binary_time_of_first = rhs._sat_binary_time_of_first; + _num_valid_pixels_per_range = rhs._num_valid_pixels_per_range; + _num_range_samp_discarded = rhs._num_range_samp_discarded; + _I_gain_imb_lower_bound = rhs._I_gain_imb_lower_bound; + _I_gain_imb_upper_bound = rhs._I_gain_imb_upper_bound; + _I_Q_quad_depar_lower_bound = rhs._I_Q_quad_depar_lower_bound; + _I_Q_quad_depar_upper_bound = rhs._I_Q_quad_depar_upper_bound; + _3_dB_look_bandwidth = rhs._3_dB_look_bandwidth; + _3_dB_look_proc_dopp_bandw = rhs._3_dB_look_proc_dopp_bandw; + _range_spread_loss_comp_flag = rhs._range_spread_loss_comp_flag; + _datation_flag = rhs._datation_flag; + _max_error_range_line_timing = rhs._max_error_range_line_timing; + _form_num_range_line_used = rhs._form_num_range_line_used; + _autom_look_scal_gain_flag = rhs._autom_look_scal_gain_flag; + _max_value_look_scalar_gain = rhs._max_value_look_scalar_gain; + _replica_norm_method_flag = rhs._replica_norm_method_flag; + _coef_ground_range_1 = rhs._coef_ground_range_1; + _coef_ground_range_2 = rhs._coef_ground_range_2; + _coef_ground_range_3 = rhs._coef_ground_range_3; + _coef_ground_range_4 = rhs._coef_ground_range_4; + _coef_ant_elev_1 = rhs._coef_ant_elev_1; + _coef_ant_elev_2 = rhs._coef_ant_elev_2; + _coef_ant_elev_3 = rhs._coef_ant_elev_3; + _coef_ant_elev_4 = rhs._coef_ant_elev_4; + _coef_ant_elev_5 = rhs._coef_ant_elev_5; + _range_time_origin_ant = rhs._range_time_origin_ant; + + return *this; +} } diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.h index b49e7d938b1c1d43bac018b76427e52ee288d3e5..5ceaf564f0caf74fd2f2a376b4e97b1f0c1a6e93 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFacilityData.h @@ -5,6 +5,10 @@ #include <cstdlib> #include <AlosSarRecordHeader.h> #include <AlosSarRecord.h> + +namespace ossimplugins +{ + /** * @ingroup AlosSarFacilityDataRecord * @brief This class is able to read the SAR leader data set summary record of the leader file @@ -15,1781 +19,1781 @@ class AlosSarFacilityData : public AlosSarRecord { public: - /** - * @brief Constructor - */ - AlosSarFacilityData(); + /** + * @brief Constructor + */ + AlosSarFacilityData(); - /** - * @brief Destructor - */ - ~AlosSarFacilityData(); + /** + * @brief Destructor + */ + ~AlosSarFacilityData(); - /** - * @brief This function write the AlosSarFacilityData in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarFacilityData& data); + /** + * @brief This function write the AlosSarFacilityData in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarFacilityData& data); - /** - * @brief This function read a AlosSarFacilityData from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarFacilityData& data); + /** + * @brief This function read a AlosSarFacilityData from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarFacilityData& data); - /** - * @brief Copy constructor - */ - AlosSarFacilityData(const AlosSarFacilityData& rhs); + /** + * @brief Copy constructor + */ + AlosSarFacilityData(const AlosSarFacilityData& rhs); - /** - * @brief Copy operator - */ - AlosSarFacilityData& operator=(const AlosSarFacilityData& rhs); + /** + * @brief Copy operator + */ + AlosSarFacilityData& operator=(const AlosSarFacilityData& rhs); - /** - * @brief This function is able to create a new instance of the class - */ - AlosSarRecord* Instanciate() - { - return new AlosSarFacilityData(); - }; + /** + * @brief This function is able to create a new instance of the class + */ + AlosSarRecord* Instanciate() + { + return new AlosSarFacilityData(); + }; - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - AlosSarRecord* Clone() - { - return new AlosSarFacilityData(*this); - }; + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + AlosSarRecord* Clone() + { + return new AlosSarFacilityData(*this); + }; - /** - * @brief Read the class data from a stream - */ - void Read(std::istream& is) - { - is>>*this; - }; + /** + * @brief Read the class data from a stream + */ + void Read(std::istream& is) + { + is>>*this; + }; - /** - * @brief Write the class to a stream - */ - void Write(std::ostream& os) - { - os<<*this; - }; + /** + * @brief Write the class to a stream + */ + void Write(std::ostream& os) + { + os<<*this; + }; - /** - * @brief name_of_facil_rec - */ - std::string get_name_of_facil_rec() - { - return _name_of_facil_rec; - }; + /** + * @brief name_of_facil_rec + */ + std::string get_name_of_facil_rec() + { + return _name_of_facil_rec; + }; - /** - * @brief last_release_qc_date - */ - std::string get_last_release_qc_date() - { - return _last_release_qc_date; - }; - /** - * @brief last_release_cal_date - */ - std::string get_last_release_cal_date() - { - return _last_release_cal_date; - }; - /** - * @brief qa_summary_flag - */ - int get_qa_summary_flag() - { - return _qa_summary_flag; - }; - /** - * @brief prf_code_change_flag - */ - int get_prf_code_change_flag() - { - return _prf_code_change_flag; - }; - /** - * @brief sampling_win_change_flag - */ - int get_sampling_win_change_flag() - { - return _sampling_win_change_flag; - }; - /** - * @brief cal_gain_change_flag - */ - int get_cal_gain_change_flag() - { - return _cal_gain_change_flag; - }; - /** - * @brief quirp_qu_flag - */ - int get_quirp_qu_flag() - { - return _quirp_qu_flag; - }; - /** - * @brief inp_data_stat_flag - */ - int get_inp_data_stat_flag() - { - return _inp_data_stat_flag; - }; - /** - * @brief dopp_cent_conf_meas_flag - */ - int get_dopp_cent_conf_meas_flag() - { - return _dopp_cent_conf_meas_flag; - }; - /** - * @brief dopp_cent_val_flag - */ - int get_dopp_cent_val_flag() - { - return _dopp_cent_val_flag; - }; - /** - * @brief dopp_ambig_conf_meas_flag - */ - int get_dopp_ambig_conf_meas_flag() - { - return _dopp_ambig_conf_meas_flag; - }; - /** - * @brief outp_data_mean_flag - */ - int get_outp_data_mean_flag() - { - return _outp_data_mean_flag; - }; - /** - * @brief OGOB_flag - */ - int get_OGOB_flag() - { - return _OGOB_flag; - }; - /** - * @brief PRF_changes - */ - int get_PRF_changes() - { - return _PRF_changes; - }; - /** - * @brief sampling_win_changes - */ - int get_sampling_win_changes() - { - return _sampling_win_changes; - }; - /** - * @brief cal_gain_changes - */ - int get_cal_gain_changes() - { - return _cal_gain_changes; - }; - /** - * @brief missing_lines - */ - int get_missing_lines() - { - return _missing_lines; - }; - /** - * @brief rec_gain_changes - */ - int get_rec_gain_changes() - { - return _rec_gain_changes; - }; - /** - * @brief pulse_width_of_ACF_3db - */ - double get_pulse_width_of_ACF_3db() - { - return _pulse_width_of_ACF_3db; - }; - /** - * @brief first_side_lobe_lev_of_ACF - */ - double get_first_side_lobe_lev_of_ACF() - { - return _first_side_lobe_lev_of_ACF; - }; - /** - * @brief ISLR_of_ACF - */ - double get_ISLR_of_ACF() - { - return _ISLR_of_ACF; - }; - /** - * @brief dopp_cent_conf_meas - */ - double get_dopp_cent_conf_meas() - { - return _dopp_cent_conf_meas; - }; - /** - * @brief dopp_ambig_conf_meas - */ - double get_dopp_ambig_conf_meas() - { - return _dopp_ambig_conf_meas; - }; - /** - * @brief inp_data_I_mean - */ - double get_inp_data_I_mean() - { - return _inp_data_I_mean; - }; - /** - * @brief inp_data_Q_mean - */ - double get_inp_data_Q_mean() - { - return _inp_data_Q_mean; - }; - /** - * @brief inp_data_I_stddev - */ - double get_inp_data_I_stddev() - { - return _inp_data_I_stddev; - }; - /** - * @brief inp_data_Q_stddev - */ - double get_inp_data_Q_stddev() - { - return _inp_data_Q_stddev; - }; - /** - * @brief cal_sys_gain - */ - double get_cal_sys_gain() - { - return _cal_sys_gain; - }; - /** - * @brief first_rec_gain_read - */ - double get_first_rec_gain_read() - { - return _first_rec_gain_read; - }; - /** - * @brief dopp_ambig_num - */ - double get_dopp_ambig_num() - { - return _dopp_ambig_num; - }; - /** - * @brief I_channel_bias_correction - */ - double get_I_channel_bias_correction() - { - return _I_channel_bias_correction; - }; - /** - * @brief Q_channel_bias_correction - */ - double get_Q_channel_bias_correction() - { - return _Q_channel_bias_correction; - }; - /** - * @brief I_channel_gain_correction - */ - double get_I_channel_gain_correction() - { - return _I_channel_gain_correction; - }; - /** - * @brief Q_channel_gain_correction - */ - double get_Q_channel_gain_correction() - { - return _Q_channel_gain_correction; - }; - /** - * @brief Q_channel_I_Q_correction - */ - double get_Q_channel_I_Q_correction() - { - return _Q_channel_I_Q_correction; - }; - /** - * @brief noise_power - */ - double get_noise_power() - { - return _noise_power; - }; - /** - * @brief int_cal_utc - */ - int get_int_cal_utc() - { - return _int_cal_utc; - }; - /** - * @brief num_valid_cal_pulses - */ - int get_num_valid_cal_pulses() - { - return _num_valid_cal_pulses; - }; - /** - * @brief num_valid_noise_pulses - */ - int get_num_valid_noise_pulses() - { - return _num_valid_noise_pulses; - }; - /** - * @brief num_valid_replicas - */ - int get_num_valid_replicas() - { - return _num_valid_replicas; - }; - /** - * @brief first_replica_sample - */ - double get_first_replica_sample() - { - return _first_replica_sample; - }; - /** - * @brief mean_cal_pulse_power - */ - double get_mean_cal_pulse_power() - { - return _mean_cal_pulse_power; - }; - /** - * @brief mean_noise_power - */ - double get_mean_noise_power() - { - return _mean_noise_power; - }; - /** - * @brief range_comp_norm_fact - */ - double get_range_comp_norm_fact() - { - return _range_comp_norm_fact; - }; - /** - * @brief replica_power - */ - double get_replica_power() - { - return _replica_power; - }; - /** - * @brief first_range_pixel_mid_az_inc - */ - double get_first_range_pixel_mid_az_inc() - { - return _first_range_pixel_mid_az_inc; - }; - /** - * @brief center_range_pix_mid_az_inc - */ - double get_center_range_pix_mid_az_inc() - { - return _center_range_pix_mid_az_inc; - }; - /** - * @brief last_range_pix_mid_az_inc - */ - double get_last_range_pix_mid_az_inc() - { - return _last_range_pix_mid_az_inc; - }; - /** - * @brief norm_ref_range_ro - */ - double get_norm_ref_range_ro() - { - return _norm_ref_range_ro; - }; - /** - * @brief antenna_elev_flag - */ - int get_antenna_elev_flag() - { - return _antenna_elev_flag; - }; - /** - * @brief abs_cal_const_K - */ - double get_abs_cal_const_K() - { - return _abs_cal_const_K; - }; - /** - * @brief upp_bound_K - */ - double get_upp_bound_K() - { - return _upp_bound_K; - }; - /** - * @brief low_bound_K - */ - double get_low_bound_K() - { - return _low_bound_K; - }; - /** - * @brief proc_noise_scale_fact - */ - double get_proc_noise_scale_fact() - { - return _proc_noise_scale_fact; - }; - /** - * @brief K_gen_date - */ - std::string get_K_gen_date() - { - return _K_gen_date; - }; - /** - * @brief K_vers_num - */ - std::string get_K_vers_num() - { - return _K_vers_num; - }; - /** - * @brief num_duplic_input_lines - */ - int get_num_duplic_input_lines() - { - return _num_duplic_input_lines; - }; - /** - * @brief estim_bit_error_rate - */ - double get_estim_bit_error_rate() - { - return _estim_bit_error_rate; - }; - /** - * @brief out_image_mean - */ - double get_out_image_mean() - { - return _out_image_mean; - }; - /** - * @brief out_image_std_dev - */ - double get_out_image_std_dev() - { - return _out_image_std_dev; - }; - /** - * @brief out_image_max_value - */ - double get_out_image_max_value() - { - return _out_image_max_value; - }; - /** - * @brief time_raw_data_first_input - */ - std::string get_time_raw_data_first_input() - { - return _time_raw_data_first_input; - }; - /** - * @brief time_asc_node_state_vectors - */ - std::string get_time_asc_node_state_vectors() - { - return _time_asc_node_state_vectors; - }; - /** - * @brief asc_node_pos_X_comp - */ - std::string get_asc_node_pos_X_comp() - { - return _asc_node_pos_X_comp; - }; - /** - * @brief asc_node_pos_Y_comp - */ - std::string get_asc_node_pos_Y_comp() - { - return _asc_node_pos_Y_comp; - }; - /** - * @brief asc_node_pos_Z_comp - */ - std::string get_asc_node_pos_Z_comp() - { - return _asc_node_pos_Z_comp; - }; - /** - * @brief asc_node_vel_X_comp - */ - std::string get_asc_node_vel_X_comp() - { - return _asc_node_vel_X_comp; - }; - /** - * @brief asc_node_vel_Y_comp - */ - std::string get_asc_node_vel_Y_comp() - { - return _asc_node_vel_Y_comp; - }; - /** - * @brief asc_node_vel_Z_comp - */ - std::string get_asc_node_vel_Z_comp() - { - return _asc_node_vel_Z_comp; - }; - /** - * @brief out_pixel_bit_length - */ - int get_out_pixel_bit_length() - { - return _out_pixel_bit_length; - }; - /** - * @brief proc_gain_param_1 - */ - double get_proc_gain_param_1() - { - return _proc_gain_param_1; - }; - /** - * @brief proc_gain_param_2 - */ - double get_proc_gain_param_2() - { - return _proc_gain_param_2; - }; - /** - * @brief proc_gain_param_3 - */ - double get_proc_gain_param_3() - { - return _proc_gain_param_3; - }; - /** - * @brief peak_loc_cross_correl_fun - */ - int get_peak_loc_cross_correl_fun() - { - return _peak_loc_cross_correl_fun; - }; - /** - * @brief 3_dB_width_CCF - */ - double get_3_dB_width_CCF() - { - return _3_dB_width_CCF; - }; - /** - * @brief first_side_lobe_level - */ - double get_first_side_lobe_level() - { - return _first_side_lobe_level; - }; - /** - * @brief ISLR_CCF_between_last - */ - double get_ISLR_CCF_between_last() - { - return _ISLR_CCF_between_last; - }; - /** - * @brief peak_loc_CCF_betw_last - */ - int get_peak_loc_CCF_betw_last() - { - return _peak_loc_CCF_betw_last; - }; - /** - * @brief Roll_Tilt_Mode_flag - */ - int get_Roll_Tilt_Mode_flag() - { - return _Roll_Tilt_Mode_flag; - }; - /** - * @brief raw_data_correction_flag - */ - int get_raw_data_correction_flag() - { - return _raw_data_correction_flag; - }; - /** - * @brief look_detecion_flag - */ - int get_look_detecion_flag() - { - return _look_detecion_flag; - }; - /** - * @brief doppler_ambiguity_estimat_flag - */ - int get_doppler_ambiguity_estimat_flag() - { - return _doppler_ambiguity_estimat_flag; - }; - /** - * @brief azimuth_baseband_convers_flag - */ - int get_azimuth_baseband_convers_flag() - { - return _azimuth_baseband_convers_flag; - }; - /** - * @brief samples_per_line_used - */ - int get_samples_per_line_used() - { - return _samples_per_line_used; - }; - /** - * @brief range_lines_skip_factor - */ - int get_range_lines_skip_factor() - { - return _range_lines_skip_factor; - }; - /** - * @brief time_of_inp_state_vectors - */ - std::string get_time_of_inp_state_vectors() - { - return _time_of_inp_state_vectors; - }; - /** - * @brief inp_state_vect_pos_X_comp - */ - std::string get_inp_state_vect_pos_X_comp() - { - return _inp_state_vect_pos_X_comp; - }; - /** - * @brief inp_state_vect_pos_Y_comp - */ - std::string get_inp_state_vect_pos_Y_comp() - { - return _inp_state_vect_pos_Y_comp; - }; - /** - * @brief inp_state_vect_pos_Z_comp - */ - std::string get_inp_state_vect_pos_Z_comp() - { - return _inp_state_vect_pos_Z_comp; - }; - /** - * @brief inp_state_vect_vel_Vx_comp - */ - std::string get_inp_state_vect_vel_Vx_comp() - { - return _inp_state_vect_vel_Vx_comp; - }; - /** - * @brief inp_state_vect_vel_Vy_comp - */ - std::string get_inp_state_vect_vel_Vy_comp() - { - return _inp_state_vect_vel_Vy_comp; - }; - /** - * @brief inp_state_vect_vel_Vz_comp - */ - std::string get_inp_state_vect_vel_Vz_comp() - { - return _inp_state_vect_vel_Vz_comp; - }; - /** - * @brief inp_state_vector_type_flag - */ - int get_inp_state_vector_type_flag() - { - return _inp_state_vector_type_flag; - }; - /** - * @brief win_coeff_for_range_match - */ - double get_win_coeff_for_range_match() - { - return _win_coeff_for_range_match; - }; - /** - * @brief win_coeff_for_azi_match - */ - double get_win_coeff_for_azi_match() - { - return _win_coeff_for_azi_match; - }; - /** - * @brief update_period_range_match - */ - int get_update_period_range_match() - { - return _update_period_range_match; - }; - /** - * @brief look_scalar_gain_1 - */ - double get_look_scalar_gain_1() - { - return _look_scalar_gain_1; - }; - /** - * @brief look_scalar_gain_2 - */ - double get_look_scalar_gain_2() - { - return _look_scalar_gain_2; - }; - /** - * @brief look_scalar_gain_3 - */ - double get_look_scalar_gain_3() - { - return _look_scalar_gain_3; - }; - /** - * @brief look_scalar_gain_4 - */ - double get_look_scalar_gain_4() - { - return _look_scalar_gain_4; - }; - /** - * @brief look_scalar_gain_5 - */ - double get_look_scalar_gain_5() - { - return _look_scalar_gain_5; - }; - /** - * @brief look_scalar_gain_6 - */ - double get_look_scalar_gain_6() - { - return _look_scalar_gain_6; - }; - /** - * @brief look_scalar_gain_7 - */ - double get_look_scalar_gain_7() - { - return _look_scalar_gain_7; - }; - /** - * @brief look_scalar_gain_8 - */ - double get_look_scalar_gain_8() - { - return _look_scalar_gain_8; - }; - /** - * @brief samp_window_start_time_bias - */ - int get_samp_window_start_time_bias() - { - return _samp_window_start_time_bias; - }; - /** - * @brief doppler_centroid_cubic_coeff - */ - double get_doppler_centroid_cubic_coeff() - { - return _doppler_centroid_cubic_coeff; - }; - /** - * @brief PRF_code_first_range_line - */ - int get_PRF_code_first_range_line() - { - return _PRF_code_first_range_line; - }; - /** - * @brief PRF_code_last_range_line - */ - int get_PRF_code_last_range_line() - { - return _PRF_code_last_range_line; - }; - /** - * @brief samp_win_start_first - */ - int get_samp_win_start_first() - { - return _samp_win_start_first; - }; - /** - * @brief samp_win_start_last - */ - int get_samp_win_start_last() - { - return _samp_win_start_last; - }; - /** - * @brief cal_syst_gain_last_proc - */ - int get_cal_syst_gain_last_proc() - { - return _cal_syst_gain_last_proc; - }; - /** - * @brief receiver_gain_last_proc - */ - int get_receiver_gain_last_proc() - { - return _receiver_gain_last_proc; - }; - /** - * @brief first_processed_range_sample - */ - int get_first_processed_range_sample() - { - return _first_processed_range_sample; - }; - /** - * @brief azimuth_FFT_IFFT_ratio - */ - int get_azimuth_FFT_IFFT_ratio() - { - return _azimuth_FFT_IFFT_ratio; - }; - /** - * @brief num_azimuth_blocks_proc - */ - int get_num_azimuth_blocks_proc() - { - return _num_azimuth_blocks_proc; - }; - /** - * @brief num_input_raw_data_lines - */ - int get_num_input_raw_data_lines() - { - return _num_input_raw_data_lines; - }; - /** - * @brief initial_doppler_ambiguity_num - */ - int get_initial_doppler_ambiguity_num() - { - return _initial_doppler_ambiguity_num; - }; - /** - * @brief thresh_no_1_flag - */ - double get_thresh_no_1_flag() - { - return _thresh_no_1_flag; - }; - /** - * @brief thresh_no_2_flag - */ - double get_thresh_no_2_flag() - { - return _thresh_no_2_flag; - }; - /** - * @brief thresh_no_3_flag - */ - double get_thresh_no_3_flag() - { - return _thresh_no_3_flag; - }; - /** - * @brief thresh_no_4_flag - */ - double get_thresh_no_4_flag() - { - return _thresh_no_4_flag; - }; - /** - * @brief thresh_no_5_flag - */ - double get_thresh_no_5_flag() - { - return _thresh_no_5_flag; - }; - /** - * @brief thresh_no_6_flag - */ - double get_thresh_no_6_flag() - { - return _thresh_no_6_flag; - }; - /** - * @brief thresh_no_7_flag - */ - double get_thresh_no_7_flag() - { - return _thresh_no_7_flag; - }; - /** - * @brief thresh_no_8_flag - */ - double get_thresh_no_8_flag() - { - return _thresh_no_8_flag; - }; - /** - * @brief thresh_no_9_flag - */ - double get_thresh_no_9_flag() - { - return _thresh_no_9_flag; - }; - /** - * @brief thresh_no_10_flag - */ - double get_thresh_no_10_flag() - { - return _thresh_no_10_flag; - }; - /** - * @brief thresh_no_11_flag - */ - double get_thresh_no_11_flag() - { - return _thresh_no_11_flag; - }; - /** - * @brief sat_binary_time_of_first - */ - int get_sat_binary_time_of_first() - { - return _sat_binary_time_of_first; - }; - /** - * @brief num_valid_pixels_per_range - */ - int get_num_valid_pixels_per_range() - { - return _num_valid_pixels_per_range; - }; - /** - * @brief num_range_samp_discarded - */ - int get_num_range_samp_discarded() - { - return _num_range_samp_discarded; - }; - /** - * @brief I_gain_imb_lower_bound - */ - double get_I_gain_imb_lower_bound() - { - return _I_gain_imb_lower_bound; - }; - /** - * @brief I_gain_imb_upper_bound - */ - double get_I_gain_imb_upper_bound() - { - return _I_gain_imb_upper_bound; - }; - /** - * @brief I_Q_quad_depar_lower_bound - */ - double get_I_Q_quad_depar_lower_bound() - { - return _I_Q_quad_depar_lower_bound; - }; - /** - * @brief I_Q_quad_depar_upper_bound - */ - double get_I_Q_quad_depar_upper_bound() - { - return _I_Q_quad_depar_upper_bound; - }; - /** - * @brief 3_dB_look_bandwidth - */ - double get_3_dB_look_bandwidth() - { - return _3_dB_look_bandwidth; - }; - /** - * @brief 3_dB_look_proc_dopp_bandw - */ - double get_3_dB_look_proc_dopp_bandw() - { - return _3_dB_look_proc_dopp_bandw; - }; - /** - * @brief range_spread_loss_comp_flag - */ - int get_range_spread_loss_comp_flag() - { - return _range_spread_loss_comp_flag; - }; - /** - * @brief datation_flag - */ - bool get_datation_flag() - { - return _datation_flag; - }; - /** - * @brief max_error_range_line_timing - */ - int get_max_error_range_line_timing() - { - return _max_error_range_line_timing; - }; - /** - * @brief form_num_range_line_used - */ - int get_form_num_range_line_used() - { - return _form_num_range_line_used; - }; - /** - * @brief autom_look_scal_gain_flag - */ - bool get_autom_look_scal_gain_flag() - { - return _autom_look_scal_gain_flag; - }; - /** - * @brief max_value_look_scalar_gain - */ - int get_max_value_look_scalar_gain() - { - return _max_value_look_scalar_gain; - }; - /** - * @brief replica_norm_method_flag - */ - int get_replica_norm_method_flag() - { - return _replica_norm_method_flag; - }; - /** - * @brief coef_ground_range_1 - */ - double get_coef_ground_range_1() - { - return _coef_ground_range_1; - }; - /** - * @brief coef_ground_range_2 - */ - double get_coef_ground_range_2() - { - return _coef_ground_range_2; - }; - /** - * @brief coef_ground_range_3 - */ - double get_coef_ground_range_3() - { - return _coef_ground_range_3; - }; - /** - * @brief coef_ground_range_4 - */ - double get_coef_ground_range_4() - { - return _coef_ground_range_4; - }; - /** - * @brief coef_ant_elev_1 - */ - double get_coef_ant_elev_1() - { - return _coef_ant_elev_1; - }; - /** - * @brief coef_ant_elev_2 - */ - double get_coef_ant_elev_2() - { - return _coef_ant_elev_2; - }; - /** - * @brief coef_ant_elev_3 - */ - double get_coef_ant_elev_3() - { - return _coef_ant_elev_3; - }; - /** - * @brief coef_ant_elev_4 - */ - double get_coef_ant_elev_4() - { - return _coef_ant_elev_4; - }; - /** - * @brief coef_ant_elev_5 - */ - double get_coef_ant_elev_5() - { - return _coef_ant_elev_5; - }; - /** - * @brief range_time_origin_ant - */ - double get_range_time_origin_ant() - { - return _range_time_origin_ant; - }; + /** + * @brief last_release_qc_date + */ + std::string get_last_release_qc_date() + { + return _last_release_qc_date; + }; + /** + * @brief last_release_cal_date + */ + std::string get_last_release_cal_date() + { + return _last_release_cal_date; + }; + /** + * @brief qa_summary_flag + */ + int get_qa_summary_flag() + { + return _qa_summary_flag; + }; + /** + * @brief prf_code_change_flag + */ + int get_prf_code_change_flag() + { + return _prf_code_change_flag; + }; + /** + * @brief sampling_win_change_flag + */ + int get_sampling_win_change_flag() + { + return _sampling_win_change_flag; + }; + /** + * @brief cal_gain_change_flag + */ + int get_cal_gain_change_flag() + { + return _cal_gain_change_flag; + }; + /** + * @brief quirp_qu_flag + */ + int get_quirp_qu_flag() + { + return _quirp_qu_flag; + }; + /** + * @brief inp_data_stat_flag + */ + int get_inp_data_stat_flag() + { + return _inp_data_stat_flag; + }; + /** + * @brief dopp_cent_conf_meas_flag + */ + int get_dopp_cent_conf_meas_flag() + { + return _dopp_cent_conf_meas_flag; + }; + /** + * @brief dopp_cent_val_flag + */ + int get_dopp_cent_val_flag() + { + return _dopp_cent_val_flag; + }; + /** + * @brief dopp_ambig_conf_meas_flag + */ + int get_dopp_ambig_conf_meas_flag() + { + return _dopp_ambig_conf_meas_flag; + }; + /** + * @brief outp_data_mean_flag + */ + int get_outp_data_mean_flag() + { + return _outp_data_mean_flag; + }; + /** + * @brief OGOB_flag + */ + int get_OGOB_flag() + { + return _OGOB_flag; + }; + /** + * @brief PRF_changes + */ + int get_PRF_changes() + { + return _PRF_changes; + }; + /** + * @brief sampling_win_changes + */ + int get_sampling_win_changes() + { + return _sampling_win_changes; + }; + /** + * @brief cal_gain_changes + */ + int get_cal_gain_changes() + { + return _cal_gain_changes; + }; + /** + * @brief missing_lines + */ + int get_missing_lines() + { + return _missing_lines; + }; + /** + * @brief rec_gain_changes + */ + int get_rec_gain_changes() + { + return _rec_gain_changes; + }; + /** + * @brief pulse_width_of_ACF_3db + */ + double get_pulse_width_of_ACF_3db() + { + return _pulse_width_of_ACF_3db; + }; + /** + * @brief first_side_lobe_lev_of_ACF + */ + double get_first_side_lobe_lev_of_ACF() + { + return _first_side_lobe_lev_of_ACF; + }; + /** + * @brief ISLR_of_ACF + */ + double get_ISLR_of_ACF() + { + return _ISLR_of_ACF; + }; + /** + * @brief dopp_cent_conf_meas + */ + double get_dopp_cent_conf_meas() + { + return _dopp_cent_conf_meas; + }; + /** + * @brief dopp_ambig_conf_meas + */ + double get_dopp_ambig_conf_meas() + { + return _dopp_ambig_conf_meas; + }; + /** + * @brief inp_data_I_mean + */ + double get_inp_data_I_mean() + { + return _inp_data_I_mean; + }; + /** + * @brief inp_data_Q_mean + */ + double get_inp_data_Q_mean() + { + return _inp_data_Q_mean; + }; + /** + * @brief inp_data_I_stddev + */ + double get_inp_data_I_stddev() + { + return _inp_data_I_stddev; + }; + /** + * @brief inp_data_Q_stddev + */ + double get_inp_data_Q_stddev() + { + return _inp_data_Q_stddev; + }; + /** + * @brief cal_sys_gain + */ + double get_cal_sys_gain() + { + return _cal_sys_gain; + }; + /** + * @brief first_rec_gain_read + */ + double get_first_rec_gain_read() + { + return _first_rec_gain_read; + }; + /** + * @brief dopp_ambig_num + */ + double get_dopp_ambig_num() + { + return _dopp_ambig_num; + }; + /** + * @brief I_channel_bias_correction + */ + double get_I_channel_bias_correction() + { + return _I_channel_bias_correction; + }; + /** + * @brief Q_channel_bias_correction + */ + double get_Q_channel_bias_correction() + { + return _Q_channel_bias_correction; + }; + /** + * @brief I_channel_gain_correction + */ + double get_I_channel_gain_correction() + { + return _I_channel_gain_correction; + }; + /** + * @brief Q_channel_gain_correction + */ + double get_Q_channel_gain_correction() + { + return _Q_channel_gain_correction; + }; + /** + * @brief Q_channel_I_Q_correction + */ + double get_Q_channel_I_Q_correction() + { + return _Q_channel_I_Q_correction; + }; + /** + * @brief noise_power + */ + double get_noise_power() + { + return _noise_power; + }; + /** + * @brief int_cal_utc + */ + int get_int_cal_utc() + { + return _int_cal_utc; + }; + /** + * @brief num_valid_cal_pulses + */ + int get_num_valid_cal_pulses() + { + return _num_valid_cal_pulses; + }; + /** + * @brief num_valid_noise_pulses + */ + int get_num_valid_noise_pulses() + { + return _num_valid_noise_pulses; + }; + /** + * @brief num_valid_replicas + */ + int get_num_valid_replicas() + { + return _num_valid_replicas; + }; + /** + * @brief first_replica_sample + */ + double get_first_replica_sample() + { + return _first_replica_sample; + }; + /** + * @brief mean_cal_pulse_power + */ + double get_mean_cal_pulse_power() + { + return _mean_cal_pulse_power; + }; + /** + * @brief mean_noise_power + */ + double get_mean_noise_power() + { + return _mean_noise_power; + }; + /** + * @brief range_comp_norm_fact + */ + double get_range_comp_norm_fact() + { + return _range_comp_norm_fact; + }; + /** + * @brief replica_power + */ + double get_replica_power() + { + return _replica_power; + }; + /** + * @brief first_range_pixel_mid_az_inc + */ + double get_first_range_pixel_mid_az_inc() + { + return _first_range_pixel_mid_az_inc; + }; + /** + * @brief center_range_pix_mid_az_inc + */ + double get_center_range_pix_mid_az_inc() + { + return _center_range_pix_mid_az_inc; + }; + /** + * @brief last_range_pix_mid_az_inc + */ + double get_last_range_pix_mid_az_inc() + { + return _last_range_pix_mid_az_inc; + }; + /** + * @brief norm_ref_range_ro + */ + double get_norm_ref_range_ro() + { + return _norm_ref_range_ro; + }; + /** + * @brief antenna_elev_flag + */ + int get_antenna_elev_flag() + { + return _antenna_elev_flag; + }; + /** + * @brief abs_cal_const_K + */ + double get_abs_cal_const_K() + { + return _abs_cal_const_K; + }; + /** + * @brief upp_bound_K + */ + double get_upp_bound_K() + { + return _upp_bound_K; + }; + /** + * @brief low_bound_K + */ + double get_low_bound_K() + { + return _low_bound_K; + }; + /** + * @brief proc_noise_scale_fact + */ + double get_proc_noise_scale_fact() + { + return _proc_noise_scale_fact; + }; + /** + * @brief K_gen_date + */ + std::string get_K_gen_date() + { + return _K_gen_date; + }; + /** + * @brief K_vers_num + */ + std::string get_K_vers_num() + { + return _K_vers_num; + }; + /** + * @brief num_duplic_input_lines + */ + int get_num_duplic_input_lines() + { + return _num_duplic_input_lines; + }; + /** + * @brief estim_bit_error_rate + */ + double get_estim_bit_error_rate() + { + return _estim_bit_error_rate; + }; + /** + * @brief out_image_mean + */ + double get_out_image_mean() + { + return _out_image_mean; + }; + /** + * @brief out_image_std_dev + */ + double get_out_image_std_dev() + { + return _out_image_std_dev; + }; + /** + * @brief out_image_max_value + */ + double get_out_image_max_value() + { + return _out_image_max_value; + }; + /** + * @brief time_raw_data_first_input + */ + std::string get_time_raw_data_first_input() + { + return _time_raw_data_first_input; + }; + /** + * @brief time_asc_node_state_vectors + */ + std::string get_time_asc_node_state_vectors() + { + return _time_asc_node_state_vectors; + }; + /** + * @brief asc_node_pos_X_comp + */ + std::string get_asc_node_pos_X_comp() + { + return _asc_node_pos_X_comp; + }; + /** + * @brief asc_node_pos_Y_comp + */ + std::string get_asc_node_pos_Y_comp() + { + return _asc_node_pos_Y_comp; + }; + /** + * @brief asc_node_pos_Z_comp + */ + std::string get_asc_node_pos_Z_comp() + { + return _asc_node_pos_Z_comp; + }; + /** + * @brief asc_node_vel_X_comp + */ + std::string get_asc_node_vel_X_comp() + { + return _asc_node_vel_X_comp; + }; + /** + * @brief asc_node_vel_Y_comp + */ + std::string get_asc_node_vel_Y_comp() + { + return _asc_node_vel_Y_comp; + }; + /** + * @brief asc_node_vel_Z_comp + */ + std::string get_asc_node_vel_Z_comp() + { + return _asc_node_vel_Z_comp; + }; + /** + * @brief out_pixel_bit_length + */ + int get_out_pixel_bit_length() + { + return _out_pixel_bit_length; + }; + /** + * @brief proc_gain_param_1 + */ + double get_proc_gain_param_1() + { + return _proc_gain_param_1; + }; + /** + * @brief proc_gain_param_2 + */ + double get_proc_gain_param_2() + { + return _proc_gain_param_2; + }; + /** + * @brief proc_gain_param_3 + */ + double get_proc_gain_param_3() + { + return _proc_gain_param_3; + }; + /** + * @brief peak_loc_cross_correl_fun + */ + int get_peak_loc_cross_correl_fun() + { + return _peak_loc_cross_correl_fun; + }; + /** + * @brief 3_dB_width_CCF + */ + double get_3_dB_width_CCF() + { + return _3_dB_width_CCF; + }; + /** + * @brief first_side_lobe_level + */ + double get_first_side_lobe_level() + { + return _first_side_lobe_level; + }; + /** + * @brief ISLR_CCF_between_last + */ + double get_ISLR_CCF_between_last() + { + return _ISLR_CCF_between_last; + }; + /** + * @brief peak_loc_CCF_betw_last + */ + int get_peak_loc_CCF_betw_last() + { + return _peak_loc_CCF_betw_last; + }; + /** + * @brief Roll_Tilt_Mode_flag + */ + int get_Roll_Tilt_Mode_flag() + { + return _Roll_Tilt_Mode_flag; + }; + /** + * @brief raw_data_correction_flag + */ + int get_raw_data_correction_flag() + { + return _raw_data_correction_flag; + }; + /** + * @brief look_detecion_flag + */ + int get_look_detecion_flag() + { + return _look_detecion_flag; + }; + /** + * @brief doppler_ambiguity_estimat_flag + */ + int get_doppler_ambiguity_estimat_flag() + { + return _doppler_ambiguity_estimat_flag; + }; + /** + * @brief azimuth_baseband_convers_flag + */ + int get_azimuth_baseband_convers_flag() + { + return _azimuth_baseband_convers_flag; + }; + /** + * @brief samples_per_line_used + */ + int get_samples_per_line_used() + { + return _samples_per_line_used; + }; + /** + * @brief range_lines_skip_factor + */ + int get_range_lines_skip_factor() + { + return _range_lines_skip_factor; + }; + /** + * @brief time_of_inp_state_vectors + */ + std::string get_time_of_inp_state_vectors() + { + return _time_of_inp_state_vectors; + }; + /** + * @brief inp_state_vect_pos_X_comp + */ + std::string get_inp_state_vect_pos_X_comp() + { + return _inp_state_vect_pos_X_comp; + }; + /** + * @brief inp_state_vect_pos_Y_comp + */ + std::string get_inp_state_vect_pos_Y_comp() + { + return _inp_state_vect_pos_Y_comp; + }; + /** + * @brief inp_state_vect_pos_Z_comp + */ + std::string get_inp_state_vect_pos_Z_comp() + { + return _inp_state_vect_pos_Z_comp; + }; + /** + * @brief inp_state_vect_vel_Vx_comp + */ + std::string get_inp_state_vect_vel_Vx_comp() + { + return _inp_state_vect_vel_Vx_comp; + }; + /** + * @brief inp_state_vect_vel_Vy_comp + */ + std::string get_inp_state_vect_vel_Vy_comp() + { + return _inp_state_vect_vel_Vy_comp; + }; + /** + * @brief inp_state_vect_vel_Vz_comp + */ + std::string get_inp_state_vect_vel_Vz_comp() + { + return _inp_state_vect_vel_Vz_comp; + }; + /** + * @brief inp_state_vector_type_flag + */ + int get_inp_state_vector_type_flag() + { + return _inp_state_vector_type_flag; + }; + /** + * @brief win_coeff_for_range_match + */ + double get_win_coeff_for_range_match() + { + return _win_coeff_for_range_match; + }; + /** + * @brief win_coeff_for_azi_match + */ + double get_win_coeff_for_azi_match() + { + return _win_coeff_for_azi_match; + }; + /** + * @brief update_period_range_match + */ + int get_update_period_range_match() + { + return _update_period_range_match; + }; + /** + * @brief look_scalar_gain_1 + */ + double get_look_scalar_gain_1() + { + return _look_scalar_gain_1; + }; + /** + * @brief look_scalar_gain_2 + */ + double get_look_scalar_gain_2() + { + return _look_scalar_gain_2; + }; + /** + * @brief look_scalar_gain_3 + */ + double get_look_scalar_gain_3() + { + return _look_scalar_gain_3; + }; + /** + * @brief look_scalar_gain_4 + */ + double get_look_scalar_gain_4() + { + return _look_scalar_gain_4; + }; + /** + * @brief look_scalar_gain_5 + */ + double get_look_scalar_gain_5() + { + return _look_scalar_gain_5; + }; + /** + * @brief look_scalar_gain_6 + */ + double get_look_scalar_gain_6() + { + return _look_scalar_gain_6; + }; + /** + * @brief look_scalar_gain_7 + */ + double get_look_scalar_gain_7() + { + return _look_scalar_gain_7; + }; + /** + * @brief look_scalar_gain_8 + */ + double get_look_scalar_gain_8() + { + return _look_scalar_gain_8; + }; + /** + * @brief samp_window_start_time_bias + */ + int get_samp_window_start_time_bias() + { + return _samp_window_start_time_bias; + }; + /** + * @brief doppler_centroid_cubic_coeff + */ + double get_doppler_centroid_cubic_coeff() + { + return _doppler_centroid_cubic_coeff; + }; + /** + * @brief PRF_code_first_range_line + */ + int get_PRF_code_first_range_line() + { + return _PRF_code_first_range_line; + }; + /** + * @brief PRF_code_last_range_line + */ + int get_PRF_code_last_range_line() + { + return _PRF_code_last_range_line; + }; + /** + * @brief samp_win_start_first + */ + int get_samp_win_start_first() + { + return _samp_win_start_first; + }; + /** + * @brief samp_win_start_last + */ + int get_samp_win_start_last() + { + return _samp_win_start_last; + }; + /** + * @brief cal_syst_gain_last_proc + */ + int get_cal_syst_gain_last_proc() + { + return _cal_syst_gain_last_proc; + }; + /** + * @brief receiver_gain_last_proc + */ + int get_receiver_gain_last_proc() + { + return _receiver_gain_last_proc; + }; + /** + * @brief first_processed_range_sample + */ + int get_first_processed_range_sample() + { + return _first_processed_range_sample; + }; + /** + * @brief azimuth_FFT_IFFT_ratio + */ + int get_azimuth_FFT_IFFT_ratio() + { + return _azimuth_FFT_IFFT_ratio; + }; + /** + * @brief num_azimuth_blocks_proc + */ + int get_num_azimuth_blocks_proc() + { + return _num_azimuth_blocks_proc; + }; + /** + * @brief num_input_raw_data_lines + */ + int get_num_input_raw_data_lines() + { + return _num_input_raw_data_lines; + }; + /** + * @brief initial_doppler_ambiguity_num + */ + int get_initial_doppler_ambiguity_num() + { + return _initial_doppler_ambiguity_num; + }; + /** + * @brief thresh_no_1_flag + */ + double get_thresh_no_1_flag() + { + return _thresh_no_1_flag; + }; + /** + * @brief thresh_no_2_flag + */ + double get_thresh_no_2_flag() + { + return _thresh_no_2_flag; + }; + /** + * @brief thresh_no_3_flag + */ + double get_thresh_no_3_flag() + { + return _thresh_no_3_flag; + }; + /** + * @brief thresh_no_4_flag + */ + double get_thresh_no_4_flag() + { + return _thresh_no_4_flag; + }; + /** + * @brief thresh_no_5_flag + */ + double get_thresh_no_5_flag() + { + return _thresh_no_5_flag; + }; + /** + * @brief thresh_no_6_flag + */ + double get_thresh_no_6_flag() + { + return _thresh_no_6_flag; + }; + /** + * @brief thresh_no_7_flag + */ + double get_thresh_no_7_flag() + { + return _thresh_no_7_flag; + }; + /** + * @brief thresh_no_8_flag + */ + double get_thresh_no_8_flag() + { + return _thresh_no_8_flag; + }; + /** + * @brief thresh_no_9_flag + */ + double get_thresh_no_9_flag() + { + return _thresh_no_9_flag; + }; + /** + * @brief thresh_no_10_flag + */ + double get_thresh_no_10_flag() + { + return _thresh_no_10_flag; + }; + /** + * @brief thresh_no_11_flag + */ + double get_thresh_no_11_flag() + { + return _thresh_no_11_flag; + }; + /** + * @brief sat_binary_time_of_first + */ + int get_sat_binary_time_of_first() + { + return _sat_binary_time_of_first; + }; + /** + * @brief num_valid_pixels_per_range + */ + int get_num_valid_pixels_per_range() + { + return _num_valid_pixels_per_range; + }; + /** + * @brief num_range_samp_discarded + */ + int get_num_range_samp_discarded() + { + return _num_range_samp_discarded; + }; + /** + * @brief I_gain_imb_lower_bound + */ + double get_I_gain_imb_lower_bound() + { + return _I_gain_imb_lower_bound; + }; + /** + * @brief I_gain_imb_upper_bound + */ + double get_I_gain_imb_upper_bound() + { + return _I_gain_imb_upper_bound; + }; + /** + * @brief I_Q_quad_depar_lower_bound + */ + double get_I_Q_quad_depar_lower_bound() + { + return _I_Q_quad_depar_lower_bound; + }; + /** + * @brief I_Q_quad_depar_upper_bound + */ + double get_I_Q_quad_depar_upper_bound() + { + return _I_Q_quad_depar_upper_bound; + }; + /** + * @brief 3_dB_look_bandwidth + */ + double get_3_dB_look_bandwidth() + { + return _3_dB_look_bandwidth; + }; + /** + * @brief 3_dB_look_proc_dopp_bandw + */ + double get_3_dB_look_proc_dopp_bandw() + { + return _3_dB_look_proc_dopp_bandw; + }; + /** + * @brief range_spread_loss_comp_flag + */ + int get_range_spread_loss_comp_flag() + { + return _range_spread_loss_comp_flag; + }; + /** + * @brief datation_flag + */ + bool get_datation_flag() + { + return _datation_flag; + }; + /** + * @brief max_error_range_line_timing + */ + int get_max_error_range_line_timing() + { + return _max_error_range_line_timing; + }; + /** + * @brief form_num_range_line_used + */ + int get_form_num_range_line_used() + { + return _form_num_range_line_used; + }; + /** + * @brief autom_look_scal_gain_flag + */ + bool get_autom_look_scal_gain_flag() + { + return _autom_look_scal_gain_flag; + }; + /** + * @brief max_value_look_scalar_gain + */ + int get_max_value_look_scalar_gain() + { + return _max_value_look_scalar_gain; + }; + /** + * @brief replica_norm_method_flag + */ + int get_replica_norm_method_flag() + { + return _replica_norm_method_flag; + }; + /** + * @brief coef_ground_range_1 + */ + double get_coef_ground_range_1() + { + return _coef_ground_range_1; + }; + /** + * @brief coef_ground_range_2 + */ + double get_coef_ground_range_2() + { + return _coef_ground_range_2; + }; + /** + * @brief coef_ground_range_3 + */ + double get_coef_ground_range_3() + { + return _coef_ground_range_3; + }; + /** + * @brief coef_ground_range_4 + */ + double get_coef_ground_range_4() + { + return _coef_ground_range_4; + }; + /** + * @brief coef_ant_elev_1 + */ + double get_coef_ant_elev_1() + { + return _coef_ant_elev_1; + }; + /** + * @brief coef_ant_elev_2 + */ + double get_coef_ant_elev_2() + { + return _coef_ant_elev_2; + }; + /** + * @brief coef_ant_elev_3 + */ + double get_coef_ant_elev_3() + { + return _coef_ant_elev_3; + }; + /** + * @brief coef_ant_elev_4 + */ + double get_coef_ant_elev_4() + { + return _coef_ant_elev_4; + }; + /** + * @brief coef_ant_elev_5 + */ + double get_coef_ant_elev_5() + { + return _coef_ant_elev_5; + }; + /** + * @brief range_time_origin_ant + */ + double get_range_time_origin_ant() + { + return _range_time_origin_ant; + }; protected: - /** - * @brief last_release_qc_date - */ - std::string _name_of_facil_rec; - /** - * @brief last_release_qc_date - */ - std::string _last_release_qc_date; - /** - * @brief last_release_cal_date - */ - std::string _last_release_cal_date; - /** - * @brief qa_summary_flag - */ - int _qa_summary_flag; - /** - * @brief prf_code_change_flag - */ - int _prf_code_change_flag; - /** - * @brief sampling_win_change_flag - */ - int _sampling_win_change_flag; - /** - * @brief cal_gain_change_flag - */ - int _cal_gain_change_flag; - /** - * @brief quirp_qu_flag - */ - int _quirp_qu_flag; - /** - * @brief inp_data_stat_flag - */ - int _inp_data_stat_flag; - /** - * @brief dopp_cent_conf_meas_flag - */ - int _dopp_cent_conf_meas_flag; - /** - * @brief dopp_cent_val_flag - */ - int _dopp_cent_val_flag; - /** - * @brief dopp_ambig_conf_meas_flag - */ - int _dopp_ambig_conf_meas_flag; - /** - * @brief outp_data_mean_flag - */ - int _outp_data_mean_flag; - /** - * @brief OGOB_flag - */ - int _OGOB_flag; - /** - * @brief PRF_changes - */ - int _PRF_changes; - /** - * @brief sampling_win_changes - */ - int _sampling_win_changes; - /** - * @brief cal_gain_changes - */ - int _cal_gain_changes; - /** - * @brief missing_lines - */ - int _missing_lines; - /** - * @brief rec_gain_changes - */ - int _rec_gain_changes; - /** - * @brief pulse_width_of_ACF_3db - */ - double _pulse_width_of_ACF_3db; - /** - * @brief first_side_lobe_lev_of_ACF - */ - double _first_side_lobe_lev_of_ACF; - /** - * @brief ISLR_of_ACF - */ - double _ISLR_of_ACF; - /** - * @brief dopp_cent_conf_meas - */ - double _dopp_cent_conf_meas; - /** - * @brief dopp_ambig_conf_meas - */ - double _dopp_ambig_conf_meas; - /** - * @brief inp_data_I_mean - */ - double _inp_data_I_mean; - /** - * @brief inp_data_Q_mean - */ - double _inp_data_Q_mean; - /** - * @brief inp_data_I_stddev - */ - double _inp_data_I_stddev; - /** - * @brief inp_data_Q_stddev - */ - double _inp_data_Q_stddev; - /** - * @brief cal_sys_gain - */ - double _cal_sys_gain; - /** - * @brief first_rec_gain_read - */ - double _first_rec_gain_read; - /** - * @brief dopp_ambig_num - */ - double _dopp_ambig_num; - /** - * @brief I_channel_bias_correction - */ - double _I_channel_bias_correction; - /** - * @brief Q_channel_bias_correction - */ - double _Q_channel_bias_correction; - /** - * @brief I_channel_gain_correction - */ - double _I_channel_gain_correction; - /** - * @brief Q_channel_gain_correction - */ - double _Q_channel_gain_correction; - /** - * @brief Q_channel_I_Q_correction - */ - double _Q_channel_I_Q_correction; - /** - * @brief noise_power - */ - double _noise_power; - /** - * @brief int_cal_utc - */ - int _int_cal_utc; - /** - * @brief num_valid_cal_pulses - */ - int _num_valid_cal_pulses; - /** - * @brief num_valid_noise_pulses - */ - int _num_valid_noise_pulses; - /** - * @brief num_valid_replicas - */ - int _num_valid_replicas; - /** - * @brief first_replica_sample - */ - double _first_replica_sample; - /** - * @brief mean_cal_pulse_power - */ - double _mean_cal_pulse_power; - /** - * @brief mean_noise_power - */ - double _mean_noise_power; - /** - * @brief range_comp_norm_fact - */ - double _range_comp_norm_fact; - /** - * @brief replica_power - */ - double _replica_power; - /** - * @brief first_range_pixel_mid_az_inc - */ - double _first_range_pixel_mid_az_inc; - /** - * @brief center_range_pix_mid_az_inc - */ - double _center_range_pix_mid_az_inc; - /** - * @brief last_range_pix_mid_az_inc - */ - double _last_range_pix_mid_az_inc; - /** - * @brief norm_ref_range_ro - */ - double _norm_ref_range_ro; - /** - * @brief antenna_elev_flag - */ - int _antenna_elev_flag; - /** - * @brief abs_cal_const_K - */ - double _abs_cal_const_K; - /** - * @brief upp_bound_K - */ - double _upp_bound_K; - /** - * @brief low_bound_K - */ - double _low_bound_K; - /** - * @brief proc_noise_scale_fact - */ - double _proc_noise_scale_fact; - /** - * @brief K_gen_date - */ - std::string _K_gen_date; - /** - * @brief K_vers_num - */ - std::string _K_vers_num; - /** - * @brief num_duplic_input_lines - */ - int _num_duplic_input_lines; - /** - * @brief estim_bit_error_rate - */ - double _estim_bit_error_rate; - /** - * @brief out_image_mean - */ - double _out_image_mean; - /** - * @brief out_image_std_dev - */ - double _out_image_std_dev; - /** - * @brief out_image_max_value - */ - double _out_image_max_value; - /** - * @brief time_raw_data_first_input - */ - std::string _time_raw_data_first_input; - /** - * @brief time_asc_node_state_vectors - */ - std::string _time_asc_node_state_vectors; - /** - * @brief asc_node_pos_X_comp - */ - std::string _asc_node_pos_X_comp; - /** - * @brief asc_node_pos_Y_comp - */ - std::string _asc_node_pos_Y_comp; - /** - * @brief asc_node_pos_Z_comp - */ - std::string _asc_node_pos_Z_comp; - /** - * @brief asc_node_vel_X_comp - */ - std::string _asc_node_vel_X_comp; - /** - * @brief asc_node_vel_Y_comp - */ - std::string _asc_node_vel_Y_comp; - /** - * @brief asc_node_vel_Z_comp - */ - std::string _asc_node_vel_Z_comp; - /** - * @brief out_pixel_bit_length - */ - int _out_pixel_bit_length; - /** - * @brief proc_gain_param_1 - */ - double _proc_gain_param_1; - /** - * @brief proc_gain_param_2 - */ - double _proc_gain_param_2; - /** - * @brief proc_gain_param_3 - */ - double _proc_gain_param_3; - /** - * @brief peak_loc_cross_correl_fun - */ - int _peak_loc_cross_correl_fun; - /** - * @brief 3_dB_width_CCF - */ - double _3_dB_width_CCF; - /** - * @brief first_side_lobe_level - */ - double _first_side_lobe_level; - /** - * @brief ISLR_CCF_between_last - */ - double _ISLR_CCF_between_last; - /** - * @brief peak_loc_CCF_betw_last - */ - int _peak_loc_CCF_betw_last; - /** - * @brief Roll_Tilt_Mode_flag - */ - int _Roll_Tilt_Mode_flag; - /** - * @brief raw_data_correction_flag - */ - int _raw_data_correction_flag; - /** - * @brief look_detecion_flag - */ - int _look_detecion_flag; - /** - * @brief doppler_ambiguity_estimat_flag - */ - int _doppler_ambiguity_estimat_flag; - /** - * @brief azimuth_baseband_convers_flag - */ - int _azimuth_baseband_convers_flag; - /** - * @brief samples_per_line_used - */ - int _samples_per_line_used; - /** - * @brief range_lines_skip_factor - */ - int _range_lines_skip_factor; - /** - * @brief time_of_inp_state_vectors - */ - std::string _time_of_inp_state_vectors; - /** - * @brief inp_state_vect_pos_X_comp - */ - std::string _inp_state_vect_pos_X_comp; - /** - * @brief inp_state_vect_pos_Y_comp - */ - std::string _inp_state_vect_pos_Y_comp; - /** - * @brief inp_state_vect_pos_Z_comp - */ - std::string _inp_state_vect_pos_Z_comp; - /** - * @brief inp_state_vect_vel_Vx_comp - */ - std::string _inp_state_vect_vel_Vx_comp; - /** - * @brief inp_state_vect_vel_Vy_comp - */ - std::string _inp_state_vect_vel_Vy_comp; - /** - * @brief inp_state_vect_vel_Vz_comp - */ - std::string _inp_state_vect_vel_Vz_comp; - /** - * @brief inp_state_vector_type_flag - */ - int _inp_state_vector_type_flag; - /** - * @brief win_coeff_for_range_match - */ - double _win_coeff_for_range_match; - /** - * @brief win_coeff_for_azi_match - */ - double _win_coeff_for_azi_match; - /** - * @brief update_period_range_match - */ - int _update_period_range_match; - /** - * @brief look_scalar_gain_1 - */ - double _look_scalar_gain_1; - /** - * @brief look_scalar_gain_2 - */ - double _look_scalar_gain_2; - /** - * @brief look_scalar_gain_3 - */ - double _look_scalar_gain_3; - /** - * @brief look_scalar_gain_4 - */ - double _look_scalar_gain_4; - /** - * @brief look_scalar_gain_5 - */ - double _look_scalar_gain_5; - /** - * @brief look_scalar_gain_6 - */ - double _look_scalar_gain_6; - /** - * @brief look_scalar_gain_7 - */ - double _look_scalar_gain_7; - /** - * @brief look_scalar_gain_8 - */ - double _look_scalar_gain_8; - /** - * @brief samp_window_start_time_bias - */ - int _samp_window_start_time_bias; - /** - * @brief doppler_centroid_cubic_coeff - */ - double _doppler_centroid_cubic_coeff; - /** - * @brief PRF_code_first_range_line - */ - int _PRF_code_first_range_line; - /** - * @brief PRF_code_last_range_line - */ - int _PRF_code_last_range_line; - /** - * @brief samp_win_start_first - */ - int _samp_win_start_first; - /** - * @brief samp_win_start_last - */ - int _samp_win_start_last; - /** - * @brief cal_syst_gain_last_proc - */ - int _cal_syst_gain_last_proc; - /** - * @brief receiver_gain_last_proc - */ - int _receiver_gain_last_proc; - /** - * @brief first_processed_range_sample - */ - int _first_processed_range_sample; - /** - * @brief azimuth_FFT_IFFT_ratio - */ - int _azimuth_FFT_IFFT_ratio; - /** - * @brief num_azimuth_blocks_proc - */ - int _num_azimuth_blocks_proc; - /** - * @brief num_input_raw_data_lines - */ - int _num_input_raw_data_lines; - /** - * @brief initial_doppler_ambiguity_num - */ - int _initial_doppler_ambiguity_num; - /** - * @brief thresh_no_1_flag - */ - double _thresh_no_1_flag; - /** - * @brief thresh_no_2_flag - */ - double _thresh_no_2_flag; - /** - * @brief thresh_no_3_flag - */ - double _thresh_no_3_flag; - /** - * @brief thresh_no_4_flag - */ - double _thresh_no_4_flag; - /** - * @brief thresh_no_5_flag - */ - double _thresh_no_5_flag; - /** - * @brief thresh_no_6_flag - */ - double _thresh_no_6_flag; - /** - * @brief thresh_no_7_flag - */ - double _thresh_no_7_flag; - /** - * @brief thresh_no_8_flag - */ - double _thresh_no_8_flag; - /** - * @brief thresh_no_9_flag - */ - double _thresh_no_9_flag; - /** - * @brief thresh_no_10_flag - */ - double _thresh_no_10_flag; - /** - * @brief thresh_no_11_flag - */ - double _thresh_no_11_flag; - /** - * @brief sat_binary_time_of_first - */ - int _sat_binary_time_of_first; - /** - * @brief num_valid_pixels_per_range - */ - int _num_valid_pixels_per_range; - /** - * @brief num_range_samp_discarded - */ - int _num_range_samp_discarded; - /** - * @brief I_gain_imb_lower_bound - */ - double _I_gain_imb_lower_bound; - /** - * @brief I_gain_imb_upper_bound - */ - double _I_gain_imb_upper_bound; - /** - * @brief I_Q_quad_depar_lower_bound - */ - double _I_Q_quad_depar_lower_bound; - /** - * @brief I_Q_quad_depar_upper_bound - */ - double _I_Q_quad_depar_upper_bound; - /** - * @brief 3_dB_look_bandwidth - */ - double _3_dB_look_bandwidth; - /** - * @brief 3_dB_look_proc_dopp_bandw - */ - double _3_dB_look_proc_dopp_bandw; - /** - * @brief range_spread_loss_comp_flag - */ - int _range_spread_loss_comp_flag; - /** - * @brief datation_flag - */ - bool _datation_flag; - /** - * @brief max_error_range_line_timing - */ - int _max_error_range_line_timing; - /** - * @brief form_num_range_line_used - */ - int _form_num_range_line_used; - /** - * @brief autom_look_scal_gain_flag - */ - bool _autom_look_scal_gain_flag; - /** - * @brief max_value_look_scalar_gain - */ - int _max_value_look_scalar_gain; - /** - * @brief replica_norm_method_flag - */ - int _replica_norm_method_flag; - /** - * @brief coef_ground_range_1 - */ - double _coef_ground_range_1; - /** - * @brief coef_ground_range_2 - */ - double _coef_ground_range_2; - /** - * @brief coef_ground_range_3 - */ - double _coef_ground_range_3; - /** - * @brief coef_ground_range_4 - */ - double _coef_ground_range_4; - /** - * @brief coef_ant_elev_1 - */ - double _coef_ant_elev_1; - /** - * @brief coef_ant_elev_2 - */ - double _coef_ant_elev_2; - /** - * @brief coef_ant_elev_3 - */ - double _coef_ant_elev_3; - /** - * @brief coef_ant_elev_4 - */ - double _coef_ant_elev_4; - /** - * @brief coef_ant_elev_5 - */ - double _coef_ant_elev_5; - /** - * @brief range_time_origin_ant - */ - double _range_time_origin_ant; + /** + * @brief last_release_qc_date + */ + std::string _name_of_facil_rec; + /** + * @brief last_release_qc_date + */ + std::string _last_release_qc_date; + /** + * @brief last_release_cal_date + */ + std::string _last_release_cal_date; + /** + * @brief qa_summary_flag + */ + int _qa_summary_flag; + /** + * @brief prf_code_change_flag + */ + int _prf_code_change_flag; + /** + * @brief sampling_win_change_flag + */ + int _sampling_win_change_flag; + /** + * @brief cal_gain_change_flag + */ + int _cal_gain_change_flag; + /** + * @brief quirp_qu_flag + */ + int _quirp_qu_flag; + /** + * @brief inp_data_stat_flag + */ + int _inp_data_stat_flag; + /** + * @brief dopp_cent_conf_meas_flag + */ + int _dopp_cent_conf_meas_flag; + /** + * @brief dopp_cent_val_flag + */ + int _dopp_cent_val_flag; + /** + * @brief dopp_ambig_conf_meas_flag + */ + int _dopp_ambig_conf_meas_flag; + /** + * @brief outp_data_mean_flag + */ + int _outp_data_mean_flag; + /** + * @brief OGOB_flag + */ + int _OGOB_flag; + /** + * @brief PRF_changes + */ + int _PRF_changes; + /** + * @brief sampling_win_changes + */ + int _sampling_win_changes; + /** + * @brief cal_gain_changes + */ + int _cal_gain_changes; + /** + * @brief missing_lines + */ + int _missing_lines; + /** + * @brief rec_gain_changes + */ + int _rec_gain_changes; + /** + * @brief pulse_width_of_ACF_3db + */ + double _pulse_width_of_ACF_3db; + /** + * @brief first_side_lobe_lev_of_ACF + */ + double _first_side_lobe_lev_of_ACF; + /** + * @brief ISLR_of_ACF + */ + double _ISLR_of_ACF; + /** + * @brief dopp_cent_conf_meas + */ + double _dopp_cent_conf_meas; + /** + * @brief dopp_ambig_conf_meas + */ + double _dopp_ambig_conf_meas; + /** + * @brief inp_data_I_mean + */ + double _inp_data_I_mean; + /** + * @brief inp_data_Q_mean + */ + double _inp_data_Q_mean; + /** + * @brief inp_data_I_stddev + */ + double _inp_data_I_stddev; + /** + * @brief inp_data_Q_stddev + */ + double _inp_data_Q_stddev; + /** + * @brief cal_sys_gain + */ + double _cal_sys_gain; + /** + * @brief first_rec_gain_read + */ + double _first_rec_gain_read; + /** + * @brief dopp_ambig_num + */ + double _dopp_ambig_num; + /** + * @brief I_channel_bias_correction + */ + double _I_channel_bias_correction; + /** + * @brief Q_channel_bias_correction + */ + double _Q_channel_bias_correction; + /** + * @brief I_channel_gain_correction + */ + double _I_channel_gain_correction; + /** + * @brief Q_channel_gain_correction + */ + double _Q_channel_gain_correction; + /** + * @brief Q_channel_I_Q_correction + */ + double _Q_channel_I_Q_correction; + /** + * @brief noise_power + */ + double _noise_power; + /** + * @brief int_cal_utc + */ + int _int_cal_utc; + /** + * @brief num_valid_cal_pulses + */ + int _num_valid_cal_pulses; + /** + * @brief num_valid_noise_pulses + */ + int _num_valid_noise_pulses; + /** + * @brief num_valid_replicas + */ + int _num_valid_replicas; + /** + * @brief first_replica_sample + */ + double _first_replica_sample; + /** + * @brief mean_cal_pulse_power + */ + double _mean_cal_pulse_power; + /** + * @brief mean_noise_power + */ + double _mean_noise_power; + /** + * @brief range_comp_norm_fact + */ + double _range_comp_norm_fact; + /** + * @brief replica_power + */ + double _replica_power; + /** + * @brief first_range_pixel_mid_az_inc + */ + double _first_range_pixel_mid_az_inc; + /** + * @brief center_range_pix_mid_az_inc + */ + double _center_range_pix_mid_az_inc; + /** + * @brief last_range_pix_mid_az_inc + */ + double _last_range_pix_mid_az_inc; + /** + * @brief norm_ref_range_ro + */ + double _norm_ref_range_ro; + /** + * @brief antenna_elev_flag + */ + int _antenna_elev_flag; + /** + * @brief abs_cal_const_K + */ + double _abs_cal_const_K; + /** + * @brief upp_bound_K + */ + double _upp_bound_K; + /** + * @brief low_bound_K + */ + double _low_bound_K; + /** + * @brief proc_noise_scale_fact + */ + double _proc_noise_scale_fact; + /** + * @brief K_gen_date + */ + std::string _K_gen_date; + /** + * @brief K_vers_num + */ + std::string _K_vers_num; + /** + * @brief num_duplic_input_lines + */ + int _num_duplic_input_lines; + /** + * @brief estim_bit_error_rate + */ + double _estim_bit_error_rate; + /** + * @brief out_image_mean + */ + double _out_image_mean; + /** + * @brief out_image_std_dev + */ + double _out_image_std_dev; + /** + * @brief out_image_max_value + */ + double _out_image_max_value; + /** + * @brief time_raw_data_first_input + */ + std::string _time_raw_data_first_input; + /** + * @brief time_asc_node_state_vectors + */ + std::string _time_asc_node_state_vectors; + /** + * @brief asc_node_pos_X_comp + */ + std::string _asc_node_pos_X_comp; + /** + * @brief asc_node_pos_Y_comp + */ + std::string _asc_node_pos_Y_comp; + /** + * @brief asc_node_pos_Z_comp + */ + std::string _asc_node_pos_Z_comp; + /** + * @brief asc_node_vel_X_comp + */ + std::string _asc_node_vel_X_comp; + /** + * @brief asc_node_vel_Y_comp + */ + std::string _asc_node_vel_Y_comp; + /** + * @brief asc_node_vel_Z_comp + */ + std::string _asc_node_vel_Z_comp; + /** + * @brief out_pixel_bit_length + */ + int _out_pixel_bit_length; + /** + * @brief proc_gain_param_1 + */ + double _proc_gain_param_1; + /** + * @brief proc_gain_param_2 + */ + double _proc_gain_param_2; + /** + * @brief proc_gain_param_3 + */ + double _proc_gain_param_3; + /** + * @brief peak_loc_cross_correl_fun + */ + int _peak_loc_cross_correl_fun; + /** + * @brief 3_dB_width_CCF + */ + double _3_dB_width_CCF; + /** + * @brief first_side_lobe_level + */ + double _first_side_lobe_level; + /** + * @brief ISLR_CCF_between_last + */ + double _ISLR_CCF_between_last; + /** + * @brief peak_loc_CCF_betw_last + */ + int _peak_loc_CCF_betw_last; + /** + * @brief Roll_Tilt_Mode_flag + */ + int _Roll_Tilt_Mode_flag; + /** + * @brief raw_data_correction_flag + */ + int _raw_data_correction_flag; + /** + * @brief look_detecion_flag + */ + int _look_detecion_flag; + /** + * @brief doppler_ambiguity_estimat_flag + */ + int _doppler_ambiguity_estimat_flag; + /** + * @brief azimuth_baseband_convers_flag + */ + int _azimuth_baseband_convers_flag; + /** + * @brief samples_per_line_used + */ + int _samples_per_line_used; + /** + * @brief range_lines_skip_factor + */ + int _range_lines_skip_factor; + /** + * @brief time_of_inp_state_vectors + */ + std::string _time_of_inp_state_vectors; + /** + * @brief inp_state_vect_pos_X_comp + */ + std::string _inp_state_vect_pos_X_comp; + /** + * @brief inp_state_vect_pos_Y_comp + */ + std::string _inp_state_vect_pos_Y_comp; + /** + * @brief inp_state_vect_pos_Z_comp + */ + std::string _inp_state_vect_pos_Z_comp; + /** + * @brief inp_state_vect_vel_Vx_comp + */ + std::string _inp_state_vect_vel_Vx_comp; + /** + * @brief inp_state_vect_vel_Vy_comp + */ + std::string _inp_state_vect_vel_Vy_comp; + /** + * @brief inp_state_vect_vel_Vz_comp + */ + std::string _inp_state_vect_vel_Vz_comp; + /** + * @brief inp_state_vector_type_flag + */ + int _inp_state_vector_type_flag; + /** + * @brief win_coeff_for_range_match + */ + double _win_coeff_for_range_match; + /** + * @brief win_coeff_for_azi_match + */ + double _win_coeff_for_azi_match; + /** + * @brief update_period_range_match + */ + int _update_period_range_match; + /** + * @brief look_scalar_gain_1 + */ + double _look_scalar_gain_1; + /** + * @brief look_scalar_gain_2 + */ + double _look_scalar_gain_2; + /** + * @brief look_scalar_gain_3 + */ + double _look_scalar_gain_3; + /** + * @brief look_scalar_gain_4 + */ + double _look_scalar_gain_4; + /** + * @brief look_scalar_gain_5 + */ + double _look_scalar_gain_5; + /** + * @brief look_scalar_gain_6 + */ + double _look_scalar_gain_6; + /** + * @brief look_scalar_gain_7 + */ + double _look_scalar_gain_7; + /** + * @brief look_scalar_gain_8 + */ + double _look_scalar_gain_8; + /** + * @brief samp_window_start_time_bias + */ + int _samp_window_start_time_bias; + /** + * @brief doppler_centroid_cubic_coeff + */ + double _doppler_centroid_cubic_coeff; + /** + * @brief PRF_code_first_range_line + */ + int _PRF_code_first_range_line; + /** + * @brief PRF_code_last_range_line + */ + int _PRF_code_last_range_line; + /** + * @brief samp_win_start_first + */ + int _samp_win_start_first; + /** + * @brief samp_win_start_last + */ + int _samp_win_start_last; + /** + * @brief cal_syst_gain_last_proc + */ + int _cal_syst_gain_last_proc; + /** + * @brief receiver_gain_last_proc + */ + int _receiver_gain_last_proc; + /** + * @brief first_processed_range_sample + */ + int _first_processed_range_sample; + /** + * @brief azimuth_FFT_IFFT_ratio + */ + int _azimuth_FFT_IFFT_ratio; + /** + * @brief num_azimuth_blocks_proc + */ + int _num_azimuth_blocks_proc; + /** + * @brief num_input_raw_data_lines + */ + int _num_input_raw_data_lines; + /** + * @brief initial_doppler_ambiguity_num + */ + int _initial_doppler_ambiguity_num; + /** + * @brief thresh_no_1_flag + */ + double _thresh_no_1_flag; + /** + * @brief thresh_no_2_flag + */ + double _thresh_no_2_flag; + /** + * @brief thresh_no_3_flag + */ + double _thresh_no_3_flag; + /** + * @brief thresh_no_4_flag + */ + double _thresh_no_4_flag; + /** + * @brief thresh_no_5_flag + */ + double _thresh_no_5_flag; + /** + * @brief thresh_no_6_flag + */ + double _thresh_no_6_flag; + /** + * @brief thresh_no_7_flag + */ + double _thresh_no_7_flag; + /** + * @brief thresh_no_8_flag + */ + double _thresh_no_8_flag; + /** + * @brief thresh_no_9_flag + */ + double _thresh_no_9_flag; + /** + * @brief thresh_no_10_flag + */ + double _thresh_no_10_flag; + /** + * @brief thresh_no_11_flag + */ + double _thresh_no_11_flag; + /** + * @brief sat_binary_time_of_first + */ + int _sat_binary_time_of_first; + /** + * @brief num_valid_pixels_per_range + */ + int _num_valid_pixels_per_range; + /** + * @brief num_range_samp_discarded + */ + int _num_range_samp_discarded; + /** + * @brief I_gain_imb_lower_bound + */ + double _I_gain_imb_lower_bound; + /** + * @brief I_gain_imb_upper_bound + */ + double _I_gain_imb_upper_bound; + /** + * @brief I_Q_quad_depar_lower_bound + */ + double _I_Q_quad_depar_lower_bound; + /** + * @brief I_Q_quad_depar_upper_bound + */ + double _I_Q_quad_depar_upper_bound; + /** + * @brief 3_dB_look_bandwidth + */ + double _3_dB_look_bandwidth; + /** + * @brief 3_dB_look_proc_dopp_bandw + */ + double _3_dB_look_proc_dopp_bandw; + /** + * @brief range_spread_loss_comp_flag + */ + int _range_spread_loss_comp_flag; + /** + * @brief datation_flag + */ + bool _datation_flag; + /** + * @brief max_error_range_line_timing + */ + int _max_error_range_line_timing; + /** + * @brief form_num_range_line_used + */ + int _form_num_range_line_used; + /** + * @brief autom_look_scal_gain_flag + */ + bool _autom_look_scal_gain_flag; + /** + * @brief max_value_look_scalar_gain + */ + int _max_value_look_scalar_gain; + /** + * @brief replica_norm_method_flag + */ + int _replica_norm_method_flag; + /** + * @brief coef_ground_range_1 + */ + double _coef_ground_range_1; + /** + * @brief coef_ground_range_2 + */ + double _coef_ground_range_2; + /** + * @brief coef_ground_range_3 + */ + double _coef_ground_range_3; + /** + * @brief coef_ground_range_4 + */ + double _coef_ground_range_4; + /** + * @brief coef_ant_elev_1 + */ + double _coef_ant_elev_1; + /** + * @brief coef_ant_elev_2 + */ + double _coef_ant_elev_2; + /** + * @brief coef_ant_elev_3 + */ + double _coef_ant_elev_3; + /** + * @brief coef_ant_elev_4 + */ + double _coef_ant_elev_4; + /** + * @brief coef_ant_elev_5 + */ + double _coef_ant_elev_5; + /** + * @brief range_time_origin_ant + */ + double _range_time_origin_ant; private: }; - +} #endif \ No newline at end of file diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.cpp index eb9f835d25e324647102d51de1c8cd866ce3e099..86560f6783b5567185b98d43334e14f4b46d876f 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.cpp @@ -1,6 +1,9 @@ #include <AlosSarFileDescriptor.h> +namespace ossimplugins +{ + AlosSarFileDescriptor::AlosSarFileDescriptor() : AlosSarRecord("sar_desc_rec") { } @@ -11,418 +14,419 @@ AlosSarFileDescriptor::~AlosSarFileDescriptor() std::ostream& operator<<(std::ostream& os, const AlosSarFileDescriptor& data) { - os<<"ascii_flag:"<<data._ascii_flag.c_str()<<std::endl; - os<<"continuation_flag:"<<data._continuation_flag.c_str()<<std::endl; - os<<"format_doc:"<<data._format_doc.c_str()<<std::endl; - os<<"format_ver:"<<data._format_ver.c_str()<<std::endl; - os<<"design_rev:"<<data._design_rev.c_str()<<std::endl; - os<<"software_id:"<<data._software_id.c_str()<<std::endl; - os<<"file_num:"<<data._file_num<<std::endl; - os<<"file_name:"<<data._file_name.c_str()<<std::endl; - os<<"rec_seq:"<<data._rec_seq.c_str()<<std::endl; - os<<"seq_loc:"<<data._seq_loc<<std::endl; - os<<"seq_len:"<<data._seq_len<<std::endl; - os<<"rec_code:"<<data._rec_code.c_str()<<std::endl; - os<<"code_loc:"<<data._code_loc<<std::endl; - os<<"code_len:"<<data._code_len<<std::endl; - os<<"rec_len:"<<data._rec_len.c_str()<<std::endl; - os<<"rlen_loc:"<<data._rlen_loc<<std::endl; - os<<"rlen_len:"<<data._rlen_len<<std::endl; - os<<"n_dataset:"<<data._n_dataset<<std::endl; - os<<"l_dataset:"<<data._l_dataset<<std::endl; - os<<"n_map_proj:"<<data._n_map_proj<<std::endl; - os<<"l_map_proj:"<<data._l_map_proj<<std::endl; - os<<"n_plat_pos:"<<data._n_plat_pos<<std::endl; - os<<"l_plat_pos:"<<data._l_plat_pos<<std::endl; - os<<"n_att_data:"<<data._n_att_data<<std::endl; - os<<"l_att_data:"<<data._l_att_data<<std::endl; - os<<"n_radi_data:"<<data._n_radi_data<<std::endl; - os<<"l_radi_data:"<<data._l_radi_data<<std::endl; - os<<"n_radi_comp:"<<data._n_radi_comp<<std::endl; - os<<"l_radi_comp:"<<data._l_radi_comp<<std::endl; - os<<"n_qual_sum:"<<data._n_qual_sum<<std::endl; - os<<"l_qual_sum:"<<data._l_qual_sum<<std::endl; - os<<"n_data_his:"<<data._n_data_his<<std::endl; - os<<"l_data_his:"<<data._l_data_his<<std::endl; - os<<"n_rang_spec:"<<data._n_rang_spec<<std::endl; - os<<"l_rang_spec:"<<data._l_rang_spec<<std::endl; - os<<"n_dem_desc:"<<data._n_dem_desc<<std::endl; - os<<"l_dem_desc:"<<data._l_dem_desc<<std::endl; - os<<"n_radar_par:"<<data._n_radar_par<<std::endl; - os<<"l_radar_par:"<<data._l_radar_par<<std::endl; - os<<"n_anno_data:"<<data._n_anno_data<<std::endl; - os<<"l_anno_data:"<<data._l_anno_data<<std::endl; - os<<"n_det_proc:"<<data._n_det_proc<<std::endl; - os<<"l_det_proc:"<<data._l_det_proc<<std::endl; - os<<"n_cal:"<<data._n_cal<<std::endl; - os<<"l_cal:"<<data._l_cal<<std::endl; - os<<"n_gcp:"<<data._n_gcp<<std::endl; - os<<"l_gcp:"<<data._l_gcp<<std::endl; - os<<"n_fac_data:"<<data._n_fac_data<<std::endl; - os<<"l_fac_data:"<<data._l_fac_data<<std::endl; - os<<"n_fac_data2:"<<data._n_fac_data2<<std::endl; - os<<"l_fac_data2:"<<data._l_fac_data2<<std::endl; - os<<"n_fac_data3:"<<data._n_fac_data3<<std::endl; - os<<"l_fac_data3:"<<data._l_fac_data3<<std::endl; - os<<"n_fac_data4:"<<data._n_fac_data4<<std::endl; - os<<"l_fac_data4:"<<data._l_fac_data4<<std::endl; - os<<"n_fac_data5:"<<data._n_fac_data5<<std::endl; - os<<"l_fac_data5:"<<data._l_fac_data5<<std::endl; - os<<"n_fac_data6:"<<data._n_fac_data6<<std::endl; - os<<"l_fac_data6:"<<data._l_fac_data6<<std::endl; - os<<"n_fac_data7:"<<data._n_fac_data7<<std::endl; - os<<"l_fac_data7:"<<data._l_fac_data7<<std::endl; - os<<"n_fac_data8:"<<data._n_fac_data8<<std::endl; - os<<"l_fac_data8:"<<data._l_fac_data8<<std::endl; - os<<"n_fac_data9:"<<data._n_fac_data9<<std::endl; - os<<"l_fac_data9:"<<data._l_fac_data9<<std::endl; - os<<"n_fac_data10:"<<data._n_fac_data10<<std::endl; - os<<"l_fac_data10:"<<data._l_fac_data10<<std::endl; - os<<"n_fac_data11:"<<data._n_fac_data11<<std::endl; - os<<"l_fac_data11:"<<data._l_fac_data11<<std::endl; - return os; + os<<"ascii_flag:"<<data._ascii_flag.c_str()<<std::endl; + os<<"continuation_flag:"<<data._continuation_flag.c_str()<<std::endl; + os<<"format_doc:"<<data._format_doc.c_str()<<std::endl; + os<<"format_ver:"<<data._format_ver.c_str()<<std::endl; + os<<"design_rev:"<<data._design_rev.c_str()<<std::endl; + os<<"software_id:"<<data._software_id.c_str()<<std::endl; + os<<"file_num:"<<data._file_num<<std::endl; + os<<"file_name:"<<data._file_name.c_str()<<std::endl; + os<<"rec_seq:"<<data._rec_seq.c_str()<<std::endl; + os<<"seq_loc:"<<data._seq_loc<<std::endl; + os<<"seq_len:"<<data._seq_len<<std::endl; + os<<"rec_code:"<<data._rec_code.c_str()<<std::endl; + os<<"code_loc:"<<data._code_loc<<std::endl; + os<<"code_len:"<<data._code_len<<std::endl; + os<<"rec_len:"<<data._rec_len.c_str()<<std::endl; + os<<"rlen_loc:"<<data._rlen_loc<<std::endl; + os<<"rlen_len:"<<data._rlen_len<<std::endl; + os<<"n_dataset:"<<data._n_dataset<<std::endl; + os<<"l_dataset:"<<data._l_dataset<<std::endl; + os<<"n_map_proj:"<<data._n_map_proj<<std::endl; + os<<"l_map_proj:"<<data._l_map_proj<<std::endl; + os<<"n_plat_pos:"<<data._n_plat_pos<<std::endl; + os<<"l_plat_pos:"<<data._l_plat_pos<<std::endl; + os<<"n_att_data:"<<data._n_att_data<<std::endl; + os<<"l_att_data:"<<data._l_att_data<<std::endl; + os<<"n_radi_data:"<<data._n_radi_data<<std::endl; + os<<"l_radi_data:"<<data._l_radi_data<<std::endl; + os<<"n_radi_comp:"<<data._n_radi_comp<<std::endl; + os<<"l_radi_comp:"<<data._l_radi_comp<<std::endl; + os<<"n_qual_sum:"<<data._n_qual_sum<<std::endl; + os<<"l_qual_sum:"<<data._l_qual_sum<<std::endl; + os<<"n_data_his:"<<data._n_data_his<<std::endl; + os<<"l_data_his:"<<data._l_data_his<<std::endl; + os<<"n_rang_spec:"<<data._n_rang_spec<<std::endl; + os<<"l_rang_spec:"<<data._l_rang_spec<<std::endl; + os<<"n_dem_desc:"<<data._n_dem_desc<<std::endl; + os<<"l_dem_desc:"<<data._l_dem_desc<<std::endl; + os<<"n_radar_par:"<<data._n_radar_par<<std::endl; + os<<"l_radar_par:"<<data._l_radar_par<<std::endl; + os<<"n_anno_data:"<<data._n_anno_data<<std::endl; + os<<"l_anno_data:"<<data._l_anno_data<<std::endl; + os<<"n_det_proc:"<<data._n_det_proc<<std::endl; + os<<"l_det_proc:"<<data._l_det_proc<<std::endl; + os<<"n_cal:"<<data._n_cal<<std::endl; + os<<"l_cal:"<<data._l_cal<<std::endl; + os<<"n_gcp:"<<data._n_gcp<<std::endl; + os<<"l_gcp:"<<data._l_gcp<<std::endl; + os<<"n_fac_data:"<<data._n_fac_data<<std::endl; + os<<"l_fac_data:"<<data._l_fac_data<<std::endl; + os<<"n_fac_data2:"<<data._n_fac_data2<<std::endl; + os<<"l_fac_data2:"<<data._l_fac_data2<<std::endl; + os<<"n_fac_data3:"<<data._n_fac_data3<<std::endl; + os<<"l_fac_data3:"<<data._l_fac_data3<<std::endl; + os<<"n_fac_data4:"<<data._n_fac_data4<<std::endl; + os<<"l_fac_data4:"<<data._l_fac_data4<<std::endl; + os<<"n_fac_data5:"<<data._n_fac_data5<<std::endl; + os<<"l_fac_data5:"<<data._l_fac_data5<<std::endl; + os<<"n_fac_data6:"<<data._n_fac_data6<<std::endl; + os<<"l_fac_data6:"<<data._l_fac_data6<<std::endl; + os<<"n_fac_data7:"<<data._n_fac_data7<<std::endl; + os<<"l_fac_data7:"<<data._l_fac_data7<<std::endl; + os<<"n_fac_data8:"<<data._n_fac_data8<<std::endl; + os<<"l_fac_data8:"<<data._l_fac_data8<<std::endl; + os<<"n_fac_data9:"<<data._n_fac_data9<<std::endl; + os<<"l_fac_data9:"<<data._l_fac_data9<<std::endl; + os<<"n_fac_data10:"<<data._n_fac_data10<<std::endl; + os<<"l_fac_data10:"<<data._l_fac_data10<<std::endl; + os<<"n_fac_data11:"<<data._n_fac_data11<<std::endl; + os<<"l_fac_data11:"<<data._l_fac_data11<<std::endl; + return os; } std::istream& operator>>(std::istream& is, AlosSarFileDescriptor& data) { - char buf2[3]; - buf2[2] = '\0'; - char buf12[13]; - buf12[12] = '\0'; - char buf16[17]; - buf16[16] = '\0'; - char buf4[5]; - buf4[4] = '\0'; - char buf6[7]; - buf6[6] = '\0'; - char buf8[9]; - buf8[8] = '\0'; - char buf64[65]; - buf64[64] = '\0'; + char buf2[3]; + buf2[2] = '\0'; + char buf12[13]; + buf12[12] = '\0'; + char buf16[17]; + buf16[16] = '\0'; + char buf4[5]; + buf4[4] = '\0'; + char buf6[7]; + buf6[6] = '\0'; + char buf8[9]; + buf8[8] = '\0'; + char buf64[65]; + buf64[64] = '\0'; - char buf60[61]; - buf60[60] = '\0'; + char buf60[61]; + buf60[60] = '\0'; - char buf146[147]; - buf146[146] = '\0'; - - is.read(buf2,2); - data._ascii_flag = buf2; - - is.read(buf2,2); - data._continuation_flag = buf2; - - is.read(buf12,12); - data._format_doc = buf12; - - is.read(buf2,2); - data._format_ver = buf2; - - is.read(buf2,2); - data._design_rev = buf2; - - is.read(buf12,12); - data._software_id = buf12; - - is.read(buf4,4); - data._file_num = atoi(buf4); - - is.read(buf16,16); - data._file_name = buf16; - - is.read(buf4,4); - data._rec_seq = buf4; - - is.read(buf8,8); - data._seq_loc = atoi(buf8); - - is.read(buf4,4); - data._seq_len = atoi(buf4); - - is.read(buf4,4); - data._rec_code = buf4; - - is.read(buf8,8); - data._code_loc = atoi(buf8); - - is.read(buf4,4); - data._code_len = atoi(buf4); - - is.read(buf4,4); - data._rec_len = buf4; - - is.read(buf8,8); - data._rlen_loc = atoi(buf8); - - is.read(buf4,4); - data._rlen_len = atoi(buf4); - - is.read(buf4,4); - - is.read(buf64,64); - - is.read(buf6,6); - data._n_dataset = atoi(buf6); - - is.read(buf6,6); - data._l_dataset = atoi(buf6); - - is.read(buf6,6); - data._n_map_proj = atoi(buf6); - - is.read(buf6,6); - data._l_map_proj = atoi(buf6); - - is.read(buf6,6); - data._n_plat_pos = atoi(buf6); - is.read(buf6,6); - data._l_plat_pos = atoi(buf6); - is.read(buf6,6); - data._n_att_data = atoi(buf6); - is.read(buf6,6); - data._l_att_data = atoi(buf6); - is.read(buf6,6); - data._n_radi_data = atoi(buf6); - is.read(buf6,6); - data._l_radi_data = atoi(buf6); - is.read(buf6,6); - data._n_radi_comp = atoi(buf6); - is.read(buf6,6); - data._l_radi_comp = atoi(buf6); - is.read(buf6,6); - data._n_qual_sum = atoi(buf6); - is.read(buf6,6); - data._l_qual_sum = atoi(buf6); - is.read(buf6,6); - data._n_data_his = atoi(buf6); - is.read(buf6,6); - data._l_data_his = atoi(buf6); - - - - is.read(buf6,6); - data._n_rang_spec = atoi(buf6); - is.read(buf6,6); - data._l_rang_spec = atoi(buf6); - is.read(buf6,6); - data._n_dem_desc = atoi(buf6); - is.read(buf6,6); - data._l_dem_desc = atoi(buf6); - is.read(buf6,6); - data._n_radar_par = atoi(buf6); - is.read(buf6,6); - data._l_radar_par = atoi(buf6); - is.read(buf6,6); - data._n_anno_data = atoi(buf6); - is.read(buf6,6); - data._l_anno_data = atoi(buf6); - is.read(buf6,6); - data._n_det_proc = atoi(buf6); - is.read(buf6,6); - data._l_det_proc = atoi(buf6); - is.read(buf6,6); - data._n_cal = atoi(buf6); - is.read(buf6,6); - data._l_cal = atoi(buf6); - is.read(buf6,6); - data._n_gcp = atoi(buf6); - is.read(buf6,6); - data._l_gcp = atoi(buf6); - is.read(buf60,60); - is.read(buf6,6); - data._n_fac_data = atoi(buf6); - is.read(buf8,8); - data._l_fac_data = atoi(buf8); - is.read(buf6,6); - data._n_fac_data2 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data2 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data3 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data3 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data4 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data4 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data5 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data5 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data6 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data6 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data7 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data7 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data8 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data8 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data9 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data9 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data10 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data10 = atoi(buf8); - is.read(buf6,6); - data._n_fac_data11 = atoi(buf6); - is.read(buf8,8); - data._l_fac_data11 = atoi(buf8); - - is.read(buf146,146); - return is; + char buf146[147]; + buf146[146] = '\0'; + + is.read(buf2,2); + data._ascii_flag = buf2; + + is.read(buf2,2); + data._continuation_flag = buf2; + + is.read(buf12,12); + data._format_doc = buf12; + + is.read(buf2,2); + data._format_ver = buf2; + + is.read(buf2,2); + data._design_rev = buf2; + + is.read(buf12,12); + data._software_id = buf12; + + is.read(buf4,4); + data._file_num = atoi(buf4); + + is.read(buf16,16); + data._file_name = buf16; + + is.read(buf4,4); + data._rec_seq = buf4; + + is.read(buf8,8); + data._seq_loc = atoi(buf8); + + is.read(buf4,4); + data._seq_len = atoi(buf4); + + is.read(buf4,4); + data._rec_code = buf4; + + is.read(buf8,8); + data._code_loc = atoi(buf8); + + is.read(buf4,4); + data._code_len = atoi(buf4); + + is.read(buf4,4); + data._rec_len = buf4; + + is.read(buf8,8); + data._rlen_loc = atoi(buf8); + + is.read(buf4,4); + data._rlen_len = atoi(buf4); + + is.read(buf4,4); + + is.read(buf64,64); + + is.read(buf6,6); + data._n_dataset = atoi(buf6); + + is.read(buf6,6); + data._l_dataset = atoi(buf6); + + is.read(buf6,6); + data._n_map_proj = atoi(buf6); + + is.read(buf6,6); + data._l_map_proj = atoi(buf6); + + is.read(buf6,6); + data._n_plat_pos = atoi(buf6); + is.read(buf6,6); + data._l_plat_pos = atoi(buf6); + is.read(buf6,6); + data._n_att_data = atoi(buf6); + is.read(buf6,6); + data._l_att_data = atoi(buf6); + is.read(buf6,6); + data._n_radi_data = atoi(buf6); + is.read(buf6,6); + data._l_radi_data = atoi(buf6); + is.read(buf6,6); + data._n_radi_comp = atoi(buf6); + is.read(buf6,6); + data._l_radi_comp = atoi(buf6); + is.read(buf6,6); + data._n_qual_sum = atoi(buf6); + is.read(buf6,6); + data._l_qual_sum = atoi(buf6); + is.read(buf6,6); + data._n_data_his = atoi(buf6); + is.read(buf6,6); + data._l_data_his = atoi(buf6); + + + + is.read(buf6,6); + data._n_rang_spec = atoi(buf6); + is.read(buf6,6); + data._l_rang_spec = atoi(buf6); + is.read(buf6,6); + data._n_dem_desc = atoi(buf6); + is.read(buf6,6); + data._l_dem_desc = atoi(buf6); + is.read(buf6,6); + data._n_radar_par = atoi(buf6); + is.read(buf6,6); + data._l_radar_par = atoi(buf6); + is.read(buf6,6); + data._n_anno_data = atoi(buf6); + is.read(buf6,6); + data._l_anno_data = atoi(buf6); + is.read(buf6,6); + data._n_det_proc = atoi(buf6); + is.read(buf6,6); + data._l_det_proc = atoi(buf6); + is.read(buf6,6); + data._n_cal = atoi(buf6); + is.read(buf6,6); + data._l_cal = atoi(buf6); + is.read(buf6,6); + data._n_gcp = atoi(buf6); + is.read(buf6,6); + data._l_gcp = atoi(buf6); + is.read(buf60,60); + is.read(buf6,6); + data._n_fac_data = atoi(buf6); + is.read(buf8,8); + data._l_fac_data = atoi(buf8); + is.read(buf6,6); + data._n_fac_data2 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data2 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data3 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data3 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data4 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data4 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data5 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data5 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data6 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data6 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data7 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data7 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data8 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data8 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data9 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data9 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data10 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data10 = atoi(buf8); + is.read(buf6,6); + data._n_fac_data11 = atoi(buf6); + is.read(buf8,8); + data._l_fac_data11 = atoi(buf8); + + is.read(buf146,146); + return is; } AlosSarFileDescriptor::AlosSarFileDescriptor(const AlosSarFileDescriptor& rhs): - AlosSarRecord(rhs), - _ascii_flag(rhs._ascii_flag), + AlosSarRecord(rhs), + _ascii_flag(rhs._ascii_flag), _continuation_flag(rhs._continuation_flag), - _format_doc(rhs._format_doc), - _format_ver(rhs._format_ver), - _design_rev(rhs._design_rev), - _software_id(rhs._software_id), - _file_num(rhs._file_num), - _file_name(rhs._file_name), - _rec_seq(rhs._rec_seq), - _seq_loc(rhs._seq_loc), - _seq_len(rhs._seq_len), - _rec_code(rhs._rec_code), - _code_loc(rhs._code_loc), - _code_len(rhs._code_len), - _rec_len(rhs._rec_len), - _rlen_loc(rhs._rlen_loc), - _rlen_len(rhs._rlen_len), - _n_dataset(rhs._n_dataset), - _l_dataset(rhs._l_dataset), - _n_map_proj(rhs._n_map_proj), - _l_map_proj(rhs._l_map_proj), - _n_plat_pos(rhs._n_plat_pos), - _l_plat_pos(rhs._l_plat_pos), - _n_att_data(rhs._n_att_data), - _l_att_data(rhs._l_att_data), - _n_radi_data(rhs._n_radi_data), - _l_radi_data(rhs._l_radi_data), - _n_radi_comp(rhs._n_radi_comp), - _l_radi_comp(rhs._l_radi_comp), - _n_qual_sum(rhs._n_qual_sum), - _l_qual_sum(rhs._l_qual_sum), - _n_data_his(rhs._n_data_his), - _l_data_his(rhs._l_data_his), - _n_rang_spec(rhs._n_rang_spec), - _l_rang_spec(rhs._l_rang_spec), - _n_dem_desc(rhs._n_dem_desc), - _l_dem_desc(rhs._l_dem_desc), - _n_radar_par(rhs._n_radar_par), - _l_radar_par(rhs._l_radar_par), - _n_anno_data(rhs._n_anno_data), - _l_anno_data(rhs._l_anno_data), - _n_det_proc(rhs._n_det_proc), - _l_det_proc(rhs._l_det_proc), - _n_cal(rhs._n_cal), - _l_cal(rhs._l_cal), - _n_gcp(rhs._n_gcp), - _l_gcp(rhs._l_gcp), - _n_fac_data(rhs._n_fac_data), - _l_fac_data(rhs._l_fac_data), - _n_fac_data2(rhs._n_fac_data2), - _l_fac_data2(rhs._l_fac_data2), - _n_fac_data3(rhs._n_fac_data3), - _l_fac_data3(rhs._l_fac_data3), - _n_fac_data4(rhs._n_fac_data4), - _l_fac_data4(rhs._l_fac_data4), - _n_fac_data5(rhs._n_fac_data5), - _l_fac_data5(rhs._l_fac_data5), - _n_fac_data6(rhs._n_fac_data6), - _l_fac_data6(rhs._l_fac_data6), - _n_fac_data7(rhs._n_fac_data7), - _l_fac_data7(rhs._l_fac_data7), - _n_fac_data8(rhs._n_fac_data8), - _l_fac_data8(rhs._l_fac_data8), - _n_fac_data9(rhs._n_fac_data9), - _l_fac_data9(rhs._l_fac_data9), - _n_fac_data10(rhs._n_fac_data10), - _l_fac_data10(rhs._l_fac_data10), - _n_fac_data11(rhs._n_fac_data11), - _l_fac_data11(rhs._l_fac_data11) + _format_doc(rhs._format_doc), + _format_ver(rhs._format_ver), + _design_rev(rhs._design_rev), + _software_id(rhs._software_id), + _file_num(rhs._file_num), + _file_name(rhs._file_name), + _rec_seq(rhs._rec_seq), + _seq_loc(rhs._seq_loc), + _seq_len(rhs._seq_len), + _rec_code(rhs._rec_code), + _code_loc(rhs._code_loc), + _code_len(rhs._code_len), + _rec_len(rhs._rec_len), + _rlen_loc(rhs._rlen_loc), + _rlen_len(rhs._rlen_len), + _n_dataset(rhs._n_dataset), + _l_dataset(rhs._l_dataset), + _n_map_proj(rhs._n_map_proj), + _l_map_proj(rhs._l_map_proj), + _n_plat_pos(rhs._n_plat_pos), + _l_plat_pos(rhs._l_plat_pos), + _n_att_data(rhs._n_att_data), + _l_att_data(rhs._l_att_data), + _n_radi_data(rhs._n_radi_data), + _l_radi_data(rhs._l_radi_data), + _n_radi_comp(rhs._n_radi_comp), + _l_radi_comp(rhs._l_radi_comp), + _n_qual_sum(rhs._n_qual_sum), + _l_qual_sum(rhs._l_qual_sum), + _n_data_his(rhs._n_data_his), + _l_data_his(rhs._l_data_his), + _n_rang_spec(rhs._n_rang_spec), + _l_rang_spec(rhs._l_rang_spec), + _n_dem_desc(rhs._n_dem_desc), + _l_dem_desc(rhs._l_dem_desc), + _n_radar_par(rhs._n_radar_par), + _l_radar_par(rhs._l_radar_par), + _n_anno_data(rhs._n_anno_data), + _l_anno_data(rhs._l_anno_data), + _n_det_proc(rhs._n_det_proc), + _l_det_proc(rhs._l_det_proc), + _n_cal(rhs._n_cal), + _l_cal(rhs._l_cal), + _n_gcp(rhs._n_gcp), + _l_gcp(rhs._l_gcp), + _n_fac_data(rhs._n_fac_data), + _l_fac_data(rhs._l_fac_data), + _n_fac_data2(rhs._n_fac_data2), + _l_fac_data2(rhs._l_fac_data2), + _n_fac_data3(rhs._n_fac_data3), + _l_fac_data3(rhs._l_fac_data3), + _n_fac_data4(rhs._n_fac_data4), + _l_fac_data4(rhs._l_fac_data4), + _n_fac_data5(rhs._n_fac_data5), + _l_fac_data5(rhs._l_fac_data5), + _n_fac_data6(rhs._n_fac_data6), + _l_fac_data6(rhs._l_fac_data6), + _n_fac_data7(rhs._n_fac_data7), + _l_fac_data7(rhs._l_fac_data7), + _n_fac_data8(rhs._n_fac_data8), + _l_fac_data8(rhs._l_fac_data8), + _n_fac_data9(rhs._n_fac_data9), + _l_fac_data9(rhs._l_fac_data9), + _n_fac_data10(rhs._n_fac_data10), + _l_fac_data10(rhs._l_fac_data10), + _n_fac_data11(rhs._n_fac_data11), + _l_fac_data11(rhs._l_fac_data11) { } AlosSarFileDescriptor& AlosSarFileDescriptor::operator=(const AlosSarFileDescriptor& rhs) { - _ascii_flag = rhs._ascii_flag; - _continuation_flag = rhs._continuation_flag; - _format_doc = rhs._format_doc; - _format_ver = rhs._format_ver; - _design_rev = rhs._design_rev; - _software_id = rhs._software_id; - _file_num = rhs._file_num; - _file_name = rhs._file_name; - _rec_seq = rhs._rec_seq; - _seq_loc = rhs._seq_loc; - _seq_len = rhs._seq_len; - _rec_code = rhs._rec_code; - _code_loc = rhs._code_loc; - _code_len = rhs._code_len; - _rec_len = rhs._rec_len; - _rlen_loc = rhs._rlen_loc; - _rlen_len = rhs._rlen_len; - _n_dataset = rhs._n_dataset; - _l_dataset = rhs._l_dataset; - _n_map_proj = rhs._n_map_proj; - _l_map_proj = rhs._l_map_proj; - _n_plat_pos = rhs._n_plat_pos; - _l_plat_pos = rhs._l_plat_pos; - _n_att_data = rhs._n_att_data; - _l_att_data = rhs._l_att_data; - _n_radi_data = rhs._n_radi_data; - _l_radi_data = rhs._l_radi_data; - _n_radi_comp = rhs._n_radi_comp; - _l_radi_comp = rhs._l_radi_comp; - _n_qual_sum = rhs._n_qual_sum ; - _l_qual_sum = rhs._l_qual_sum; - _n_data_his = rhs._n_data_his; - _l_data_his = rhs._l_data_his; - _n_rang_spec = rhs._n_rang_spec; - _l_rang_spec = rhs._l_rang_spec; - _n_dem_desc = rhs._n_dem_desc; - _l_dem_desc = rhs._l_dem_desc; - _n_radar_par = rhs._n_radar_par; - _l_radar_par = rhs._l_radar_par; - _n_anno_data = rhs._n_anno_data; - _l_anno_data = rhs._l_anno_data; - _n_det_proc = rhs._n_det_proc; - _l_det_proc = rhs._l_det_proc; - _n_cal = rhs._n_cal; - _l_cal = rhs._l_cal; - _n_gcp = rhs._n_gcp; - _l_gcp = rhs._l_gcp; - _n_fac_data = rhs._n_fac_data; - _l_fac_data = rhs._l_fac_data; - _n_fac_data2 = rhs._n_fac_data2; - _l_fac_data2 = rhs._l_fac_data2; - _n_fac_data3 = rhs._n_fac_data3; - _l_fac_data3 = rhs._l_fac_data3; - _n_fac_data4 = rhs._n_fac_data4; - _l_fac_data4 = rhs._l_fac_data4; - _n_fac_data5 = rhs._n_fac_data5; - _l_fac_data5 = rhs._l_fac_data5; - _n_fac_data6 = rhs._n_fac_data6; - _l_fac_data6 = rhs._l_fac_data6; - _n_fac_data7 = rhs._n_fac_data7; - _l_fac_data7 = rhs._l_fac_data7; - _n_fac_data8 = rhs._n_fac_data8; - _l_fac_data8 = rhs._l_fac_data8; - _n_fac_data9 = rhs._n_fac_data9; - _l_fac_data9 = rhs._l_fac_data9; - _n_fac_data10 = rhs._n_fac_data10; - _l_fac_data10 = rhs._l_fac_data10; - _n_fac_data11 = rhs._n_fac_data11; - _l_fac_data11 = rhs._l_fac_data11; - return *this; -} \ No newline at end of file + _ascii_flag = rhs._ascii_flag; + _continuation_flag = rhs._continuation_flag; + _format_doc = rhs._format_doc; + _format_ver = rhs._format_ver; + _design_rev = rhs._design_rev; + _software_id = rhs._software_id; + _file_num = rhs._file_num; + _file_name = rhs._file_name; + _rec_seq = rhs._rec_seq; + _seq_loc = rhs._seq_loc; + _seq_len = rhs._seq_len; + _rec_code = rhs._rec_code; + _code_loc = rhs._code_loc; + _code_len = rhs._code_len; + _rec_len = rhs._rec_len; + _rlen_loc = rhs._rlen_loc; + _rlen_len = rhs._rlen_len; + _n_dataset = rhs._n_dataset; + _l_dataset = rhs._l_dataset; + _n_map_proj = rhs._n_map_proj; + _l_map_proj = rhs._l_map_proj; + _n_plat_pos = rhs._n_plat_pos; + _l_plat_pos = rhs._l_plat_pos; + _n_att_data = rhs._n_att_data; + _l_att_data = rhs._l_att_data; + _n_radi_data = rhs._n_radi_data; + _l_radi_data = rhs._l_radi_data; + _n_radi_comp = rhs._n_radi_comp; + _l_radi_comp = rhs._l_radi_comp; + _n_qual_sum = rhs._n_qual_sum ; + _l_qual_sum = rhs._l_qual_sum; + _n_data_his = rhs._n_data_his; + _l_data_his = rhs._l_data_his; + _n_rang_spec = rhs._n_rang_spec; + _l_rang_spec = rhs._l_rang_spec; + _n_dem_desc = rhs._n_dem_desc; + _l_dem_desc = rhs._l_dem_desc; + _n_radar_par = rhs._n_radar_par; + _l_radar_par = rhs._l_radar_par; + _n_anno_data = rhs._n_anno_data; + _l_anno_data = rhs._l_anno_data; + _n_det_proc = rhs._n_det_proc; + _l_det_proc = rhs._l_det_proc; + _n_cal = rhs._n_cal; + _l_cal = rhs._l_cal; + _n_gcp = rhs._n_gcp; + _l_gcp = rhs._l_gcp; + _n_fac_data = rhs._n_fac_data; + _l_fac_data = rhs._l_fac_data; + _n_fac_data2 = rhs._n_fac_data2; + _l_fac_data2 = rhs._l_fac_data2; + _n_fac_data3 = rhs._n_fac_data3; + _l_fac_data3 = rhs._l_fac_data3; + _n_fac_data4 = rhs._n_fac_data4; + _l_fac_data4 = rhs._l_fac_data4; + _n_fac_data5 = rhs._n_fac_data5; + _l_fac_data5 = rhs._l_fac_data5; + _n_fac_data6 = rhs._n_fac_data6; + _l_fac_data6 = rhs._l_fac_data6; + _n_fac_data7 = rhs._n_fac_data7; + _l_fac_data7 = rhs._l_fac_data7; + _n_fac_data8 = rhs._n_fac_data8; + _l_fac_data8 = rhs._l_fac_data8; + _n_fac_data9 = rhs._n_fac_data9; + _l_fac_data9 = rhs._l_fac_data9; + _n_fac_data10 = rhs._n_fac_data10; + _l_fac_data10 = rhs._l_fac_data10; + _n_fac_data11 = rhs._n_fac_data11; + _l_fac_data11 = rhs._l_fac_data11; + return *this; +} +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.h index 8014a8ab655a3349d31094a15a4f2951b4da0a3d..04081edf17d6188d6b8e25ec9e9de2eee94fd53d 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarFileDescriptor.h @@ -6,6 +6,10 @@ #include <cstdlib> #include <AlosSarRecordHeader.h> #include <AlosSarRecord.h> + +namespace ossimplugins +{ + /** * @ingroup SARLeaderAlosSarFileDescriptorRecord * @brief This class is able to read the SAR leader file descriptor record of the leader file @@ -16,849 +20,849 @@ class AlosSarFileDescriptor : public AlosSarRecord { public: - /** - * @brief Constructor - */ - AlosSarFileDescriptor(); - /** - * @brief Destructor - */ - ~AlosSarFileDescriptor(); - - /** - * @brief This function write the AlosSarFileDescriptor in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarFileDescriptor& data); - - /** - * @brief This function read a AlosSarFileDescriptor from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarFileDescriptor& data); - - /** - * @brief Copy constructor - */ - AlosSarFileDescriptor(const AlosSarFileDescriptor& rhs); - - /** - * @brief Copy operator - */ - AlosSarFileDescriptor& operator=(const AlosSarFileDescriptor& rhs); - - /** - * @brief This function is able to create a new instance of the class - */ - AlosSarRecord* Instanciate() - { - return new AlosSarFileDescriptor(); - }; - - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - AlosSarRecord* Clone() - { - return new AlosSarFileDescriptor(*this); - }; - - /** - * @brief Read the class data from a stream - */ - void Read(std::istream& is) - { - is>>*this; - }; - - /** - * @brief Write the class to a stream - */ - void Write(std::ostream& os) - { - os<<*this; - }; - - /** - * @brief ASCII flag - */ - std::string get_ascii_flag() - { - return _ascii_flag; - }; - - /** - * @brief Continuation flag - */ + /** + * @brief Constructor + */ + AlosSarFileDescriptor(); + /** + * @brief Destructor + */ + ~AlosSarFileDescriptor(); + + /** + * @brief This function write the AlosSarFileDescriptor in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarFileDescriptor& data); + + /** + * @brief This function read a AlosSarFileDescriptor from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarFileDescriptor& data); + + /** + * @brief Copy constructor + */ + AlosSarFileDescriptor(const AlosSarFileDescriptor& rhs); + + /** + * @brief Copy operator + */ + AlosSarFileDescriptor& operator=(const AlosSarFileDescriptor& rhs); + + /** + * @brief This function is able to create a new instance of the class + */ + AlosSarRecord* Instanciate() + { + return new AlosSarFileDescriptor(); + }; + + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + AlosSarRecord* Clone() + { + return new AlosSarFileDescriptor(*this); + }; + + /** + * @brief Read the class data from a stream + */ + void Read(std::istream& is) + { + is>>*this; + }; + + /** + * @brief Write the class to a stream + */ + void Write(std::ostream& os) + { + os<<*this; + }; + + /** + * @brief ASCII flag + */ + std::string get_ascii_flag() + { + return _ascii_flag; + }; + + /** + * @brief Continuation flag + */ std::string get_continuation_flag() { return _continuation_flag; }; - /** - * @brief Format control documentation - */ - std::string get_format_doc() - { - return _format_doc; - }; - /** - * @brief Format doc version - */ - std::string get_format_ver() - { - return _format_ver; - }; - /** - * @brief Format doc revision - */ + /** + * @brief Format control documentation + */ + std::string get_format_doc() + { + return _format_doc; + }; + /** + * @brief Format doc version + */ + std::string get_format_ver() + { + return _format_ver; + }; + /** + * @brief Format doc revision + */ std::string get_design_rev() - { - return _design_rev; - }; - /** - * @brief Software identifier - */ + { + return _design_rev; + }; + /** + * @brief Software identifier + */ std::string get_software_id() - { - return _software_id; - }; - /** - * @brief File number - */ - int get_file_num() - { - return _file_num ; - }; - /** - * @brief File name - */ + { + return _software_id; + }; + /** + * @brief File number + */ + int get_file_num() + { + return _file_num ; + }; + /** + * @brief File name + */ std::string get_file_name() - { - return _file_name; - }; - /** - * @brief Record sequence/location flag - */ + { + return _file_name; + }; + /** + * @brief Record sequence/location flag + */ std::string get_rec_seq() - { - return _rec_seq; - }; - /** - * @brief Sequence number location - */ - int get_seq_loc() - { - return _seq_loc; - }; - /** - * @brief Sequence number lenght - */ - int get_seq_len() - { - return _seq_len; - }; - /** - * @brief Record code/location flag - */ - std::string get_rec_code() - { - return _rec_code; - }; - /** - * @brief Record code location - */ - int get_code_loc() - { - return _code_loc; - }; - /** - * @brief Record code length - */ + { + return _rec_seq; + }; + /** + * @brief Sequence number location + */ + int get_seq_loc() + { + return _seq_loc; + }; + /** + * @brief Sequence number lenght + */ + int get_seq_len() + { + return _seq_len; + }; + /** + * @brief Record code/location flag + */ + std::string get_rec_code() + { + return _rec_code; + }; + /** + * @brief Record code location + */ + int get_code_loc() + { + return _code_loc; + }; + /** + * @brief Record code length + */ int get_code_len() - { - return _code_len; - }; - /** - * @brief Record length/location flag - */ - std::string get_rec_len() - { - return _rec_len; - }; - /** - * @brief Record lenght location - */ - int get_rlen_loc() - { - return _rlen_loc; - }; - /** - * @brief Record length, bytes - */ - int get_rlen_len() - { - return _rlen_len; - }; - /** - * @brief Number of dataset summ records - */ - int get_n_dataset() - { - return _n_dataset; - }; - /** - * @brief Data set summary record length, bytes - */ - int get_l_dataset() - { - return _l_dataset; - }; - /** - * @brief Number of map proj records - */ - int get_n_map_proj() - { - return _n_map_proj; - }; - /** - * @brief Map projection record length, bytes - */ - int get_l_map_proj() - { - return _l_map_proj; - }; - /** - * @brief Number of platform position records - */ - int get_n_plat_pos() - { - return _n_plat_pos; - }; - /** - * @brief Platform position record length, bytes - */ - int get_l_plat_pos() - { - return _l_plat_pos; - }; - /** - * @brief Number of attitude data records - */ - int get_n_att_data() - { - return _n_att_data; - }; - /** - * @brief Attitude data record length, bytes - */ - int get_l_att_data() - { - return _l_att_data; - }; - /** - * @brief Number of radiometric data records - */ - int get_n_radi_data() - { - return _n_radi_data; - }; - /** - * @brief Radiometric data record length, bytes - */ - int get_l_radi_data() - { - return _l_radi_data; - }; - /** - * @brief Number of radiometric compensation records - */ - int get_n_radi_comp() - { - return _n_radi_comp; - }; - /** - * @brief Radiometric compensation record length, bytes - */ - int get_l_radi_comp() - { - return _l_radi_comp; - }; - /** - * @brief Number of data quality summary records - */ - int get_n_qual_sum() - { - return _n_qual_sum; - }; - /** - * @brief Data quality summary record length, bytes - */ - int get_l_qual_sum() - { - return _l_qual_sum; - }; - /** - * @brief Number of data histogram records - */ - int get_n_data_his() - { - return _n_data_his; - }; - /** - * @brief Data histogram record length, bytes - */ - int get_l_data_his() - { - return _l_data_his; - }; - /** - * @brief Number of range spectra records - */ - int get_n_rang_spec() - { - return _n_rang_spec ; - }; - /** - * @brief Range spectra record length, bytes - */ - int get_l_rang_spec() - { - return _l_rang_spec; - }; - /** - * @brief Number of DEM descriptor records - */ - int get_n_dem_desc() - { - return _n_dem_desc; - }; - /** - * @brief DEM desc record length, bytes - */ - int get_l_dem_desc() - { - return _l_dem_desc; - }; - /** - * @brief Number of RADAR par records - */ - int get_n_radar_par() - { - return _n_radar_par; - }; - /** - * @brief RADAR par record length, bytes - */ - int get_l_radar_par() - { - return _l_radar_par; - }; - /** - * @brief Number of annotation data records - */ - int get_n_anno_data() - { - return _n_anno_data; - }; - /** - * @brief Annotation data record length, bytes - */ - int get_l_anno_data() - { - return _l_anno_data; - }; - /** - * @brief Number of processing parameter records - */ - int get_n_det_proc() - { - return _n_det_proc; - }; - /** - * @brief Processing parameter record length, bytes - */ - int get_l_det_proc() - { - return _l_det_proc; - }; - /** - * @brief Number of calibration records - */ - int get_n_cal() - { - return _n_cal; - }; - /** - * @brief Calibration record length, bytes - */ - int get_l_cal() - { - return _l_cal; - }; - /** - * @brief Number of GCP records - */ - int get_n_gcp() - { - return _n_gcp; - }; - /** - * @brief GCP record length, bytes - */ - int get_l_gcp() - { - return _l_gcp; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data() - { - return _l_fac_data; - }; - - /** - * @brief Number of facility data records - */ - int get_n_fac_data2() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data2() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data3() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data3() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data4() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data4() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data5() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data5() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data6() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data6() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data7() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data7() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data8() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data8() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data9() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data9() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data10() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data10() - { - return _l_fac_data; - }; - /** - * @brief Number of facility data records - */ - int get_n_fac_data11() - { - return _n_fac_data; - }; - /** - * @brief Fac data record length, bytes - */ - int get_l_fac_data11() - { - return _l_fac_data; - }; + { + return _code_len; + }; + /** + * @brief Record length/location flag + */ + std::string get_rec_len() + { + return _rec_len; + }; + /** + * @brief Record lenght location + */ + int get_rlen_loc() + { + return _rlen_loc; + }; + /** + * @brief Record length, bytes + */ + int get_rlen_len() + { + return _rlen_len; + }; + /** + * @brief Number of dataset summ records + */ + int get_n_dataset() + { + return _n_dataset; + }; + /** + * @brief Data set summary record length, bytes + */ + int get_l_dataset() + { + return _l_dataset; + }; + /** + * @brief Number of map proj records + */ + int get_n_map_proj() + { + return _n_map_proj; + }; + /** + * @brief Map projection record length, bytes + */ + int get_l_map_proj() + { + return _l_map_proj; + }; + /** + * @brief Number of platform position records + */ + int get_n_plat_pos() + { + return _n_plat_pos; + }; + /** + * @brief Platform position record length, bytes + */ + int get_l_plat_pos() + { + return _l_plat_pos; + }; + /** + * @brief Number of attitude data records + */ + int get_n_att_data() + { + return _n_att_data; + }; + /** + * @brief Attitude data record length, bytes + */ + int get_l_att_data() + { + return _l_att_data; + }; + /** + * @brief Number of radiometric data records + */ + int get_n_radi_data() + { + return _n_radi_data; + }; + /** + * @brief Radiometric data record length, bytes + */ + int get_l_radi_data() + { + return _l_radi_data; + }; + /** + * @brief Number of radiometric compensation records + */ + int get_n_radi_comp() + { + return _n_radi_comp; + }; + /** + * @brief Radiometric compensation record length, bytes + */ + int get_l_radi_comp() + { + return _l_radi_comp; + }; + /** + * @brief Number of data quality summary records + */ + int get_n_qual_sum() + { + return _n_qual_sum; + }; + /** + * @brief Data quality summary record length, bytes + */ + int get_l_qual_sum() + { + return _l_qual_sum; + }; + /** + * @brief Number of data histogram records + */ + int get_n_data_his() + { + return _n_data_his; + }; + /** + * @brief Data histogram record length, bytes + */ + int get_l_data_his() + { + return _l_data_his; + }; + /** + * @brief Number of range spectra records + */ + int get_n_rang_spec() + { + return _n_rang_spec ; + }; + /** + * @brief Range spectra record length, bytes + */ + int get_l_rang_spec() + { + return _l_rang_spec; + }; + /** + * @brief Number of DEM descriptor records + */ + int get_n_dem_desc() + { + return _n_dem_desc; + }; + /** + * @brief DEM desc record length, bytes + */ + int get_l_dem_desc() + { + return _l_dem_desc; + }; + /** + * @brief Number of RADAR par records + */ + int get_n_radar_par() + { + return _n_radar_par; + }; + /** + * @brief RADAR par record length, bytes + */ + int get_l_radar_par() + { + return _l_radar_par; + }; + /** + * @brief Number of annotation data records + */ + int get_n_anno_data() + { + return _n_anno_data; + }; + /** + * @brief Annotation data record length, bytes + */ + int get_l_anno_data() + { + return _l_anno_data; + }; + /** + * @brief Number of processing parameter records + */ + int get_n_det_proc() + { + return _n_det_proc; + }; + /** + * @brief Processing parameter record length, bytes + */ + int get_l_det_proc() + { + return _l_det_proc; + }; + /** + * @brief Number of calibration records + */ + int get_n_cal() + { + return _n_cal; + }; + /** + * @brief Calibration record length, bytes + */ + int get_l_cal() + { + return _l_cal; + }; + /** + * @brief Number of GCP records + */ + int get_n_gcp() + { + return _n_gcp; + }; + /** + * @brief GCP record length, bytes + */ + int get_l_gcp() + { + return _l_gcp; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data() + { + return _l_fac_data; + }; + + /** + * @brief Number of facility data records + */ + int get_n_fac_data2() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data2() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data3() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data3() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data4() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data4() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data5() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data5() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data6() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data6() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data7() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data7() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data8() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data8() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data9() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data9() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data10() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data10() + { + return _l_fac_data; + }; + /** + * @brief Number of facility data records + */ + int get_n_fac_data11() + { + return _n_fac_data; + }; + /** + * @brief Fac data record length, bytes + */ + int get_l_fac_data11() + { + return _l_fac_data; + }; protected: - /** - * @brief ASCII flag - */ - std::string _ascii_flag; - - /** - * @brief Continuation flag - */ - std::string _continuation_flag; - - /** - * @brief Format control documentation - */ - std::string _format_doc; - /** - * @brief Format doc version - */ - std::string _format_ver; - /** - * @brief Format doc revision - */ + /** + * @brief ASCII flag + */ + std::string _ascii_flag; + + /** + * @brief Continuation flag + */ + std::string _continuation_flag; + + /** + * @brief Format control documentation + */ + std::string _format_doc; + /** + * @brief Format doc version + */ + std::string _format_ver; + /** + * @brief Format doc revision + */ std::string _design_rev; - /** - * @brief Software identifier - */ + /** + * @brief Software identifier + */ std::string _software_id; - /** - * @brief File number - */ - int _file_num; - /** - * @brief File name - */ + /** + * @brief File number + */ + int _file_num; + /** + * @brief File name + */ std::string _file_name; - /** - * @brief Record sequence/location flag - */ + /** + * @brief Record sequence/location flag + */ std::string _rec_seq; - /** - * @brief Sequence number location - */ - int _seq_loc; - /** - * @brief Sequence number lenght - */ - int _seq_len; - /** - * @brief Record code/location flag - */ - std::string _rec_code; - /** - * @brief Record code location - */ - int _code_loc; - /** - * @brief Record code length - */ + /** + * @brief Sequence number location + */ + int _seq_loc; + /** + * @brief Sequence number lenght + */ + int _seq_len; + /** + * @brief Record code/location flag + */ + std::string _rec_code; + /** + * @brief Record code location + */ + int _code_loc; + /** + * @brief Record code length + */ int _code_len; - /** - * @brief Record length/location flag - */ - std::string _rec_len; - /** - * @brief Record lenght location - */ - int _rlen_loc; - /** - * @brief Record length, bytes - */ - int _rlen_len; - - - /** - * @brief Number of dataset summ records - */ - int _n_dataset; - /** - * @brief Data set summary record length, bytes - */ - int _l_dataset; - /** - * @brief Number of map proj records - */ - int _n_map_proj; - /** - * @brief Map projection record length, bytes - */ - int _l_map_proj; - /** - * @brief Number of platform position records - */ - int _n_plat_pos; - /** - * @brief Platform position record length, bytes - */ - int _l_plat_pos; - /** - * @brief Number of attitude data records - */ - int _n_att_data; - /** - * @brief Attitude data record length, bytes - */ - int _l_att_data; - /** - * @brief Number of radiometric data records - */ - int _n_radi_data; - /** - * @brief Radiometric data record length, bytes - */ - int _l_radi_data; - /** - * @brief Number of radiometric compensation records - */ - int _n_radi_comp; - /** - * @brief Radiometric compensation record length, bytes - */ - int _l_radi_comp; - /** - * @brief Number of data quality summary records - */ - int _n_qual_sum; - /** - * @brief Data quality summary record length, bytes - */ - int _l_qual_sum; - /** - * @brief Number of data histogram records - */ - int _n_data_his; - /** - * @brief Data histogram record length, bytes - */ - int _l_data_his; - /** - * @brief Number of range spectra records - */ - int _n_rang_spec; - /** - * @brief Range spectra record length, bytes - */ - int _l_rang_spec; - /** - * @brief Number of DEM descriptor records - */ - int _n_dem_desc; - /** - * @brief DEM desc record length, bytes - */ - int _l_dem_desc; - /** - * @brief Number of RADAR par records - */ - int _n_radar_par; - /** - * @brief RADAR par record length, bytes - */ - int _l_radar_par; - /** - * @brief Number of annotation data records - */ - int _n_anno_data; - /** - * @brief Annotation data record length, bytes - */ - int _l_anno_data; - /** - * @brief Number of processing parameter records - */ - int _n_det_proc; - /** - * @brief Processing parameter record length, bytes - */ - int _l_det_proc; - /** - * @brief Number of calibration records - */ - int _n_cal; - /** - * @brief Calibration record length, bytes - */ - int _l_cal; - /** - * @brief Number of GCP records - */ - int _n_gcp; - /** - * @brief GCP record length, bytes - */ - int _l_gcp; - - /** - * @brief Number of facility data records - */ - int _n_fac_data; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data; - - /** - * @brief Number of facility data records - */ - int _n_fac_data2; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data2; - - /** - * @brief Number of facility data records - */ - int _n_fac_data3; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data3; - - /** - * @brief Number of facility data records - */ - int _n_fac_data4; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data4; - - /** - * @brief Number of facility data records - */ - int _n_fac_data5; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data5; - - /** - * @brief Number of facility data records - */ - int _n_fac_data6; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data6; - - /** - * @brief Number of facility data records - */ - int _n_fac_data7; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data7; - - /** - * @brief Number of facility data records - */ - int _n_fac_data8; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data8; - - /** - * @brief Number of facility data records - */ - int _n_fac_data9; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data9; - - /** - * @brief Number of facility data records - */ - int _n_fac_data10; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data10; - - /** - * @brief Number of facility data records - */ - int _n_fac_data11; - /** - * @brief Fac data record length, bytes - */ - int _l_fac_data11; + /** + * @brief Record length/location flag + */ + std::string _rec_len; + /** + * @brief Record lenght location + */ + int _rlen_loc; + /** + * @brief Record length, bytes + */ + int _rlen_len; + + + /** + * @brief Number of dataset summ records + */ + int _n_dataset; + /** + * @brief Data set summary record length, bytes + */ + int _l_dataset; + /** + * @brief Number of map proj records + */ + int _n_map_proj; + /** + * @brief Map projection record length, bytes + */ + int _l_map_proj; + /** + * @brief Number of platform position records + */ + int _n_plat_pos; + /** + * @brief Platform position record length, bytes + */ + int _l_plat_pos; + /** + * @brief Number of attitude data records + */ + int _n_att_data; + /** + * @brief Attitude data record length, bytes + */ + int _l_att_data; + /** + * @brief Number of radiometric data records + */ + int _n_radi_data; + /** + * @brief Radiometric data record length, bytes + */ + int _l_radi_data; + /** + * @brief Number of radiometric compensation records + */ + int _n_radi_comp; + /** + * @brief Radiometric compensation record length, bytes + */ + int _l_radi_comp; + /** + * @brief Number of data quality summary records + */ + int _n_qual_sum; + /** + * @brief Data quality summary record length, bytes + */ + int _l_qual_sum; + /** + * @brief Number of data histogram records + */ + int _n_data_his; + /** + * @brief Data histogram record length, bytes + */ + int _l_data_his; + /** + * @brief Number of range spectra records + */ + int _n_rang_spec; + /** + * @brief Range spectra record length, bytes + */ + int _l_rang_spec; + /** + * @brief Number of DEM descriptor records + */ + int _n_dem_desc; + /** + * @brief DEM desc record length, bytes + */ + int _l_dem_desc; + /** + * @brief Number of RADAR par records + */ + int _n_radar_par; + /** + * @brief RADAR par record length, bytes + */ + int _l_radar_par; + /** + * @brief Number of annotation data records + */ + int _n_anno_data; + /** + * @brief Annotation data record length, bytes + */ + int _l_anno_data; + /** + * @brief Number of processing parameter records + */ + int _n_det_proc; + /** + * @brief Processing parameter record length, bytes + */ + int _l_det_proc; + /** + * @brief Number of calibration records + */ + int _n_cal; + /** + * @brief Calibration record length, bytes + */ + int _l_cal; + /** + * @brief Number of GCP records + */ + int _n_gcp; + /** + * @brief GCP record length, bytes + */ + int _l_gcp; + + /** + * @brief Number of facility data records + */ + int _n_fac_data; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data; + + /** + * @brief Number of facility data records + */ + int _n_fac_data2; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data2; + + /** + * @brief Number of facility data records + */ + int _n_fac_data3; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data3; + + /** + * @brief Number of facility data records + */ + int _n_fac_data4; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data4; + + /** + * @brief Number of facility data records + */ + int _n_fac_data5; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data5; + + /** + * @brief Number of facility data records + */ + int _n_fac_data6; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data6; + + /** + * @brief Number of facility data records + */ + int _n_fac_data7; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data7; + + /** + * @brief Number of facility data records + */ + int _n_fac_data8; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data8; + + /** + * @brief Number of facility data records + */ + int _n_fac_data9; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data9; + + /** + * @brief Number of facility data records + */ + int _n_fac_data10; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data10; + + /** + * @brief Number of facility data records + */ + int _n_fac_data11; + /** + * @brief Fac data record length, bytes + */ + int _l_fac_data11; private: }; - +} #endif \ No newline at end of file diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp index 1c4bb26e36d5f45f4b9dba16f041665bc9811409..3ec227448909bf504fdc6770b0b9a68663da30f8 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp @@ -7,6 +7,9 @@ // #include <AlosSarMapProjectionData.h>// #include <AlosSarFacilityData.h> +namespace ossimplugins +{ + const int AlosSarLeader::AlosSarFacilityDataID = 17; const int AlosSarLeader::AlosSarPlatformPositionDataID = 3; // const int AlosSarLeader::AlosSarMapProjectionDataID = 3; // @@ -19,103 +22,103 @@ AlosSarLeader::AlosSarLeader() AlosSarLeader::~AlosSarLeader() { - ClearRecords(); + ClearRecords(); } std::ostream& operator<<(std::ostream& os, const AlosSarLeader& data) { - std::map<int, AlosSarRecord*>::const_iterator it = data._records.begin(); - while(it != data._records.end()) - { - (*it).second->Write(os); - ++it; - } - return os; + std::map<int, AlosSarRecord*>::const_iterator it = data._records.begin(); + while(it != data._records.end()) + { + (*it).second->Write(os); + ++it; + } + return os; } std::istream& operator>>(std::istream& is, AlosSarLeader& data) { - AlosSarLeaderFactory factory; - - data.ClearRecords(); - - AlosSarRecordHeader header; - bool eof = false; - while(!eof) - { - is>>header; - if(is.eof()) - { - eof = true; - } - else - { - AlosSarRecord* record = factory.Instanciate(header.get_rec_seq()); - if (record != NULL) - { - record->Read(is); - data._records[header.get_rec_seq()] = record; - } - else - { - char* buff = new char[header.get_length()-12]; - is.read(buff, header.get_length()-12); - delete buff; - } - } - } - return is; + AlosSarLeaderFactory factory; + + data.ClearRecords(); + + AlosSarRecordHeader header; + bool eof = false; + while(!eof) + { + is>>header; + if(is.eof()) + { + eof = true; + } + else + { + AlosSarRecord* record = factory.Instanciate(header.get_rec_seq()); + if (record != NULL) + { + record->Read(is); + data._records[header.get_rec_seq()] = record; + } + else + { + char* buff = new char[header.get_length()-12]; + is.read(buff, header.get_length()-12); + delete buff; + } + } + } + return is; } AlosSarLeader::AlosSarLeader(const AlosSarLeader& rhs) { - std::map<int, AlosSarRecord*>::const_iterator it = rhs._records.begin(); - while(it != rhs._records.end()) - { - _records[(*it).first] = (*it).second->Clone(); - ++it; - } + std::map<int, AlosSarRecord*>::const_iterator it = rhs._records.begin(); + while(it != rhs._records.end()) + { + _records[(*it).first] = (*it).second->Clone(); + ++it; + } } AlosSarLeader& AlosSarLeader::operator=(const AlosSarLeader& rhs) { - ClearRecords(); - std::map<int, AlosSarRecord*>::const_iterator it = rhs._records.begin(); - while(it != rhs._records.end()) - { - _records[(*it).first] = (*it).second->Clone(); - ++it; - } - - return *this; + ClearRecords(); + std::map<int, AlosSarRecord*>::const_iterator it = rhs._records.begin(); + while(it != rhs._records.end()) + { + _records[(*it).first] = (*it).second->Clone(); + ++it; + } + + return *this; } void AlosSarLeader::ClearRecords() { - std::map<int, AlosSarRecord*>::const_iterator it = _records.begin(); - while(it != _records.end()) - { - delete (*it).second; - ++it; - } - _records.clear(); + std::map<int, AlosSarRecord*>::const_iterator it = _records.begin(); + while(it != _records.end()) + { + delete (*it).second; + ++it; + } + _records.clear(); } AlosSarFacilityData * AlosSarLeader::get_AlosSarFacilityData() { - return (AlosSarFacilityData*)_records[AlosSarFacilityDataID]; + return (AlosSarFacilityData*)_records[AlosSarFacilityDataID]; } AlosSarPlatformPositionData * AlosSarLeader::get_AlosSarPlatformPositionData() { - return (AlosSarPlatformPositionData*)_records[AlosSarPlatformPositionDataID]; + return (AlosSarPlatformPositionData*)_records[AlosSarPlatformPositionDataID]; } /* AlosSarMapProjectionData * AlosSarLeader::get_AlosSarMapProjectionData() { - return (AlosSarMapProjectionData*)_records[AlosSarMapProjectionDataID]; + return (AlosSarMapProjectionData*)_records[AlosSarMapProjectionDataID]; } */ @@ -124,10 +127,12 @@ AlosSarPlatformPositionData * AlosSarLeader::get_AlosSarPlatformPositionData() AlosSarDataSetSummary * AlosSarLeader::get_AlosSarDataSetSummary() { - return (AlosSarDataSetSummary*)_records[AlosSarDataSetSummaryID]; + return (AlosSarDataSetSummary*)_records[AlosSarDataSetSummaryID]; } AlosSarFileDescriptor * AlosSarLeader::get_AlosSarFileDescriptor() { - return (AlosSarFileDescriptor*)_records[AlosSarFileDescriptorID]; + return (AlosSarFileDescriptor*)_records[AlosSarFileDescriptorID]; +} + } diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.h index fe4c1335135220e3eeb40c6e2f49b44d4eddab0d..99f6c593ec96aa2538ad3749b0c31ef30391d206 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.h @@ -10,6 +10,9 @@ #include <map> +namespace ossimplugins +{ + class AlosSarPlatformPositionData; class AlosSarMapProjectionData; class AlosSarDataSetSummary; @@ -26,56 +29,56 @@ class AlosSarFacilityData; class AlosSarLeader { public: - /** - * @brief Constructor - */ - AlosSarLeader(); + /** + * @brief Constructor + */ + AlosSarLeader(); - /** - * @brief Destructor - */ - ~AlosSarLeader(); + /** + * @brief Destructor + */ + ~AlosSarLeader(); - /** - * @brief This function write the AlosSarLeader in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarLeader& data); + /** + * @brief This function write the AlosSarLeader in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarLeader& data); - /** - * @brief This function read a AlosSarLeader from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarLeader& data); + /** + * @brief This function read a AlosSarLeader from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarLeader& data); - /** - * @brief Copy constructor - */ - AlosSarLeader(const AlosSarLeader& rhs); + /** + * @brief Copy constructor + */ + AlosSarLeader(const AlosSarLeader& rhs); - /** - * @brief Copy operator - */ - AlosSarLeader& operator=(const AlosSarLeader& rhs); + /** + * @brief Copy operator + */ + AlosSarLeader& operator=(const AlosSarLeader& rhs); - /** - * @brief Remove all the previous records from the AlosSarLeader - */ - void ClearRecords(); - AlosSarFacilityData * get_AlosSarFacilityData(); - AlosSarPlatformPositionData * get_AlosSarPlatformPositionData(); -// AlosSarMapProjectionData * get_AlosSarMapProjectionData(); - AlosSarDataSetSummary * get_AlosSarDataSetSummary(); - AlosSarFileDescriptor * get_AlosSarFileDescriptor(); + /** + * @brief Remove all the previous records from the AlosSarLeader + */ + void ClearRecords(); + AlosSarFacilityData * get_AlosSarFacilityData(); + AlosSarPlatformPositionData * get_AlosSarPlatformPositionData(); +// AlosSarMapProjectionData * get_AlosSarMapProjectionData(); + AlosSarDataSetSummary * get_AlosSarDataSetSummary(); + AlosSarFileDescriptor * get_AlosSarFileDescriptor(); protected: - std::map<int, AlosSarRecord*> _records; + std::map<int, AlosSarRecord*> _records; - static const int AlosSarFacilityDataID; - static const int AlosSarPlatformPositionDataID; -// static const int AlosSarMapProjectionDataID; - static const int AlosSarDataSetSummaryID; - static const int AlosSarFileDescriptorID; + static const int AlosSarFacilityDataID; + static const int AlosSarPlatformPositionDataID; +// static const int AlosSarMapProjectionDataID; + static const int AlosSarDataSetSummaryID; + static const int AlosSarFileDescriptorID; private: }; - -#endif \ No newline at end of file +} +#endif diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.cpp index cc6161d28dda267405989b810d4c768d34fd5b09..a5e6df4d3db88ddcda7924977665fc12ea473f56 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.cpp @@ -6,16 +6,21 @@ #include <AlosSarPlatformPositionData.h> #include <AlosSarFacilityData.h> +namespace ossimplugins +{ + AlosSarLeaderFactory::AlosSarLeaderFactory() { - RegisterRecord(17, new AlosSarFacilityData()); - RegisterRecord(3, new AlosSarPlatformPositionData()); -// RegisterRecord(3, new AlosSarMapProjectionData());// - RegisterRecord(2, new AlosSarDataSetSummary()); - RegisterRecord(1, new AlosSarFileDescriptor()); + RegisterRecord(17, new AlosSarFacilityData()); + RegisterRecord(3, new AlosSarPlatformPositionData()); +// RegisterRecord(3, new AlosSarMapProjectionData());// + RegisterRecord(2, new AlosSarDataSetSummary()); + RegisterRecord(1, new AlosSarFileDescriptor()); } AlosSarLeaderFactory::~AlosSarLeaderFactory() { -} \ No newline at end of file +} + +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.h index 0d3f642328fa716dc0a4183d6745c1412975b9db..622e6bb63afe935ec485c753e22d59b4b785fff9 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeaderFactory.h @@ -4,6 +4,10 @@ #include <AlosSarRecordFactory.h> #include <map> + +namespace ossimplugins +{ + /** * @ingroup AlosSarLeaderFile * @brief This class is a facory able to construct Record base classes @@ -14,14 +18,14 @@ class AlosSarLeaderFactory : public AlosSarRecordFactory { public: - /** - * @brief Contstructor - */ - AlosSarLeaderFactory(); - /** - * @brief Destructor - */ - ~AlosSarLeaderFactory(); + /** + * @brief Contstructor + */ + AlosSarLeaderFactory(); + /** + * @brief Destructor + */ + ~AlosSarLeaderFactory(); protected: @@ -29,5 +33,5 @@ protected: private: }; - -#endif \ No newline at end of file +} +#endif diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.cpp index 02e4124f4a9b86f33b530991452a6fa392f9655c..867d6caa48a4fc497d07c0c9d3b59ab781557e3b 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.cpp @@ -1,5 +1,8 @@ #include <AlosSarMapProjectionData.h> +namespace ossimplugins +{ + AlosSarMapProjectionData::AlosSarMapProjectionData() : AlosSarRecord("map_proj_data_rec") { } @@ -10,185 +13,186 @@ AlosSarMapProjectionData::~AlosSarMapProjectionData() std::ostream& operator<<(std::ostream& os, const AlosSarMapProjectionData& data) { - os<<"map_proj_des:"<<data._map_proj_des.c_str()<<std::endl; + os<<"map_proj_des:"<<data._map_proj_des.c_str()<<std::endl; - os<<"num_pix_in_line:"<<data._num_pix_in_line<<std::endl; + os<<"num_pix_in_line:"<<data._num_pix_in_line<<std::endl; - os<<"num_lines:"<<data._num_lines<<std::endl; + os<<"num_lines:"<<data._num_lines<<std::endl; - os<<"nom_interpixel_dist:"<<data._nom_interpixel_dist<<std::endl; + os<<"nom_interpixel_dist:"<<data._nom_interpixel_dist<<std::endl; - os<<"nom_interline_dist:"<<data._nom_interline_dist<<std::endl; + os<<"nom_interline_dist:"<<data._nom_interline_dist<<std::endl; - os<<"orientation_at_center:"<<data._orientation_at_center<<std::endl; + os<<"orientation_at_center:"<<data._orientation_at_center<<std::endl; - os<<"orbit_incl:"<<data._orbit_incl<<std::endl; + os<<"orbit_incl:"<<data._orbit_incl<<std::endl; - os<<"asc_node_long:"<<data._asc_node_long<<std::endl; + os<<"asc_node_long:"<<data._asc_node_long<<std::endl; - os<<"platform_heading:"<<data._platform_heading<<std::endl; + os<<"platform_heading:"<<data._platform_heading<<std::endl; - os<<"name_of_ref_ellipsoid:"<<data._name_of_ref_ellipsoid.c_str()<<std::endl; + os<<"name_of_ref_ellipsoid:"<<data._name_of_ref_ellipsoid.c_str()<<std::endl; - os<<"semi_maj_axis:"<<data._semi_maj_axis<<std::endl; + os<<"semi_maj_axis:"<<data._semi_maj_axis<<std::endl; - os<<"semi_min_axis:"<<data._semi_min_axis<<std::endl; + os<<"semi_min_axis:"<<data._semi_min_axis<<std::endl; - os<<"first_line_first_pixel_lat:"<<data._first_line_first_pixel_lat<<std::endl; + os<<"first_line_first_pixel_lat:"<<data._first_line_first_pixel_lat<<std::endl; - os<<"first_line_first_pixel_lon:"<<data._first_line_first_pixel_lon<<std::endl; + os<<"first_line_first_pixel_lon:"<<data._first_line_first_pixel_lon<<std::endl; - os<<"first_line_last_pixel_lat:"<<data._first_line_last_pixel_lat<<std::endl; + os<<"first_line_last_pixel_lat:"<<data._first_line_last_pixel_lat<<std::endl; - os<<"first_line_last_pixel_lon:"<<data._first_line_last_pixel_lon<<std::endl; + os<<"first_line_last_pixel_lon:"<<data._first_line_last_pixel_lon<<std::endl; - os<<"last_line_last_pixel_lat:"<<data._last_line_last_pixel_lat<<std::endl; + os<<"last_line_last_pixel_lat:"<<data._last_line_last_pixel_lat<<std::endl; - os<<"last_line_last_pixel_lon:"<<data._last_line_last_pixel_lon<<std::endl; + os<<"last_line_last_pixel_lon:"<<data._last_line_last_pixel_lon<<std::endl; - os<<"last_line_first_pixel_lat:"<<data._last_line_first_pixel_lat<<std::endl; + os<<"last_line_first_pixel_lat:"<<data._last_line_first_pixel_lat<<std::endl; - os<<"last_line_first_pixel_lon:"<<data._last_line_first_pixel_lon<<std::endl; + os<<"last_line_first_pixel_lon:"<<data._last_line_first_pixel_lon<<std::endl; - return os; + return os; } std::istream& operator>>(std::istream& is, AlosSarMapProjectionData& data) { - char buf16[17]; - buf16[16]='\0'; - char buf32[33]; - buf32[32] = '\0'; - char buf8[9]; - buf8[8] = '\0'; - char buf4[5]; - buf4[4] = '\0'; + char buf16[17]; + buf16[16]='\0'; + char buf32[33]; + buf32[32] = '\0'; + char buf8[9]; + buf8[8] = '\0'; + char buf4[5]; + buf4[4] = '\0'; - is.read(buf16,16); + is.read(buf16,16); - is.read(buf32,32); - data._map_proj_des = buf32; + is.read(buf32,32); + data._map_proj_des = buf32; - is.read(buf16,16); - data._num_pix_in_line = atoi(buf16); + is.read(buf16,16); + data._num_pix_in_line = atoi(buf16); - is.read(buf16,16 ); - data._num_lines = atoi(buf16); + is.read(buf16,16 ); + data._num_lines = atoi(buf16); - is.read(buf16,16); - data._nom_interpixel_dist = atof(buf16); + is.read(buf16,16); + data._nom_interpixel_dist = atof(buf16); - is.read(buf16,16); - data._nom_interline_dist = atof(buf16); + is.read(buf16,16); + data._nom_interline_dist = atof(buf16); - is.read(buf16,16); - data._orientation_at_center = atof(buf16); + is.read(buf16,16); + data._orientation_at_center = atof(buf16); - is.read(buf16,16); - data._orbit_incl = atof(buf16); + is.read(buf16,16); + data._orbit_incl = atof(buf16); - is.read(buf16,16); - data._asc_node_long = atof(buf16); + is.read(buf16,16); + data._asc_node_long = atof(buf16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf16,16); + is.read(buf16,16); - is.read(buf16,16); - data._platform_heading = atof(buf16); + is.read(buf16,16); + data._platform_heading = atof(buf16); - is.read(buf32,32); - data._name_of_ref_ellipsoid = buf32; + is.read(buf32,32); + data._name_of_ref_ellipsoid = buf32; - is.read(buf16,16); - data._semi_maj_axis = atof(buf16); + is.read(buf16,16); + data._semi_maj_axis = atof(buf16); - is.read(buf16,16); - data._semi_min_axis = atof(buf16); + is.read(buf16,16); + data._semi_min_axis = atof(buf16); - char buf772[772]; - is.read(buf772,772); + char buf772[772]; + is.read(buf772,772); - is.read(buf16,16); - data._first_line_first_pixel_lat = atof(buf16); + is.read(buf16,16); + data._first_line_first_pixel_lat = atof(buf16); - is.read(buf16,16); - data._first_line_first_pixel_lon = atof(buf16); + is.read(buf16,16); + data._first_line_first_pixel_lon = atof(buf16); - is.read(buf16,16); - data._first_line_last_pixel_lat = atof(buf16); + is.read(buf16,16); + data._first_line_last_pixel_lat = atof(buf16); - is.read(buf16,16); - data._first_line_last_pixel_lon = atof(buf16); + is.read(buf16,16); + data._first_line_last_pixel_lon = atof(buf16); - is.read(buf16,16); - data._last_line_last_pixel_lat = atof(buf16); + is.read(buf16,16); + data._last_line_last_pixel_lat = atof(buf16); - is.read(buf16,16); - data._last_line_last_pixel_lon = atof(buf16); + is.read(buf16,16); + data._last_line_last_pixel_lon = atof(buf16); - is.read(buf16,16); - data._last_line_first_pixel_lat = atof(buf16); + is.read(buf16,16); + data._last_line_first_pixel_lat = atof(buf16); - is.read(buf16,16); - data._last_line_first_pixel_lon = atof(buf16); + is.read(buf16,16); + data._last_line_first_pixel_lon = atof(buf16); - char buf420[420]; - is.read(buf420,420); + char buf420[420]; + is.read(buf420,420); - return is; + return is; } AlosSarMapProjectionData::AlosSarMapProjectionData(const AlosSarMapProjectionData& rhs): - AlosSarRecord(rhs), - _map_proj_des(rhs._map_proj_des), - _num_pix_in_line(rhs._num_pix_in_line), - _num_lines(rhs._num_lines), - _nom_interpixel_dist(rhs._nom_interpixel_dist), - _nom_interline_dist(rhs._nom_interline_dist), - _orientation_at_center(rhs._orientation_at_center), - _orbit_incl(rhs._orbit_incl), - _asc_node_long(rhs._asc_node_long), - _platform_heading(rhs._platform_heading), - _name_of_ref_ellipsoid(rhs._name_of_ref_ellipsoid), - _semi_maj_axis(rhs._semi_maj_axis), - _semi_min_axis(rhs._semi_min_axis), - _first_line_first_pixel_lat(rhs._first_line_first_pixel_lat), - _first_line_first_pixel_lon(rhs._first_line_first_pixel_lon), - _first_line_last_pixel_lat(rhs._first_line_last_pixel_lat), - _first_line_last_pixel_lon(rhs._first_line_last_pixel_lon), - _last_line_last_pixel_lat(rhs._last_line_last_pixel_lat), - _last_line_last_pixel_lon(rhs._last_line_last_pixel_lon), - _last_line_first_pixel_lat(rhs._last_line_first_pixel_lat), - _last_line_first_pixel_lon(rhs._last_line_first_pixel_lon) - {} + AlosSarRecord(rhs), + _map_proj_des(rhs._map_proj_des), + _num_pix_in_line(rhs._num_pix_in_line), + _num_lines(rhs._num_lines), + _nom_interpixel_dist(rhs._nom_interpixel_dist), + _nom_interline_dist(rhs._nom_interline_dist), + _orientation_at_center(rhs._orientation_at_center), + _orbit_incl(rhs._orbit_incl), + _asc_node_long(rhs._asc_node_long), + _platform_heading(rhs._platform_heading), + _name_of_ref_ellipsoid(rhs._name_of_ref_ellipsoid), + _semi_maj_axis(rhs._semi_maj_axis), + _semi_min_axis(rhs._semi_min_axis), + _first_line_first_pixel_lat(rhs._first_line_first_pixel_lat), + _first_line_first_pixel_lon(rhs._first_line_first_pixel_lon), + _first_line_last_pixel_lat(rhs._first_line_last_pixel_lat), + _first_line_last_pixel_lon(rhs._first_line_last_pixel_lon), + _last_line_last_pixel_lat(rhs._last_line_last_pixel_lat), + _last_line_last_pixel_lon(rhs._last_line_last_pixel_lon), + _last_line_first_pixel_lat(rhs._last_line_first_pixel_lat), + _last_line_first_pixel_lon(rhs._last_line_first_pixel_lon) + {} AlosSarMapProjectionData& AlosSarMapProjectionData::operator=(const AlosSarMapProjectionData& rhs) { - _map_proj_des = rhs._map_proj_des; - _num_pix_in_line = rhs._num_pix_in_line; - _num_lines = rhs._num_lines; - _nom_interpixel_dist = rhs._nom_interpixel_dist; - _nom_interline_dist = rhs._nom_interline_dist; - _orientation_at_center = rhs._orientation_at_center; - _orbit_incl = rhs._orbit_incl; - _asc_node_long = rhs._asc_node_long; - _platform_heading = rhs._platform_heading; - _name_of_ref_ellipsoid = rhs._name_of_ref_ellipsoid; - _semi_maj_axis = rhs._semi_maj_axis; - _semi_min_axis = rhs._semi_min_axis; - _first_line_first_pixel_lat = rhs._first_line_first_pixel_lat; - _first_line_first_pixel_lon = rhs._first_line_first_pixel_lon; - _first_line_last_pixel_lat = rhs._first_line_last_pixel_lat; - _first_line_last_pixel_lon = rhs._first_line_last_pixel_lon; - _last_line_last_pixel_lat = rhs._last_line_last_pixel_lat; - _last_line_last_pixel_lon = rhs._last_line_last_pixel_lon; - _last_line_first_pixel_lat = rhs._last_line_first_pixel_lat; - _last_line_first_pixel_lon = rhs._last_line_first_pixel_lon; - - return *this; + _map_proj_des = rhs._map_proj_des; + _num_pix_in_line = rhs._num_pix_in_line; + _num_lines = rhs._num_lines; + _nom_interpixel_dist = rhs._nom_interpixel_dist; + _nom_interline_dist = rhs._nom_interline_dist; + _orientation_at_center = rhs._orientation_at_center; + _orbit_incl = rhs._orbit_incl; + _asc_node_long = rhs._asc_node_long; + _platform_heading = rhs._platform_heading; + _name_of_ref_ellipsoid = rhs._name_of_ref_ellipsoid; + _semi_maj_axis = rhs._semi_maj_axis; + _semi_min_axis = rhs._semi_min_axis; + _first_line_first_pixel_lat = rhs._first_line_first_pixel_lat; + _first_line_first_pixel_lon = rhs._first_line_first_pixel_lon; + _first_line_last_pixel_lat = rhs._first_line_last_pixel_lat; + _first_line_last_pixel_lon = rhs._first_line_last_pixel_lon; + _last_line_last_pixel_lat = rhs._last_line_last_pixel_lat; + _last_line_last_pixel_lon = rhs._last_line_last_pixel_lon; + _last_line_first_pixel_lat = rhs._last_line_first_pixel_lat; + _last_line_first_pixel_lon = rhs._last_line_first_pixel_lon; + + return *this; +} } diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.h index e6336a0e0a1f4794d3df1f2556551e149d0aa5d2..fee099035a6e7a9a0074d892b0700ac7e133e039 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarMapProjectionData.h @@ -5,6 +5,10 @@ #include <cstdlib> #include <AlosSarRecordHeader.h> #include <AlosSarRecord.h> + +namespace ossimplugins +{ + /** * @ingroup AlosSarMapProjectionDataRecord * @brief This class is able to read the SAR leader data set summary record of the leader file @@ -15,294 +19,294 @@ class AlosSarMapProjectionData : public AlosSarRecord { public: - /** - * @brief Constructor - */ - AlosSarMapProjectionData(); + /** + * @brief Constructor + */ + AlosSarMapProjectionData(); - /** - * @brief Destructor - */ - ~AlosSarMapProjectionData(); + /** + * @brief Destructor + */ + ~AlosSarMapProjectionData(); - /** - * @brief This function write the AlosSarMapProjectionData in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarMapProjectionData& data); + /** + * @brief This function write the AlosSarMapProjectionData in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarMapProjectionData& data); - /** - * @brief This function read a AlosSarMapProjectionData from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarMapProjectionData& data); + /** + * @brief This function read a AlosSarMapProjectionData from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarMapProjectionData& data); - /** - * @brief Copy constructor - */ - AlosSarMapProjectionData(const AlosSarMapProjectionData& rhs); + /** + * @brief Copy constructor + */ + AlosSarMapProjectionData(const AlosSarMapProjectionData& rhs); - /** - * @brief Copy operator - */ - AlosSarMapProjectionData& operator=(const AlosSarMapProjectionData& rhs); + /** + * @brief Copy operator + */ + AlosSarMapProjectionData& operator=(const AlosSarMapProjectionData& rhs); - /** - * @brief This function is able to create a new instance of the class - */ - AlosSarRecord* Instanciate() - { - return new AlosSarMapProjectionData(); - }; + /** + * @brief This function is able to create a new instance of the class + */ + AlosSarRecord* Instanciate() + { + return new AlosSarMapProjectionData(); + }; - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - AlosSarRecord* Clone() - { - return new AlosSarMapProjectionData(*this); - }; + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + AlosSarRecord* Clone() + { + return new AlosSarMapProjectionData(*this); + }; - /** - * @brief Read the class data from a stream - */ - void Read(std::istream& is) - { - is>>*this; - }; + /** + * @brief Read the class data from a stream + */ + void Read(std::istream& is) + { + is>>*this; + }; - /** - * @brief Write the class to a stream - */ - void Write(std::ostream& os) - { - os<<*this; - }; + /** + * @brief Write the class to a stream + */ + void Write(std::ostream& os) + { + os<<*this; + }; - /** - * @brief map_proj_des - */ - std::string get_map_proj_des() - { - return _map_proj_des; - }; - /** - * @brief num_pix_in_line - */ - int get_num_pix_in_line() - { - return _num_pix_in_line; - }; - /** - * @brief num_lines - */ - int get_num_lines() - { - return _num_lines; - }; - /** - * @brief nom_interpixel_dist - */ - double get_nom_interpixel_dist() - { - return _nom_interpixel_dist; - }; - /** - * @brief nom_interline_dist - */ - double get_nom_interline_dist() - { - return _nom_interline_dist; - }; - /** - * @brief orientation_at_center - */ - double get_orientation_at_center() - { - return _orientation_at_center; - }; - /** - * @brief orbit_incl - */ - double get_orbit_incl() - { - return _orbit_incl; - }; - /** - * @brief asc_node_long - */ - double get_asc_node_long() - { - return _asc_node_long; - }; - /** - * @brief platform_heading - */ - double get_platform_heading() - { - return _platform_heading; - }; - /** - * @brief name_of_ref_ellipsoid - */ - std::string get_name_of_ref_ellipsoid() - { - return _name_of_ref_ellipsoid; - }; - /** - * @brief semi_maj_axis - */ - double get_semi_maj_axis() - { - return _semi_maj_axis; - }; - /** - * @brief semi_min_axis - */ - double get_semi_min_axis() - { - return _semi_min_axis; - }; - /** - * @brief first_line_first_pixel _lat - */ - double get_first_line_first_pixel_lat() - { - return _first_line_first_pixel_lat; - }; - /** - * @brief first_line_first_pixel_lon - */ - double get_first_line_first_pixel_lon() - { - return _first_line_first_pixel_lon; - }; - /** - * @brief first_line_last_pixel _lat - */ - double get_first_line_last_pixel_lat() - { - return _first_line_last_pixel_lat; - }; - /** - * @brief first_line_last_pixel_lon - */ - double get_first_line_last_pixel_lon() - { - return _first_line_last_pixel_lon; - }; - /** - * @brief last_line_last_pixel_lat - */ - double get_last_line_last_pixel_lat() - { - return _last_line_last_pixel_lat; - }; - /** - * @brief last_line_last_pixel_lon - */ - double get_last_line_last_pixel_lon() - { - return _last_line_last_pixel_lon; - }; - /** - * @brief last_line_first_pixel_lat - */ - double get_last_line_first_pixel_lat() - { - return _last_line_first_pixel_lat; - }; - /** - * @brief last_line_first_pixel_lon - */ - double get_last_line_first_pixel_lon() - { - return _last_line_first_pixel_lon; - }; + /** + * @brief map_proj_des + */ + std::string get_map_proj_des() + { + return _map_proj_des; + }; + /** + * @brief num_pix_in_line + */ + int get_num_pix_in_line() + { + return _num_pix_in_line; + }; + /** + * @brief num_lines + */ + int get_num_lines() + { + return _num_lines; + }; + /** + * @brief nom_interpixel_dist + */ + double get_nom_interpixel_dist() + { + return _nom_interpixel_dist; + }; + /** + * @brief nom_interline_dist + */ + double get_nom_interline_dist() + { + return _nom_interline_dist; + }; + /** + * @brief orientation_at_center + */ + double get_orientation_at_center() + { + return _orientation_at_center; + }; + /** + * @brief orbit_incl + */ + double get_orbit_incl() + { + return _orbit_incl; + }; + /** + * @brief asc_node_long + */ + double get_asc_node_long() + { + return _asc_node_long; + }; + /** + * @brief platform_heading + */ + double get_platform_heading() + { + return _platform_heading; + }; + /** + * @brief name_of_ref_ellipsoid + */ + std::string get_name_of_ref_ellipsoid() + { + return _name_of_ref_ellipsoid; + }; + /** + * @brief semi_maj_axis + */ + double get_semi_maj_axis() + { + return _semi_maj_axis; + }; + /** + * @brief semi_min_axis + */ + double get_semi_min_axis() + { + return _semi_min_axis; + }; + /** + * @brief first_line_first_pixel _lat + */ + double get_first_line_first_pixel_lat() + { + return _first_line_first_pixel_lat; + }; + /** + * @brief first_line_first_pixel_lon + */ + double get_first_line_first_pixel_lon() + { + return _first_line_first_pixel_lon; + }; + /** + * @brief first_line_last_pixel _lat + */ + double get_first_line_last_pixel_lat() + { + return _first_line_last_pixel_lat; + }; + /** + * @brief first_line_last_pixel_lon + */ + double get_first_line_last_pixel_lon() + { + return _first_line_last_pixel_lon; + }; + /** + * @brief last_line_last_pixel_lat + */ + double get_last_line_last_pixel_lat() + { + return _last_line_last_pixel_lat; + }; + /** + * @brief last_line_last_pixel_lon + */ + double get_last_line_last_pixel_lon() + { + return _last_line_last_pixel_lon; + }; + /** + * @brief last_line_first_pixel_lat + */ + double get_last_line_first_pixel_lat() + { + return _last_line_first_pixel_lat; + }; + /** + * @brief last_line_first_pixel_lon + */ + double get_last_line_first_pixel_lon() + { + return _last_line_first_pixel_lon; + }; protected: - /** - * @brief map_proj_des - */ - std::string _map_proj_des; - /** - * @brief num_pix_in_line - */ - int _num_pix_in_line; - /** - * @brief num_lines - */ - int _num_lines; - /** - * @brief nom_interpixel_dist - */ - double _nom_interpixel_dist; - /** - * @brief nom_interline_dist - */ - double _nom_interline_dist; - /** - * @brief orientation_at_center - */ - double _orientation_at_center; - /** - * @brief orbit_incl - */ - double _orbit_incl; - /** - * @brief asc_node_long - */ - double _asc_node_long; - /** - * @brief platform_heading - */ - double _platform_heading; - /** - * @brief name_of_ref_ellipsoid - */ - std::string _name_of_ref_ellipsoid; - /** - * @brief semi_maj_axis - */ - double _semi_maj_axis; - /** - * @brief semi_min_axis - */ - double _semi_min_axis; - /** - * @brief first_line_first_pixel_lat - */ - double _first_line_first_pixel_lat; - /** - * @brief first_line_first_pixel_lon - */ - double _first_line_first_pixel_lon; - /** - * @brief first_line_last_pixel_lat - */ - double _first_line_last_pixel_lat; - /** - * @brief first_line_last_pixel_lon - */ - double _first_line_last_pixel_lon; - /** - * @brief last_line_last_pixel_lat - */ - double _last_line_last_pixel_lat; - /** - * @brief last_line_last_pixel_lon - */ - double _last_line_last_pixel_lon; - /** - * @brief last_line_first_pixel_lat - */ - double _last_line_first_pixel_lat; - /** - * @brief last_line_first_pixel_lon - */ - double _last_line_first_pixel_lon; + /** + * @brief map_proj_des + */ + std::string _map_proj_des; + /** + * @brief num_pix_in_line + */ + int _num_pix_in_line; + /** + * @brief num_lines + */ + int _num_lines; + /** + * @brief nom_interpixel_dist + */ + double _nom_interpixel_dist; + /** + * @brief nom_interline_dist + */ + double _nom_interline_dist; + /** + * @brief orientation_at_center + */ + double _orientation_at_center; + /** + * @brief orbit_incl + */ + double _orbit_incl; + /** + * @brief asc_node_long + */ + double _asc_node_long; + /** + * @brief platform_heading + */ + double _platform_heading; + /** + * @brief name_of_ref_ellipsoid + */ + std::string _name_of_ref_ellipsoid; + /** + * @brief semi_maj_axis + */ + double _semi_maj_axis; + /** + * @brief semi_min_axis + */ + double _semi_min_axis; + /** + * @brief first_line_first_pixel_lat + */ + double _first_line_first_pixel_lat; + /** + * @brief first_line_first_pixel_lon + */ + double _first_line_first_pixel_lon; + /** + * @brief first_line_last_pixel_lat + */ + double _first_line_last_pixel_lat; + /** + * @brief first_line_last_pixel_lon + */ + double _first_line_last_pixel_lon; + /** + * @brief last_line_last_pixel_lat + */ + double _last_line_last_pixel_lat; + /** + * @brief last_line_last_pixel_lon + */ + double _last_line_last_pixel_lon; + /** + * @brief last_line_first_pixel_lat + */ + double _last_line_first_pixel_lat; + /** + * @brief last_line_first_pixel_lon + */ + double _last_line_first_pixel_lon; private: }; - -#endif \ No newline at end of file +} +#endif diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.cpp index 009a37de9355fac8f37b3450e0c178317484bbee..f0367e2e0fc82ae390fa7df3b6d01a41d145251b 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.cpp @@ -1,5 +1,8 @@ #include <AlosSarPlatformPositionData.h> +namespace ossimplugins +{ + AlosSarPlatformPositionData::AlosSarPlatformPositionData() : AlosSarRecord("pos_data_rec") { @@ -11,14 +14,14 @@ AlosSarPlatformPositionData::~AlosSarPlatformPositionData() std::ostream& operator<<(std::ostream& os, const AlosSarPlatformPositionData& data) { - os<<"orbit_ele_desg:"<<data._orbit_ele_desg.c_str()<<std::endl; + os<<"orbit_ele_desg:"<<data._orbit_ele_desg.c_str()<<std::endl; - for(int i=0;i<6;i++) - { - os<<"orbit_ele["<<i<<"]:"<<data._orbit_ele[i]<<std::endl; - } + for(int i=0;i<6;i++) + { + os<<"orbit_ele["<<i<<"]:"<<data._orbit_ele[i]<<std::endl; + } - os<<"ndata:"<<data._ndata<<std::endl; + os<<"ndata:"<<data._ndata<<std::endl; os<<"year:"<<data._year<<std::endl; @@ -42,102 +45,102 @@ std::ostream& operator<<(std::ostream& os, const AlosSarPlatformPositionData& da os<<"rad_poserr:"<<data._rad_poserr<<std::endl; - os<<"alt_velerr:"<<data._alt_velerr<<std::endl; + os<<"alt_velerr:"<<data._alt_velerr<<std::endl; os<<"crt_velerr:"<<data._crt_velerr<<std::endl; os<<"rad_velerr:"<<data._rad_velerr<<std::endl; - for (int i=0;i<64;i++) - { - os<<"pos_vect["<<i<<"]:"<<data._pos_vect[i]<<std::endl; - } + for (int i=0;i<64;i++) + { + os<<"pos_vect["<<i<<"]:"<<data._pos_vect[i]<<std::endl; + } - return os; + return os; } std::istream& operator>>(std::istream& is, AlosSarPlatformPositionData& data) { - char buf[1207]; - buf[1206] = '\0'; + char buf[1207]; + buf[1206] = '\0'; - is.read(buf,32); - buf[32] = '\0'; - data._orbit_ele_desg = buf; + is.read(buf,32); + buf[32] = '\0'; + data._orbit_ele_desg = buf; - for(int i=0;i<6;i++) - { - is.read(buf,16); - buf[16] = '\0'; - data._orbit_ele[i] = atof(buf); - } + for(int i=0;i<6;i++) + { + is.read(buf,16); + buf[16] = '\0'; + data._orbit_ele[i] = atof(buf); + } - is.read(buf,4); - buf[4] = '\0'; - data._ndata = atoi(buf); + is.read(buf,4); + buf[4] = '\0'; + data._ndata = atoi(buf); is.read(buf,4); - buf[4] = '\0'; - data._year = atoi(buf); + buf[4] = '\0'; + data._year = atoi(buf); is.read(buf,4); - buf[4] = '\0'; - data._month = atoi(buf); + buf[4] = '\0'; + data._month = atoi(buf); is.read(buf,4); - buf[4] = '\0'; - data._day = atoi(buf); + buf[4] = '\0'; + data._day = atoi(buf); is.read(buf,4); - buf[4] = '\0'; - data._gmt_day = atoi(buf); + buf[4] = '\0'; + data._gmt_day = atoi(buf); is.read(buf,22); - buf[22] = '\0'; - data._gmt_sec = atof(buf); + buf[22] = '\0'; + data._gmt_sec = atof(buf); is.read(buf,22); - buf[22] = '\0'; - data._data_int = atof(buf); + buf[22] = '\0'; + data._data_int = atof(buf); is.read(buf,64); - buf[64] = '\0'; - data._ref_coord = buf; + buf[64] = '\0'; + data._ref_coord = buf; is.read(buf,22); - buf[22] = '\0'; - data._hr_angle = atof(buf); + buf[22] = '\0'; + data._hr_angle = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._alt_poserr = atof(buf); + buf[16] = '\0'; + data._alt_poserr = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._crt_poserr = atof(buf); + buf[16] = '\0'; + data._crt_poserr = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._rad_poserr = atof(buf); + buf[16] = '\0'; + data._rad_poserr = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._alt_velerr = atof(buf); + buf[16] = '\0'; + data._alt_velerr = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._crt_velerr = atof(buf); + buf[16] = '\0'; + data._crt_velerr = atof(buf); is.read(buf,16); - buf[16] = '\0'; - data._rad_velerr = atof(buf); + buf[16] = '\0'; + data._rad_velerr = atof(buf); - for (int i=0;i<data._ndata;i++) - { - is>>data._pos_vect[i]; - } + for (int i=0;i<data._ndata;i++) + { + is>>data._pos_vect[i]; + } - return is; + return is; is.seekg(598, std::ios::cur); //skip the rest part of PlatformPostion// @@ -147,16 +150,16 @@ std::istream& operator>>(std::istream& is, AlosSarPlatformPositionData& data) } AlosSarPlatformPositionData::AlosSarPlatformPositionData(const AlosSarPlatformPositionData& rhs): - AlosSarRecord(rhs) + AlosSarRecord(rhs) { - _orbit_ele_desg = rhs._orbit_ele_desg; + _orbit_ele_desg = rhs._orbit_ele_desg; - for(int i=0;i<6;i++) - { - _orbit_ele[i] = rhs._orbit_ele[i]; - } + for(int i=0;i<6;i++) + { + _orbit_ele[i] = rhs._orbit_ele[i]; + } - _ndata = rhs._ndata; + _ndata = rhs._ndata; _year = rhs._year; @@ -180,29 +183,29 @@ AlosSarPlatformPositionData::AlosSarPlatformPositionData(const AlosSarPlatformPo _rad_poserr = rhs._rad_poserr; - _alt_velerr = rhs._alt_velerr; + _alt_velerr = rhs._alt_velerr; _crt_velerr = rhs._crt_velerr; _rad_velerr = rhs._rad_velerr; - for (int i=0;i<64;i++) - { - _pos_vect[i] = rhs._pos_vect[i]; - } + for (int i=0;i<64;i++) + { + _pos_vect[i] = rhs._pos_vect[i]; + } } AlosSarPlatformPositionData& AlosSarPlatformPositionData::operator=(const AlosSarPlatformPositionData& rhs) { - _orbit_ele_desg = rhs._orbit_ele_desg; + _orbit_ele_desg = rhs._orbit_ele_desg; - for(int i=0;i<6;i++) - { - _orbit_ele[i] = rhs._orbit_ele[i]; - } + for(int i=0;i<6;i++) + { + _orbit_ele[i] = rhs._orbit_ele[i]; + } - _ndata = rhs._ndata; + _ndata = rhs._ndata; _year = rhs._year; @@ -226,16 +229,17 @@ AlosSarPlatformPositionData& AlosSarPlatformPositionData::operator=(const AlosSa _rad_poserr = rhs._rad_poserr; - _alt_velerr = rhs._alt_velerr; + _alt_velerr = rhs._alt_velerr; _crt_velerr = rhs._crt_velerr; _rad_velerr = rhs._rad_velerr; - for (int i=0;i<64;i++) - { - _pos_vect[i] = rhs._pos_vect[i]; - } + for (int i=0;i<64;i++) + { + _pos_vect[i] = rhs._pos_vect[i]; + } - return *this; -} \ No newline at end of file + return *this; +} +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.h index eadf2a588233b30e23a7d8815ec23ce911ba75b1..75b52b957ff2f46b2b1e45fbcc708f7470d76755 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPlatformPositionData.h @@ -6,6 +6,10 @@ #include <AlosSarRecordHeader.h> #include <AlosSarPositionVectorRecord.h> + +namespace ossimplugins +{ + /** * @ingroup PlatformPositionDataRecord * @brief This class is able to read a Platform position data record @@ -16,268 +20,269 @@ class AlosSarPlatformPositionData : public AlosSarRecord { public: - /** - * @brief Constructor - */ - AlosSarPlatformPositionData(); + /** + * @brief Constructor + */ + AlosSarPlatformPositionData(); - /** - * @brief Destructor - */ - ~AlosSarPlatformPositionData(); + /** + * @brief Destructor + */ + ~AlosSarPlatformPositionData(); - /** - * @brief Copy constructor - */ - AlosSarPlatformPositionData(const AlosSarPlatformPositionData& rhs); + /** + * @brief Copy constructor + */ + AlosSarPlatformPositionData(const AlosSarPlatformPositionData& rhs); - /** - * @brief Copy operator - */ - AlosSarPlatformPositionData& operator=(const AlosSarPlatformPositionData& rhs); - /** - * @brief This function write the AlosSar PlatformPositionData in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarPlatformPositionData& data); + /** + * @brief Copy operator + */ + AlosSarPlatformPositionData& operator=(const AlosSarPlatformPositionData& rhs); + /** + * @brief This function write the AlosSar PlatformPositionData in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarPlatformPositionData& data); - /** - * @brief This function read a AlosSar PlatformPositionData from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarPlatformPositionData& data); + /** + * @brief This function read a AlosSar PlatformPositionData from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarPlatformPositionData& data); - /** - * @brief This function is able to create a new instance of the class - */ - AlosSarRecord* Instanciate() - { - return new AlosSarPlatformPositionData(); - }; + /** + * @brief This function is able to create a new instance of the class + */ + AlosSarRecord* Instanciate() + { + return new AlosSarPlatformPositionData(); + }; - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - AlosSarRecord* Clone() - { - return new AlosSarPlatformPositionData(*this); - }; + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + AlosSarRecord* Clone() + { + return new AlosSarPlatformPositionData(*this); + }; - /** - * @brief Read the class data from a stream - */ - void Read(std::istream& is) - { - is>>*this; - }; + /** + * @brief Read the class data from a stream + */ + void Read(std::istream& is) + { + is>>*this; + }; - /** - * @brief Write the class to a stream - */ - void Write(std::ostream& os) - { - os<<*this; - }; + /** + * @brief Write the class to a stream + */ + void Write(std::ostream& os) + { + os<<*this; + }; - /** - * @brief Orbital elements designator - */ - std::string get_orbit_ele_desg() - { - return _orbit_ele_desg; - }; - /** - * @brief Orbital elements - */ - double* get_orbit_ele() - { - return _orbit_ele; - }; - /** - * @brief Number of data points - */ - int get_ndata() - { - return _ndata; - }; - /** - * @brief Year of data point - */ - int get_year() - { - return _year; - }; - /** - * @brief Month of data point - */ - int get_month() - { - return _month; - }; - /** - * @brief Day of data point - */ - int get_day() - { - return _day; - }; - /** - * @brief Day of year - */ - int get_gmt_day() - { - return _gmt_day; - }; - /** - * @brief Seconds of day - */ - double get_gmt_sec() - { - return _gmt_sec; - }; - /** - * @brief Data sampling interval - */ - double get_data_int() - { - return _data_int; - }; - /** - * @brief Reference coordinate system - */ - std::string get_ref_coord() - { - return _ref_coord; - }; - /** - * @brief Greenwich mean hour angle - */ - double get_hr_angle() - { - return _hr_angle; - }; - /** - * @brief Along track position error - */ - double get_alt_poserr() - { - return _alt_poserr; - }; - /** - * @brief Cross track position error - */ - double get_crt_poserr() - { - return _crt_poserr; - }; - /** - * @brief Radial position error - */ - double get_rad_poserr() - { - return _rad_poserr; - }; - /** - * @brief Along track velocity error - */ - double get_alt_velerr() - { - return _alt_velerr; - }; - /** - * @brief Cross track velocity error - */ - double get_crt_velerr() - { - return _crt_velerr; - }; - /** - * @brief Radial velocity error - */ - double get_rad_velerr() - { - return _rad_velerr; - }; - /** - * @brief Data point position/velocity - */ - AlosSarPositionVectorRecord* get_pos_vect() - { - return _pos_vect; - }; + /** + * @brief Orbital elements designator + */ + std::string get_orbit_ele_desg() + { + return _orbit_ele_desg; + }; + /** + * @brief Orbital elements + */ + double* get_orbit_ele() + { + return _orbit_ele; + }; + /** + * @brief Number of data points + */ + int get_ndata() + { + return _ndata; + }; + /** + * @brief Year of data point + */ + int get_year() + { + return _year; + }; + /** + * @brief Month of data point + */ + int get_month() + { + return _month; + }; + /** + * @brief Day of data point + */ + int get_day() + { + return _day; + }; + /** + * @brief Day of year + */ + int get_gmt_day() + { + return _gmt_day; + }; + /** + * @brief Seconds of day + */ + double get_gmt_sec() + { + return _gmt_sec; + }; + /** + * @brief Data sampling interval + */ + double get_data_int() + { + return _data_int; + }; + /** + * @brief Reference coordinate system + */ + std::string get_ref_coord() + { + return _ref_coord; + }; + /** + * @brief Greenwich mean hour angle + */ + double get_hr_angle() + { + return _hr_angle; + }; + /** + * @brief Along track position error + */ + double get_alt_poserr() + { + return _alt_poserr; + }; + /** + * @brief Cross track position error + */ + double get_crt_poserr() + { + return _crt_poserr; + }; + /** + * @brief Radial position error + */ + double get_rad_poserr() + { + return _rad_poserr; + }; + /** + * @brief Along track velocity error + */ + double get_alt_velerr() + { + return _alt_velerr; + }; + /** + * @brief Cross track velocity error + */ + double get_crt_velerr() + { + return _crt_velerr; + }; + /** + * @brief Radial velocity error + */ + double get_rad_velerr() + { + return _rad_velerr; + }; + /** + * @brief Data point position/velocity + */ + AlosSarPositionVectorRecord* get_pos_vect() + { + return _pos_vect; + }; protected: - /** - * @brief Orbital elements designator - */ - std::string _orbit_ele_desg; - /** - * @brief Orbital elements - */ - double _orbit_ele[6]; - /** - * @brief Number of data points - */ - int _ndata; - /** - * @brief Year of data point - */ - int _year; - /** - * @brief Month of data point - */ - int _month; - /** - * @brief Day of data point - */ - int _day; - /** - * @brief Day of year - */ - int _gmt_day; - /** - * @brief Seconds of day - */ - double _gmt_sec; - /** - * @brief Data sampling interval - */ - double _data_int; - /** - * @brief Reference coordinate system - */ - std::string _ref_coord; - /** - * @brief Greenwich mean hour angle - */ - double _hr_angle; - /** - * @brief Along track position error - */ - double _alt_poserr; - /** - * @brief Cross track position error - */ - double _crt_poserr; - /** - * @brief Radial position error - */ - double _rad_poserr; - /** - * @brief Along track velocity error - */ - double _alt_velerr; - /** - * @brief Cross track velocity error - */ - double _crt_velerr; - /** - * @brief Radial velocity error - */ - double _rad_velerr; - /** - * @brief Data point position/velocity - */ - AlosSarPositionVectorRecord _pos_vect[64]; + /** + * @brief Orbital elements designator + */ + std::string _orbit_ele_desg; + /** + * @brief Orbital elements + */ + double _orbit_ele[6]; + /** + * @brief Number of data points + */ + int _ndata; + /** + * @brief Year of data point + */ + int _year; + /** + * @brief Month of data point + */ + int _month; + /** + * @brief Day of data point + */ + int _day; + /** + * @brief Day of year + */ + int _gmt_day; + /** + * @brief Seconds of day + */ + double _gmt_sec; + /** + * @brief Data sampling interval + */ + double _data_int; + /** + * @brief Reference coordinate system + */ + std::string _ref_coord; + /** + * @brief Greenwich mean hour angle + */ + double _hr_angle; + /** + * @brief Along track position error + */ + double _alt_poserr; + /** + * @brief Cross track position error + */ + double _crt_poserr; + /** + * @brief Radial position error + */ + double _rad_poserr; + /** + * @brief Along track velocity error + */ + double _alt_velerr; + /** + * @brief Cross track velocity error + */ + double _crt_velerr; + /** + * @brief Radial velocity error + */ + double _rad_velerr; + /** + * @brief Data point position/velocity + */ + AlosSarPositionVectorRecord _pos_vect[64]; private: }; +} #endif diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.cpp index 142fd3964f4ec15cf6f9bf9453f88437119937df..195be43006dfa78181ed028ec0bf3c3d98359b90 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.cpp @@ -1,5 +1,8 @@ #include <AlosSarPositionVectorRecord.h> +namespace ossimplugins +{ + AlosSarPositionVectorRecord::AlosSarPositionVectorRecord() { @@ -11,60 +14,62 @@ AlosSarPositionVectorRecord::~AlosSarPositionVectorRecord() std::ostream& operator<<(std::ostream& os, const AlosSarPositionVectorRecord& data) { - for (int i=0;i<3;i++) - { - os<<"pos["<<i<<"]:"<<data._pos[i]<<std::endl; - } + for (int i=0;i<3;i++) + { + os<<"pos["<<i<<"]:"<<data._pos[i]<<std::endl; + } - for (int i=0;i<3;i++) - { - os<<"vel["<<i<<"]:"<<data._vel[i]<<std::endl; - } - return os; + for (int i=0;i<3;i++) + { + os<<"vel["<<i<<"]:"<<data._vel[i]<<std::endl; + } + return os; } std::istream& operator>>(std::istream& is, AlosSarPositionVectorRecord& data) { - char buf[23]; - buf[22] = '\0'; + char buf[23]; + buf[22] = '\0'; - for (int i=0;i<3;i++) - { - is.read(buf,22); - data._pos[i] = atof(buf); - } + for (int i=0;i<3;i++) + { + is.read(buf,22); + data._pos[i] = atof(buf); + } - for (int i=0;i<3;i++) - { - is.read(buf,22); - data._vel[i] = atof(buf); - } - return is; + for (int i=0;i<3;i++) + { + is.read(buf,22); + data._vel[i] = atof(buf); + } + return is; } AlosSarPositionVectorRecord::AlosSarPositionVectorRecord(const AlosSarPositionVectorRecord& rhs) { - for (int i=0;i<3;i++) - { - _pos[i] = rhs._pos[i]; - } + for (int i=0;i<3;i++) + { + _pos[i] = rhs._pos[i]; + } - for (int i=0;i<3;i++) - { - _vel[i] = rhs._vel[i]; - } + for (int i=0;i<3;i++) + { + _vel[i] = rhs._vel[i]; + } } AlosSarPositionVectorRecord& AlosSarPositionVectorRecord::operator=(const AlosSarPositionVectorRecord& rhs) { - for (int i=0;i<3;i++) - { - _pos[i] = rhs._pos[i]; - } + for (int i=0;i<3;i++) + { + _pos[i] = rhs._pos[i]; + } - for (int i=0;i<3;i++) - { - _vel[i] = rhs._vel[i]; - } - return *this; -} \ No newline at end of file + for (int i=0;i<3;i++) + { + _vel[i] = rhs._vel[i]; + } + return *this; +} + +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.h index ac0bb6db587665184a8db2e1257d7ddaada0f299..ca65f40b491237cf94a685e1b86d956c348ddbce 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarPositionVectorRecord.h @@ -4,6 +4,10 @@ #include <iostream> #include <cstdlib> #include <AlosSarRecord.h> + +namespace ossimplugins +{ + /** * @ingroup PlatformPositionDataRecord * @brief This class is able to read a position vector record @@ -14,63 +18,63 @@ class AlosSarPositionVectorRecord { public: - /** - * @brief Constructor - */ - AlosSarPositionVectorRecord(); + /** + * @brief Constructor + */ + AlosSarPositionVectorRecord(); - /** - * @brief Destructor - */ - ~AlosSarPositionVectorRecord(); + /** + * @brief Destructor + */ + ~AlosSarPositionVectorRecord(); - /** - * @brief Copy constructor - */ - AlosSarPositionVectorRecord(const AlosSarPositionVectorRecord& rhs); + /** + * @brief Copy constructor + */ + AlosSarPositionVectorRecord(const AlosSarPositionVectorRecord& rhs); - /** - * @brief Copy operator - */ - AlosSarPositionVectorRecord& operator=(const AlosSarPositionVectorRecord& rhs); - /** - * @brief This function write the AlosSar PositionVectorRecord in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarPositionVectorRecord& data); + /** + * @brief Copy operator + */ + AlosSarPositionVectorRecord& operator=(const AlosSarPositionVectorRecord& rhs); + /** + * @brief This function write the AlosSar PositionVectorRecord in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarPositionVectorRecord& data); - /** - * @brief This function read a AlosSar PositionVectorRecord from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarPositionVectorRecord& data); + /** + * @brief This function read a AlosSar PositionVectorRecord from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarPositionVectorRecord& data); - /** - * @brief Data point position (m) - */ - double* get_pos() - { - return _pos; - }; + /** + * @brief Data point position (m) + */ + double* get_pos() + { + return _pos; + }; - /** - * @brief Data point velocity (mm/s) - */ - double* get_vel() - { - return _vel; - }; + /** + * @brief Data point velocity (mm/s) + */ + double* get_vel() + { + return _vel; + }; protected: - /** - * @brief Data point position (m) - */ - double _pos[3]; - /** - * @brief Data point velocity (mm/s) - */ - double _vel[3]; + /** + * @brief Data point position (m) + */ + double _pos[3]; + /** + * @brief Data point velocity (mm/s) + */ + double _vel[3]; private: }; - +} #endif \ No newline at end of file diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.cpp index 47d575703c660e7c011ebaa7396c0c7bbe550e2e..adb432c8988e42a53e0d35c2e1216e67036bdb6f 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.cpp @@ -1,8 +1,11 @@ #include <AlosSarRecord.h> #include <memory.h> +namespace ossimplugins +{ + AlosSarRecord::AlosSarRecord(std::string mnemonic): - _mnemonic(mnemonic) + _mnemonic(mnemonic) { } @@ -11,6 +14,8 @@ AlosSarRecord::~AlosSarRecord() } AlosSarRecord::AlosSarRecord(const AlosSarRecord& rhs): - _mnemonic(rhs._mnemonic) + _mnemonic(rhs._mnemonic) { } + +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.h index 39746424f4c715933bcd9b26b81af234cef3954d..8399bec5740fedeca8ba812a071c6b1620f7f029 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecord.h @@ -4,6 +4,10 @@ #include <AlosSarRecordHeader.h> #include <iostream> + +namespace ossimplugins +{ + /** * @ingroup AlosSar * @brief This class is the base class of all the record classes @@ -14,51 +18,51 @@ class AlosSarRecord { public: - /** - * @brief Constructor - * @param mnemonic Name of the record - */ - AlosSarRecord(std::string mnemonic); - /** - * @brief Destructor - */ - ~AlosSarRecord(); + /** + * @brief Constructor + * @param mnemonic Name of the record + */ + AlosSarRecord(std::string mnemonic); + /** + * @brief Destructor + */ + ~AlosSarRecord(); - /** - * @brief Copy constructor - */ - AlosSarRecord(const AlosSarRecord& rhs); + /** + * @brief Copy constructor + */ + AlosSarRecord(const AlosSarRecord& rhs); - /** - * @brief This function is able to create a new instance of the class - */ - virtual AlosSarRecord* Instanciate() =0; + /** + * @brief This function is able to create a new instance of the class + */ + virtual AlosSarRecord* Instanciate() =0; - /** - * @brief This function is able to create a new instance of the class initialised with the data of the calling instance - */ - virtual AlosSarRecord* Clone()=0; + /** + * @brief This function is able to create a new instance of the class initialised with the data of the calling instance + */ + virtual AlosSarRecord* Clone()=0; - /** - * @brief Read the class data from a stream - */ - virtual void Read(std::istream& is) =0; + /** + * @brief Read the class data from a stream + */ + virtual void Read(std::istream& is) =0; - /** - * @brief Write the class to a stream - */ - virtual void Write(std::ostream& os)=0; + /** + * @brief Write the class to a stream + */ + virtual void Write(std::ostream& os)=0; - std::string get_mnemonic() - { - return _mnemonic; - }; + std::string get_mnemonic() + { + return _mnemonic; + }; protected: - std::string _mnemonic; + std::string _mnemonic; private: }; - +} #endif \ No newline at end of file diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.cpp index 6362cbb66e32618c9d1905357eb442f1aea394e4..26984e091d9d3914770c65608529f8d673ed0473 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.cpp @@ -1,5 +1,8 @@ #include <AlosSarRecordFactory.h> +namespace ossimplugins +{ + AlosSarRecordFactory::AlosSarRecordFactory() { } @@ -10,18 +13,20 @@ AlosSarRecordFactory::~AlosSarRecordFactory() AlosSarRecord* AlosSarRecordFactory::Instanciate(int id) { - AlosSarRecord* record = _availableRecords[id]; - if(record == NULL) - { - return NULL; - } - else - { - return record->Instanciate(); - } + AlosSarRecord* record = _availableRecords[id]; + if(record == NULL) + { + return NULL; + } + else + { + return record->Instanciate(); + } } void AlosSarRecordFactory::RegisterRecord(int id, AlosSarRecord * record) { - _availableRecords[id] = record; -} \ No newline at end of file + _availableRecords[id] = record; +} + +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.h index ba23e6504285f00848b71898158ee3ae2635fd8a..3e10abd1b7dc9a122e87035307404c5a2a093b9e 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordFactory.h @@ -5,6 +5,10 @@ #include <AlosSarRecordHeader.h> #include <AlosSarRecord.h> #include <map> + +namespace ossimplugins +{ + /** * @ingroup AlosSar * @brief This class is a facory able to construct Record base classes given the id of the record wanted @@ -15,35 +19,35 @@ class AlosSarRecordFactory { public: - /** - * @brief Constructor - */ - AlosSarRecordFactory(); - /** - * @brief Destructor - */ - ~AlosSarRecordFactory(); - - /** - * @brief Add a new Record type available in this factory - * @param record Record to add in the factory - * @param id Id of the new avalaible Record - */ - void RegisterRecord(int id, AlosSarRecord * record); - - /** - * @brief Instanciate a new Record - * @param id Id of the Record we want to instanciate - */ - AlosSarRecord* Instanciate(int id) ; + /** + * @brief Constructor + */ + AlosSarRecordFactory(); + /** + * @brief Destructor + */ + ~AlosSarRecordFactory(); + + /** + * @brief Add a new Record type available in this factory + * @param record Record to add in the factory + * @param id Id of the new avalaible Record + */ + void RegisterRecord(int id, AlosSarRecord * record); + + /** + * @brief Instanciate a new Record + * @param id Id of the Record we want to instanciate + */ + AlosSarRecord* Instanciate(int id) ; protected: - /** - * @brief Contain all the available Records for the factory - */ - std::map<int, AlosSarRecord*> _availableRecords; + /** + * @brief Contain all the available Records for the factory + */ + std::map<int, AlosSarRecord*> _availableRecords; private: }; - +} #endif \ No newline at end of file diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.cpp index 182b30aa69a3b74a4510b7ab9feae36010d4f25f..5e308bf0bab428879564eb0a98fe4954aa92a0a8 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.cpp @@ -1,5 +1,8 @@ #include <AlosSarRecordHeader.h> +namespace ossimplugins +{ + AlosSarRecordHeader::AlosSarRecordHeader() { @@ -11,57 +14,58 @@ AlosSarRecordHeader::~AlosSarRecordHeader() std::ostream& operator<<(std::ostream& os, const AlosSarRecordHeader& data) { - os<<"record_sequence_number:"<<data._rec_seq<<std::endl; - os<<"first_record_sub-type:"<<(int)data._rec_sub1<<std::endl; - os<<"record_type_code:"<<(int)data._rec_type<<std::endl; - os<<"second_record_sub-type:"<<(int)data._rec_sub2<<std::endl; - os<<"third_record_sub-type:"<<(int)data._rec_sub3<<std::endl; - os<<"length:"<<data._length<<std::endl; - return os; + os<<"record_sequence_number:"<<data._rec_seq<<std::endl; + os<<"first_record_sub-type:"<<(int)data._rec_sub1<<std::endl; + os<<"record_type_code:"<<(int)data._rec_type<<std::endl; + os<<"second_record_sub-type:"<<(int)data._rec_sub2<<std::endl; + os<<"third_record_sub-type:"<<(int)data._rec_sub3<<std::endl; + os<<"length:"<<data._length<<std::endl; + return os; } std::istream& operator>>(std::istream& is, AlosSarRecordHeader& data) { - is.read((char*)&(data._rec_seq),4); - data.SwitchEndian(data._rec_seq); - is.read((char*)&(data._rec_sub1),1); - is.read((char*)&(data._rec_type),1); - is.read((char*)&(data._rec_sub2),1); - is.read((char*)&(data._rec_sub3),1); - is.read((char*)&(data._length),4); - data.SwitchEndian(data._length); - return is; + is.read((char*)&(data._rec_seq),4); + data.SwitchEndian(data._rec_seq); + is.read((char*)&(data._rec_sub1),1); + is.read((char*)&(data._rec_type),1); + is.read((char*)&(data._rec_sub2),1); + is.read((char*)&(data._rec_sub3),1); + is.read((char*)&(data._length),4); + data.SwitchEndian(data._length); + return is; } AlosSarRecordHeader::AlosSarRecordHeader(const AlosSarRecordHeader& rhs): - _rec_seq(rhs._rec_seq), - _rec_sub1(rhs._rec_sub1), - _rec_type(rhs._rec_type), - _rec_sub2(rhs._rec_sub2), - _rec_sub3(rhs._rec_sub3) + _rec_seq(rhs._rec_seq), + _rec_sub1(rhs._rec_sub1), + _rec_type(rhs._rec_type), + _rec_sub2(rhs._rec_sub2), + _rec_sub3(rhs._rec_sub3) { } AlosSarRecordHeader& AlosSarRecordHeader::operator=(const AlosSarRecordHeader& rhs) { - _rec_seq=rhs._rec_seq; - _rec_sub1=rhs._rec_sub1; - _rec_type=rhs._rec_type; - _rec_sub2=rhs._rec_sub2; - _rec_sub3=rhs._rec_sub3; - return *this; + _rec_seq=rhs._rec_seq; + _rec_sub1=rhs._rec_sub1; + _rec_type=rhs._rec_type; + _rec_sub2=rhs._rec_sub2; + _rec_sub3=rhs._rec_sub3; + return *this; } void AlosSarRecordHeader::SwitchEndian(unsigned int& value) { - char buffer[4]; - char res[4]; + char buffer[4]; + char res[4]; - memcpy(buffer,&value,4); - res[0] = buffer[3]; - res[1] = buffer[2]; - res[2] = buffer[1]; - res[3] = buffer[0]; + memcpy(buffer,&value,4); + res[0] = buffer[3]; + res[1] = buffer[2]; + res[2] = buffer[1]; + res[3] = buffer[0]; - memcpy(&value,res,4); -} \ No newline at end of file + memcpy(&value,res,4); +} +} diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.h b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.h index ab333a57acea8bd251bd997fe534ee6f95fe1728..8a0b0b9def3de0d1745d5339c6b1ef116d630574 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.h +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarRecordHeader.h @@ -4,6 +4,9 @@ #include<iostream> #include<cstring> +namespace ossimplugins +{ + /** * @ingroup AlosSar * @brief This class is able to read a record header @@ -14,116 +17,116 @@ class AlosSarRecordHeader { public: - /** - * @brief Constructor - */ - AlosSarRecordHeader(); - - /** - * @brief Destructor - */ - ~AlosSarRecordHeader(); - - /** - * @brief Copy constructor - */ - AlosSarRecordHeader(const AlosSarRecordHeader& rhs); - - /** - * @brief Copy operator - */ - AlosSarRecordHeader& operator=(const AlosSarRecordHeader& rhs); - /** - * @brief This function write the RecordHeader in a stream - */ - friend std::ostream& operator<<(std::ostream& os, const AlosSarRecordHeader& data); - - /** - * @brief This function read a RecordHeader from a stream - */ - friend std::istream& operator>>(std::istream& is, AlosSarRecordHeader& data); - - /** - * @brief Record sequence number - */ - unsigned int get_rec_seq() - { - return _rec_seq; - }; - - /** - * @brief First record sub-type code - */ + /** + * @brief Constructor + */ + AlosSarRecordHeader(); + + /** + * @brief Destructor + */ + ~AlosSarRecordHeader(); + + /** + * @brief Copy constructor + */ + AlosSarRecordHeader(const AlosSarRecordHeader& rhs); + + /** + * @brief Copy operator + */ + AlosSarRecordHeader& operator=(const AlosSarRecordHeader& rhs); + /** + * @brief This function write the RecordHeader in a stream + */ + friend std::ostream& operator<<(std::ostream& os, const AlosSarRecordHeader& data); + + /** + * @brief This function read a RecordHeader from a stream + */ + friend std::istream& operator>>(std::istream& is, AlosSarRecordHeader& data); + + /** + * @brief Record sequence number + */ + unsigned int get_rec_seq() + { + return _rec_seq; + }; + + /** + * @brief First record sub-type code + */ unsigned char get_rec_sub1() - { - return _rec_sub1; - }; + { + return _rec_sub1; + }; - /** - * @brief Record type code - */ + /** + * @brief Record type code + */ unsigned char get_rec_type() - { - return _rec_type; - }; + { + return _rec_type; + }; - /** - * @brief Second record sub-type code - */ + /** + * @brief Second record sub-type code + */ unsigned char get_rec_sub2() - { - return _rec_sub2; - }; + { + return _rec_sub2; + }; - /** - * @brief Third record sub-type code - */ + /** + * @brief Third record sub-type code + */ unsigned char get_rec_sub3() - { - return _rec_sub3; - }; + { + return _rec_sub3; + }; - /** - * @brief Length of this record (in bytes) - */ + /** + * @brief Length of this record (in bytes) + */ unsigned int get_length() - { - return _length; - }; + { + return _length; + }; protected: - /** - * @brief This function switch the LSB value and the MSB value of the parameter - */ - void SwitchEndian(unsigned int& value); - - /** - * @brief Record sequence number - */ - unsigned int _rec_seq; - /** - * @brief First record sub-type code - */ + /** + * @brief This function switch the LSB value and the MSB value of the parameter + */ + void SwitchEndian(unsigned int& value); + + /** + * @brief Record sequence number + */ + unsigned int _rec_seq; + /** + * @brief First record sub-type code + */ unsigned char _rec_sub1; - /** - * @brief Record type code - */ + /** + * @brief Record type code + */ unsigned char _rec_type; - /** - * @brief Second record sub-type code - */ + /** + * @brief Second record sub-type code + */ unsigned char _rec_sub2; - /** - * @brief Third record sub-type code - */ + /** + * @brief Third record sub-type code + */ unsigned char _rec_sub3; - /** - * @brief Length of this record (in bytes) - */ + /** + * @brief Length of this record (in bytes) + */ unsigned int _length; private: }; - +} #endif