OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
ossimplugins::ProcessedDataRecord Class Reference

This class is able to read an Processed Data Record. More...

#include <ProcessedDataRecord.h>

Inheritance diagram for ossimplugins::ProcessedDataRecord:
ossimplugins::RadarSatRecord

Public Member Functions

 ProcessedDataRecord ()
 Constructor. More...
 
 ~ProcessedDataRecord ()
 Destructor. More...
 
 ProcessedDataRecord (const ProcessedDataRecord &rhs)
 Copy constructor. More...
 
ProcessedDataRecordoperator= (const ProcessedDataRecord &rhs)
 Copy operator. More...
 
RadarSatRecordInstanciate ()
 This function is able to create a new instance of the class. More...
 
RadarSatRecordClone ()
 This function is able to create a new instance of the class initialised with the data of the calling instance. More...
 
void Read (std::istream &is)
 Reads the class data from a stream. More...
 
void Write (std::ostream &os)
 Writes the class to a stream. More...
 
int get_line_num ()
 Image data line number. More...
 
int get_rec_num ()
 
Image data record index More...
 
int get_n_left_pixel ()
 
Left fill pixel count More...
 
int get_n_data_pixel ()
 
Data pixel count More...
 
int get_n_right_pixel ()
 
Right fill pixel count More...
 
int get_sensor_updf ()
 
Sensor parameter update flag More...
 
int get_acq_year ()
 
Acquisition year More...
 
int get_acq_day ()
 
Acquisition day More...
 
int get_acq_msec ()
 
Acquisition msecs More...
 
int get_sar_chan_ind ()
 
SAR channel indicator More...
 
int get_sar_chan_code ()
 
SAR channel code More...
 
int get_tran_polar ()
 
Transmitted polarization More...
 
int get_recv_polar ()
 
Received polarization More...
 
int get_prf ()
 
PRF More...
 
int get_sr_first ()
 
Slant range to first pixel, m More...
 
int get_sr_mid ()
 
Slant range to mid-pixel, m More...
 
int get_sr_last ()
 
Slant range to last pixel, m More...
 
int get_fdc_first ()
 
First pixel Doppler centroid, Hz More...
 
int get_fdc_mid ()
 
Mid pixel Doppler centroid, Hz More...
 
int get_fdc_last ()
 
Last pixel Doppler centroid, Hz More...
 
int get_ka_first ()
 
First pixel azimuth FM rate, Hz More...
 
int get_ka_mid ()
 
Mid pixel azimuth FM rate, Hz More...
 
int get_ka_last ()
 Last pixel azimuth FM rate, Hz. More...
 
int get_nadir_ang ()
 
Nadir look angle, 10e-6 deg More...
 
int get_squint_ang ()
 
Azimuth squint angle, 10e-6 deg More...
 
int get_geo_updf ()
 
Geographic ref parameter update flag More...
 
int get_lat_first ()
 
First pixel latitude, 10e-6 deg More...
 
int get_lat_mid ()
 
Mid-pixel latitude, 10e-6 deg More...
 
int get_lat_last ()
 Last-pixel latitude, 10e-6 deg. More...
 
int get_lon_first ()
 First pixel longitude, 10e-6 deg. More...
 
int get_lon_mid ()
 
Mid-pixel longitude, 10e-6 deg More...
 
int get_lon_last ()
 Last-pixel longitude, 10e-6 deg. More...
 
int get_north_first ()
 
Northing of first pixel, m More...
 
int get_north_last ()
 Northing of last pixel, m. More...
 
int get_east_first ()
 Easting of first pixel, m. More...
 
int get_east_last ()
 Easting of last pixel, m. More...
 
int get_heading ()
 Line heading, 10e-6 deg. More...
 
- Public Member Functions inherited from ossimplugins::RadarSatRecord
 RadarSatRecord (std::string mnemonic)
 Constructor. More...
 
virtual ~RadarSatRecord ()
 Destructor. More...
 
 RadarSatRecord (const RadarSatRecord &rhs)
 Copy constructor. More...
 
std::string get_mnemonic ()
 

Protected Attributes

int _line_num
 Image data line number. More...
 
int _rec_num
 
Image data record index More...
 
int _n_left_pixel
 
Left fill pixel count More...
 
int _n_data_pixel
 
Data pixel count More...
 
int _n_right_pixel
 
Right fill pixel count More...
 
int _sensor_updf
 
Sensor parameter update flag More...
 
int _acq_year
 
Acquisition year More...
 
int _acq_day
 
Acquisition day More...
 
int _acq_msec
 
Acquisition msecs More...
 
int _sar_chan_ind
 
SAR channel indicator More...
 
int _sar_chan_code
 
SAR channel code More...
 
int _tran_polar
 
Transmitted polarization More...
 
int _recv_polar
 
Received polarization More...
 
int _prf
 
PRF More...
 
int _sr_first
 
Slant range to first pixel, m More...
 
int _sr_mid
 
Slant range to mid-pixel, m More...
 
int _sr_last
 
Slant range to last pixel, m More...
 
int _fdc_first
 
First pixel Doppler centroid, Hz More...
 
int _fdc_mid
 
Mid pixel Doppler centroid, Hz More...
 
int _fdc_last
 
Last pixel Doppler centroid, Hz More...
 
int _ka_first
 
First pixel azimuth FM rate, Hz More...
 
int _ka_mid
 
Mid pixel azimuth FM rate, Hz More...
 
int _ka_last
 Last pixel azimuth FM rate, Hz. More...
 
int _nadir_ang
 
Nadir look angle, 10e-6 deg More...
 
int _squint_ang
 
Azimuth squint angle, 10e-6 deg More...
 
int _geo_updf
 
Geographic ref parameter update flag More...
 
int _lat_first
 
First pixel latitude, 10e-6 deg More...
 
int _lat_mid
 
Mid-pixel latitude, 10e-6 deg More...
 
int _lat_last
 Last-pixel latitude, 10e-6 deg. More...
 
int _lon_first
 First pixel longitude, 10e-6 deg. More...
 
int _lon_mid
 
Mid-pixel longitude, 10e-6 deg More...
 
int _lon_last
 Last-pixel longitude, 10e-6 deg. More...
 
int _north_first
 
Northing of first pixel, m More...
 
int _north_last
 Northing of last pixel, m. More...
 
int _east_first
 Easting of first pixel, m. More...
 
int _east_last
 Easting of last pixel, m. More...
 
int _heading
 Line heading, 10e-6 deg. More...
 
- Protected Attributes inherited from ossimplugins::RadarSatRecord
std::string _mnemonic
 

Private Member Functions

template<typename T >
void SwitchEndian (T &value)
 This function switches the LSB value and the MSB value of the parameter. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const ProcessedDataRecord &data)
 This function writes the ProcessedDataRecord in a stream. More...
 
std::istream & operator>> (std::istream &is, ProcessedDataRecord &data)
 This function reads a ProcessedDataRecord from a stream. More...
 

Detailed Description

This class is able to read an Processed Data Record.

Definition at line 27 of file ProcessedDataRecord.h.

Constructor & Destructor Documentation

◆ ProcessedDataRecord() [1/2]

ossimplugins::ProcessedDataRecord::ProcessedDataRecord ( )

Constructor.

Definition at line 17 of file ProcessedDataRecord.cpp.

Referenced by Clone(), and Instanciate().

17  : RadarSatRecord("proc_data_rec")
18  {
19  }
RadarSatRecord(std::string mnemonic)
Constructor.

◆ ~ProcessedDataRecord()

ossimplugins::ProcessedDataRecord::~ProcessedDataRecord ( )

Destructor.

Definition at line 21 of file ProcessedDataRecord.cpp.

22  {
23  }

◆ ProcessedDataRecord() [2/2]

ossimplugins::ProcessedDataRecord::ProcessedDataRecord ( const ProcessedDataRecord rhs)

Copy constructor.

Definition at line 211 of file ProcessedDataRecord.cpp.

211  :
212  RadarSatRecord(rhs)
213  {
214 
215 
216  }
RadarSatRecord(std::string mnemonic)
Constructor.

Member Function Documentation

◆ Clone()

RadarSatRecord* ossimplugins::ProcessedDataRecord::Clone ( )
inlinevirtual

This function is able to create a new instance of the class initialised with the data of the calling instance.

Implements ossimplugins::RadarSatRecord.

Definition at line 70 of file ProcessedDataRecord.h.

References ProcessedDataRecord().

71  {
72  return new ProcessedDataRecord(*this);
73  };

◆ get_acq_day()

int ossimplugins::ProcessedDataRecord::get_acq_day ( )
inline


Acquisition day

Definition at line 122 of file ProcessedDataRecord.h.

References _acq_day.

122 {return _acq_day;};

◆ get_acq_msec()

int ossimplugins::ProcessedDataRecord::get_acq_msec ( )
inline


Acquisition msecs

Definition at line 126 of file ProcessedDataRecord.h.

References _acq_msec.

Referenced by ossimplugins::ossimRadarSatModel::internalSaveState().

126 {return _acq_msec;};

◆ get_acq_year()

int ossimplugins::ProcessedDataRecord::get_acq_year ( )
inline


Acquisition year

Definition at line 118 of file ProcessedDataRecord.h.

References _acq_year.

118 {return _acq_year;};

◆ get_east_first()

int ossimplugins::ProcessedDataRecord::get_east_first ( )
inline

Easting of first pixel, m.

Definition at line 230 of file ProcessedDataRecord.h.

References _east_first.

230 {return _east_first;};
int _east_first
Easting of first pixel, m.

◆ get_east_last()

int ossimplugins::ProcessedDataRecord::get_east_last ( )
inline

Easting of last pixel, m.

Definition at line 234 of file ProcessedDataRecord.h.

References _east_last.

234 {return _east_last;};
int _east_last
Easting of last pixel, m.

◆ get_fdc_first()

int ossimplugins::ProcessedDataRecord::get_fdc_first ( )
inline


First pixel Doppler centroid, Hz

Definition at line 162 of file ProcessedDataRecord.h.

References _fdc_first.

162 {return _fdc_first;};
int _fdc_first
First pixel Doppler centroid, Hz

◆ get_fdc_last()

int ossimplugins::ProcessedDataRecord::get_fdc_last ( )
inline


Last pixel Doppler centroid, Hz

Definition at line 170 of file ProcessedDataRecord.h.

References _fdc_last.

170 {return _fdc_last;};
int _fdc_last
Last pixel Doppler centroid, Hz

◆ get_fdc_mid()

int ossimplugins::ProcessedDataRecord::get_fdc_mid ( )
inline


Mid pixel Doppler centroid, Hz

Definition at line 166 of file ProcessedDataRecord.h.

References _fdc_mid.

166 {return _fdc_mid;};
int _fdc_mid
Mid pixel Doppler centroid, Hz

◆ get_geo_updf()

int ossimplugins::ProcessedDataRecord::get_geo_updf ( )
inline


Geographic ref parameter update flag

Definition at line 194 of file ProcessedDataRecord.h.

References _geo_updf.

194 {return _geo_updf;};
int _geo_updf
Geographic ref parameter update flag

◆ get_heading()

int ossimplugins::ProcessedDataRecord::get_heading ( )
inline

Line heading, 10e-6 deg.

Definition at line 238 of file ProcessedDataRecord.h.

References _heading.

238 {return _heading;};
int _heading
Line heading, 10e-6 deg.

◆ get_ka_first()

int ossimplugins::ProcessedDataRecord::get_ka_first ( )
inline


First pixel azimuth FM rate, Hz

Definition at line 174 of file ProcessedDataRecord.h.

References _ka_first.

174 {return _ka_first;};
int _ka_first
First pixel azimuth FM rate, Hz

◆ get_ka_last()

int ossimplugins::ProcessedDataRecord::get_ka_last ( )
inline

Last pixel azimuth FM rate, Hz.

Definition at line 182 of file ProcessedDataRecord.h.

References _ka_last.

182 {return _ka_last;};
int _ka_last
Last pixel azimuth FM rate, Hz.

◆ get_ka_mid()

int ossimplugins::ProcessedDataRecord::get_ka_mid ( )
inline


Mid pixel azimuth FM rate, Hz

Definition at line 178 of file ProcessedDataRecord.h.

References _ka_mid.

178 {return _ka_mid;};
int _ka_mid
Mid pixel azimuth FM rate, Hz

◆ get_lat_first()

int ossimplugins::ProcessedDataRecord::get_lat_first ( )
inline


First pixel latitude, 10e-6 deg

Definition at line 198 of file ProcessedDataRecord.h.

References _lat_first.

Referenced by ossimplugins::ossimRadarSatModel::internalSaveState().

198 {return _lat_first;};
int _lat_first
First pixel latitude, 10e-6 deg

◆ get_lat_last()

int ossimplugins::ProcessedDataRecord::get_lat_last ( )
inline

Last-pixel latitude, 10e-6 deg.

Definition at line 206 of file ProcessedDataRecord.h.

References _lat_last.

Referenced by ossimplugins::ossimRadarSatModel::internalSaveState().

206 {return _lat_last;};
int _lat_last
Last-pixel latitude, 10e-6 deg.

◆ get_lat_mid()

int ossimplugins::ProcessedDataRecord::get_lat_mid ( )
inline


Mid-pixel latitude, 10e-6 deg

Definition at line 202 of file ProcessedDataRecord.h.

References _lat_mid.

202 {return _lat_mid;};
int _lat_mid
Mid-pixel latitude, 10e-6 deg

◆ get_line_num()

int ossimplugins::ProcessedDataRecord::get_line_num ( )
inline

Image data line number.

Definition at line 93 of file ProcessedDataRecord.h.

References _line_num.

93 {return _line_num;};
int _line_num
Image data line number.

◆ get_lon_first()

int ossimplugins::ProcessedDataRecord::get_lon_first ( )
inline

First pixel longitude, 10e-6 deg.

Definition at line 210 of file ProcessedDataRecord.h.

References _lon_first.

Referenced by ossimplugins::ossimRadarSatModel::internalSaveState().

210 {return _lon_first;};
int _lon_first
First pixel longitude, 10e-6 deg.

◆ get_lon_last()

int ossimplugins::ProcessedDataRecord::get_lon_last ( )
inline

Last-pixel longitude, 10e-6 deg.

Definition at line 218 of file ProcessedDataRecord.h.

References _lon_last.

Referenced by ossimplugins::ossimRadarSatModel::internalSaveState().

218 {return _lon_last;};
int _lon_last
Last-pixel longitude, 10e-6 deg.

◆ get_lon_mid()

int ossimplugins::ProcessedDataRecord::get_lon_mid ( )
inline


Mid-pixel longitude, 10e-6 deg

Definition at line 214 of file ProcessedDataRecord.h.

References _lon_mid.

214 {return _lon_mid;};
int _lon_mid
Mid-pixel longitude, 10e-6 deg

◆ get_n_data_pixel()

int ossimplugins::ProcessedDataRecord::get_n_data_pixel ( )
inline


Data pixel count

Definition at line 106 of file ProcessedDataRecord.h.

References _n_data_pixel.

106 {return _n_data_pixel;};

◆ get_n_left_pixel()

int ossimplugins::ProcessedDataRecord::get_n_left_pixel ( )
inline


Left fill pixel count

Definition at line 102 of file ProcessedDataRecord.h.

References _n_left_pixel.

102 {return _n_left_pixel;};
int _n_left_pixel
Left fill pixel count

◆ get_n_right_pixel()

int ossimplugins::ProcessedDataRecord::get_n_right_pixel ( )
inline


Right fill pixel count

Definition at line 110 of file ProcessedDataRecord.h.

References _n_right_pixel.

110 {return _n_right_pixel;};
int _n_right_pixel
Right fill pixel count

◆ get_nadir_ang()

int ossimplugins::ProcessedDataRecord::get_nadir_ang ( )
inline


Nadir look angle, 10e-6 deg

Definition at line 186 of file ProcessedDataRecord.h.

References _nadir_ang.

186 {return _nadir_ang;};
int _nadir_ang
Nadir look angle, 10e-6 deg

◆ get_north_first()

int ossimplugins::ProcessedDataRecord::get_north_first ( )
inline


Northing of first pixel, m

Definition at line 222 of file ProcessedDataRecord.h.

References _north_first.

222 {return _north_first;};
int _north_first
Northing of first pixel, m

◆ get_north_last()

int ossimplugins::ProcessedDataRecord::get_north_last ( )
inline

Northing of last pixel, m.

Definition at line 226 of file ProcessedDataRecord.h.

References _north_last.

226 {return _north_last;};
int _north_last
Northing of last pixel, m.

◆ get_prf()

int ossimplugins::ProcessedDataRecord::get_prf ( )
inline


PRF

Definition at line 146 of file ProcessedDataRecord.h.

References _prf.

◆ get_rec_num()

int ossimplugins::ProcessedDataRecord::get_rec_num ( )
inline


Image data record index

Definition at line 98 of file ProcessedDataRecord.h.

References _rec_num.

98 {return _rec_num;};
int _rec_num
Image data record index

◆ get_recv_polar()

int ossimplugins::ProcessedDataRecord::get_recv_polar ( )
inline


Received polarization

Definition at line 142 of file ProcessedDataRecord.h.

References _recv_polar.

142 {return _recv_polar;};
int _recv_polar
Received polarization

◆ get_sar_chan_code()

int ossimplugins::ProcessedDataRecord::get_sar_chan_code ( )
inline


SAR channel code

Definition at line 134 of file ProcessedDataRecord.h.

References _sar_chan_code.

134 {return _sar_chan_code;};

◆ get_sar_chan_ind()

int ossimplugins::ProcessedDataRecord::get_sar_chan_ind ( )
inline


SAR channel indicator

Definition at line 130 of file ProcessedDataRecord.h.

References _sar_chan_ind.

130 {return _sar_chan_ind;};
int _sar_chan_ind
SAR channel indicator

◆ get_sensor_updf()

int ossimplugins::ProcessedDataRecord::get_sensor_updf ( )
inline


Sensor parameter update flag

Definition at line 114 of file ProcessedDataRecord.h.

References _sensor_updf.

114 {return _sensor_updf;};
int _sensor_updf
Sensor parameter update flag

◆ get_squint_ang()

int ossimplugins::ProcessedDataRecord::get_squint_ang ( )
inline


Azimuth squint angle, 10e-6 deg

Definition at line 190 of file ProcessedDataRecord.h.

References _squint_ang.

190 {return _squint_ang;};
int _squint_ang
Azimuth squint angle, 10e-6 deg

◆ get_sr_first()

int ossimplugins::ProcessedDataRecord::get_sr_first ( )
inline


Slant range to first pixel, m

Definition at line 150 of file ProcessedDataRecord.h.

References _sr_first.

150 {return _sr_first;};
int _sr_first
Slant range to first pixel, m

◆ get_sr_last()

int ossimplugins::ProcessedDataRecord::get_sr_last ( )
inline


Slant range to last pixel, m

Definition at line 158 of file ProcessedDataRecord.h.

References _sr_last.

158 {return _sr_last;};
int _sr_last
Slant range to last pixel, m

◆ get_sr_mid()

int ossimplugins::ProcessedDataRecord::get_sr_mid ( )
inline


Slant range to mid-pixel, m

Definition at line 154 of file ProcessedDataRecord.h.

References _sr_mid.

154 {return _sr_mid;};
int _sr_mid
Slant range to mid-pixel, m

◆ get_tran_polar()

int ossimplugins::ProcessedDataRecord::get_tran_polar ( )
inline


Transmitted polarization

Definition at line 138 of file ProcessedDataRecord.h.

References _tran_polar.

138 {return _tran_polar;};
int _tran_polar
Transmitted polarization

◆ Instanciate()

RadarSatRecord* ossimplugins::ProcessedDataRecord::Instanciate ( )
inlinevirtual

This function is able to create a new instance of the class.

Implements ossimplugins::RadarSatRecord.

Definition at line 62 of file ProcessedDataRecord.h.

References ProcessedDataRecord().

63  {
64  return new ProcessedDataRecord();
65  };

◆ operator=()

ProcessedDataRecord & ossimplugins::ProcessedDataRecord::operator= ( const ProcessedDataRecord rhs)

Copy operator.

Definition at line 218 of file ProcessedDataRecord.cpp.

219  {
220  return *this;
221  }

◆ Read()

void ossimplugins::ProcessedDataRecord::Read ( std::istream &  is)
inlinevirtual

Reads the class data from a stream.

Implements ossimplugins::RadarSatRecord.

Definition at line 78 of file ProcessedDataRecord.h.

79  {
80  is>>*this;
81  };

◆ SwitchEndian()

template<typename T >
void ossimplugins::ProcessedDataRecord::SwitchEndian ( T &  value)
inlineprivate

This function switches the LSB value and the MSB value of the parameter.

Definition at line 398 of file ProcessedDataRecord.h.

References ossim::byteOrder(), and OSSIM_LITTLE_ENDIAN.

Referenced by ossimplugins::operator>>().

398  {
399 
400  char *buffer;
401  char *res;
402  int nb_octets = sizeof(T);
403 
405  buffer = (char* )malloc(nb_octets);
406  res = (char* )malloc(nb_octets);
407 
408  memcpy(buffer,&value,nb_octets);
409 
410  for (int i=0; i<nb_octets/2; i++) {
411  res[i] = buffer[nb_octets-1-i];
412  res[nb_octets-1-i] = buffer[i];
413  }
414  memcpy(&value,res,nb_octets);
415 
416  free(buffer);
417  free(res);
418  }
419  }
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54

◆ Write()

void ossimplugins::ProcessedDataRecord::Write ( std::ostream &  os)
inlinevirtual

Writes the class to a stream.

Implements ossimplugins::RadarSatRecord.

Definition at line 86 of file ProcessedDataRecord.h.

87  {
88  os<<*this;
89  };

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const ProcessedDataRecord data 
)
friend

This function writes the ProcessedDataRecord in a stream.

Definition at line 25 of file ProcessedDataRecord.cpp.

26  {
27  os<<"line_num:"<<data._line_num<<std::endl;
28  os<<"rec_num:"<<data._rec_num<<std::endl;
29  os<<"n_left_pixel:"<<data._n_left_pixel<<std::endl;
30  os<<"n_data_pixel:"<<data._n_data_pixel<<std::endl;
31  os<<"n_right_pixel:"<<data._n_right_pixel<<std::endl;
32  os<<"sensor_updf:"<<data._sensor_updf<<std::endl;
33  os<<"acq_year:"<<data._acq_year<<std::endl;
34  os<<"acq_day:"<<data._acq_day<<std::endl;
35  os<<"acq_msec:"<<data._acq_msec<<std::endl;
36  os<<"sar_chan_ind:"<<data._sar_chan_ind<<std::endl;
37  os<<"sar_chan_code:"<<data._sar_chan_code<<std::endl;
38  os<<"tran_polar:"<<data._tran_polar<<std::endl;
39  os<<"recv_polar:"<<data._recv_polar<<std::endl;
40  os<<"prf:"<<data._prf<<std::endl;
41  os<<"sr_first:"<<data._sr_first<<std::endl;
42  os<<"sr_last:"<<data._sr_last<<std::endl;
43  os<<"fdc_first:"<<data._fdc_first<<std::endl;
44  os<<"fdc_mid:"<<data._fdc_mid<<std::endl;
45  os<<"fdc_last:"<<data._fdc_last<<std::endl;
46  os<<"ka_first:"<<data._ka_first<<std::endl;
47  os<<"ka_mid:"<<data._ka_mid<<std::endl;
48  os<<"ka_last:"<<data._ka_last<<std::endl;
49  os<<"nadir_ang:"<<data._nadir_ang<<std::endl;
50  os<<"squint_ang:"<<data._squint_ang<<std::endl;
51  os<<"geo_updf:"<<data._geo_updf<<std::endl;
52  os<<"lat_first:"<<data._lat_first<<std::endl;
53  os<<"lat_mid:"<<data._lat_mid<<std::endl;
54  os<<"lat_last:"<<data._lat_last<<std::endl;
55  os<<"lon_first:"<<data._lon_first<<std::endl;
56  os<<"lon_mid:"<<data._lon_mid<<std::endl;
57  os<<"lon_last:"<<data._lon_last<<std::endl;
58  os<<"north_first:"<<data._north_first<<std::endl;
59  os<<"north_last:"<<data._north_last<<std::endl;
60  os<<"east_first:"<<data._east_first<<std::endl;
61  os<<"east_last:"<<data._east_last<<std::endl;
62  os<<"heading:"<<data._heading<<std::endl;
63 
64  return os;
65  }

◆ operator>>

std::istream& operator>> ( std::istream &  is,
ProcessedDataRecord data 
)
friend

This function reads a ProcessedDataRecord from a stream.

Definition at line 81 of file ProcessedDataRecord.cpp.

82  {
83  char buf[193];
84  buf[192] = '\0';
85 
86  is.read((char*)&(data._line_num),4);
87  data.SwitchEndian(data._line_num);
88 
89  is.read((char*)&(data._rec_num),4);
90  data.SwitchEndian(data._rec_num);
91 
92  is.read((char*)&(data._n_left_pixel),4);
93  data.SwitchEndian(data._n_left_pixel);
94 
95  is.read((char*)&(data._n_data_pixel),4);
96  data.SwitchEndian(data._n_data_pixel);
97 
98  is.read((char*)&(data._n_right_pixel),4);
99  data.SwitchEndian(data._n_right_pixel);
100 
101  is.read((char*)&(data._sensor_updf),4);
102  data.SwitchEndian(data._sensor_updf);
103 
104  is.read((char*)&(data._acq_year),4);
105  data.SwitchEndian(data._acq_year);
106 
107  is.read((char*)&(data._acq_day),4);
108  data.SwitchEndian(data._acq_day);
109 
110  is.read((char*)&(data._acq_msec),4);
111  data.SwitchEndian(data._acq_msec);
112 
113  is.read((char*)&(data._sar_chan_ind),2);
114  data.SwitchEndian(data._sar_chan_ind);
115 
116  is.read((char*)&(data._sar_chan_code),2);
117  data.SwitchEndian(data._sar_chan_code);
118 
119  is.read((char*)&(data._tran_polar),2);
120  data.SwitchEndian(data._tran_polar );
121 
122  is.read((char*)&(data._recv_polar),2);
123  data.SwitchEndian(data._recv_polar);
124 
125  is.read((char*)&(data._prf),4);
126  data.SwitchEndian(data._prf );
127 
128  is.read(buf,4);
129 
130  is.read((char*)&(data._sr_first),4);
131  data.SwitchEndian(data._sr_first);
132 
133  is.read((char*)&(data._sr_mid),4);
134  data.SwitchEndian(data._sr_mid);
135 
136  is.read((char*)&(data._sr_last),4);
137  data.SwitchEndian(data._sr_last);
138 
139  is.read((char*)&(data._fdc_first),4);
140  data.SwitchEndian(data._fdc_first);
141 
142  is.read((char*)&(data._fdc_mid),4);
143  data.SwitchEndian(data._fdc_mid);
144 
145  is.read((char*)&(data._fdc_last),4);
146  data.SwitchEndian(data._fdc_last);
147 
148  is.read((char*)&(data._ka_first),4);
149  data.SwitchEndian(data._ka_first);
150 
151  is.read((char*)&(data._ka_mid),4);
152  data.SwitchEndian(data._ka_mid);
153 
154  is.read((char*)&(data._ka_last),4);
155  data.SwitchEndian(data._ka_last);
156 
157  is.read((char*)&(data._nadir_ang),4);
158  data.SwitchEndian(data._nadir_ang);
159 
160  is.read((char*)&(data._squint_ang),4);
161  data.SwitchEndian(data._squint_ang);
162 
163  is.read(buf,4);
164  is.read(buf,16);
165 
166  is.read((char*)&(data._geo_updf),4);
167  data.SwitchEndian(data._geo_updf);
168 
169  is.read((char*)&(data._lat_first),4);
170  data.SwitchEndian(data._lat_first);
171 
172  is.read((char*)&(data._lat_mid),4);
173  data.SwitchEndian(data._lat_mid);
174 
175  is.read((char*)&(data._lat_last),4);
176  data.SwitchEndian(data._lat_last);
177 
178  is.read((char*)&(data._lon_first),4);
179  data.SwitchEndian(data._lon_first);
180 
181  is.read((char*)&(data._lon_mid),4);
182  data.SwitchEndian(data._lon_mid);
183 
184  is.read((char*)&(data._lon_last),4);
185  data.SwitchEndian(data._lon_last);
186 
187  is.read((char*)&(data._north_first),4);
188  data.SwitchEndian(data._north_first);
189 
190  is.read(buf,4);
191 
192  is.read((char*)&(data._north_last),4);
193  data.SwitchEndian(data._north_last);
194 
195  is.read((char*)&(data._east_first),4);
196  data.SwitchEndian(data._east_first);
197 
198  is.read(buf,4);
199 
200  is.read((char*)&(data._east_last),4);
201  data.SwitchEndian(data._east_last);
202 
203  is.read((char*)&(data._heading),4);
204  data.SwitchEndian(data._heading);
205 
206  is.read(buf,8);
207 
208  return is;
209  }

Member Data Documentation

◆ _acq_day

int ossimplugins::ProcessedDataRecord::_acq_day
protected


Acquisition day

Definition at line 273 of file ProcessedDataRecord.h.

Referenced by get_acq_day(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _acq_msec

int ossimplugins::ProcessedDataRecord::_acq_msec
protected


Acquisition msecs

Definition at line 277 of file ProcessedDataRecord.h.

Referenced by get_acq_msec(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _acq_year

int ossimplugins::ProcessedDataRecord::_acq_year
protected


Acquisition year

Definition at line 269 of file ProcessedDataRecord.h.

Referenced by get_acq_year(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _east_first

int ossimplugins::ProcessedDataRecord::_east_first
protected

Easting of first pixel, m.

Definition at line 383 of file ProcessedDataRecord.h.

Referenced by get_east_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _east_last

int ossimplugins::ProcessedDataRecord::_east_last
protected

Easting of last pixel, m.

Definition at line 387 of file ProcessedDataRecord.h.

Referenced by get_east_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _fdc_first

int ossimplugins::ProcessedDataRecord::_fdc_first
protected


First pixel Doppler centroid, Hz

Definition at line 314 of file ProcessedDataRecord.h.

Referenced by get_fdc_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _fdc_last

int ossimplugins::ProcessedDataRecord::_fdc_last
protected


Last pixel Doppler centroid, Hz

Definition at line 323 of file ProcessedDataRecord.h.

Referenced by get_fdc_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _fdc_mid

int ossimplugins::ProcessedDataRecord::_fdc_mid
protected


Mid pixel Doppler centroid, Hz

Definition at line 319 of file ProcessedDataRecord.h.

Referenced by get_fdc_mid(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _geo_updf

int ossimplugins::ProcessedDataRecord::_geo_updf
protected


Geographic ref parameter update flag

Definition at line 347 of file ProcessedDataRecord.h.

Referenced by get_geo_updf(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _heading

int ossimplugins::ProcessedDataRecord::_heading
protected

Line heading, 10e-6 deg.

Definition at line 391 of file ProcessedDataRecord.h.

Referenced by get_heading(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _ka_first

int ossimplugins::ProcessedDataRecord::_ka_first
protected


First pixel azimuth FM rate, Hz

Definition at line 327 of file ProcessedDataRecord.h.

Referenced by get_ka_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _ka_last

int ossimplugins::ProcessedDataRecord::_ka_last
protected

Last pixel azimuth FM rate, Hz.

Definition at line 335 of file ProcessedDataRecord.h.

Referenced by get_ka_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _ka_mid

int ossimplugins::ProcessedDataRecord::_ka_mid
protected


Mid pixel azimuth FM rate, Hz

Definition at line 331 of file ProcessedDataRecord.h.

Referenced by get_ka_mid(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lat_first

int ossimplugins::ProcessedDataRecord::_lat_first
protected


First pixel latitude, 10e-6 deg

Definition at line 351 of file ProcessedDataRecord.h.

Referenced by get_lat_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lat_last

int ossimplugins::ProcessedDataRecord::_lat_last
protected

Last-pixel latitude, 10e-6 deg.

Definition at line 359 of file ProcessedDataRecord.h.

Referenced by get_lat_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lat_mid

int ossimplugins::ProcessedDataRecord::_lat_mid
protected


Mid-pixel latitude, 10e-6 deg

Definition at line 355 of file ProcessedDataRecord.h.

Referenced by get_lat_mid(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _line_num

int ossimplugins::ProcessedDataRecord::_line_num
protected

Image data line number.

Definition at line 238 of file ProcessedDataRecord.h.

Referenced by get_line_num(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lon_first

int ossimplugins::ProcessedDataRecord::_lon_first
protected

First pixel longitude, 10e-6 deg.

Definition at line 363 of file ProcessedDataRecord.h.

Referenced by get_lon_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lon_last

int ossimplugins::ProcessedDataRecord::_lon_last
protected

Last-pixel longitude, 10e-6 deg.

Definition at line 371 of file ProcessedDataRecord.h.

Referenced by get_lon_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _lon_mid

int ossimplugins::ProcessedDataRecord::_lon_mid
protected


Mid-pixel longitude, 10e-6 deg

Definition at line 367 of file ProcessedDataRecord.h.

Referenced by get_lon_mid(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _n_data_pixel

int ossimplugins::ProcessedDataRecord::_n_data_pixel
protected


Data pixel count

Definition at line 257 of file ProcessedDataRecord.h.

Referenced by get_n_data_pixel(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _n_left_pixel

int ossimplugins::ProcessedDataRecord::_n_left_pixel
protected


Left fill pixel count

Definition at line 253 of file ProcessedDataRecord.h.

Referenced by get_n_left_pixel(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _n_right_pixel

int ossimplugins::ProcessedDataRecord::_n_right_pixel
protected


Right fill pixel count

Definition at line 261 of file ProcessedDataRecord.h.

Referenced by get_n_right_pixel(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _nadir_ang

int ossimplugins::ProcessedDataRecord::_nadir_ang
protected


Nadir look angle, 10e-6 deg

Definition at line 339 of file ProcessedDataRecord.h.

Referenced by get_nadir_ang(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _north_first

int ossimplugins::ProcessedDataRecord::_north_first
protected


Northing of first pixel, m

Definition at line 375 of file ProcessedDataRecord.h.

Referenced by get_north_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _north_last

int ossimplugins::ProcessedDataRecord::_north_last
protected

Northing of last pixel, m.

Definition at line 379 of file ProcessedDataRecord.h.

Referenced by get_north_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _prf

int ossimplugins::ProcessedDataRecord::_prf
protected


PRF

Definition at line 297 of file ProcessedDataRecord.h.

Referenced by get_prf(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _rec_num

int ossimplugins::ProcessedDataRecord::_rec_num
protected


Image data record index

Definition at line 249 of file ProcessedDataRecord.h.

Referenced by get_rec_num(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _recv_polar

int ossimplugins::ProcessedDataRecord::_recv_polar
protected


Received polarization

Definition at line 293 of file ProcessedDataRecord.h.

Referenced by get_recv_polar(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sar_chan_code

int ossimplugins::ProcessedDataRecord::_sar_chan_code
protected


SAR channel code

Definition at line 285 of file ProcessedDataRecord.h.

Referenced by get_sar_chan_code(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sar_chan_ind

int ossimplugins::ProcessedDataRecord::_sar_chan_ind
protected


SAR channel indicator

Definition at line 281 of file ProcessedDataRecord.h.

Referenced by get_sar_chan_ind(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sensor_updf

int ossimplugins::ProcessedDataRecord::_sensor_updf
protected


Sensor parameter update flag

Definition at line 265 of file ProcessedDataRecord.h.

Referenced by get_sensor_updf(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _squint_ang

int ossimplugins::ProcessedDataRecord::_squint_ang
protected


Azimuth squint angle, 10e-6 deg

Definition at line 343 of file ProcessedDataRecord.h.

Referenced by get_squint_ang(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sr_first

int ossimplugins::ProcessedDataRecord::_sr_first
protected


Slant range to first pixel, m

Definition at line 301 of file ProcessedDataRecord.h.

Referenced by get_sr_first(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sr_last

int ossimplugins::ProcessedDataRecord::_sr_last
protected


Slant range to last pixel, m

Definition at line 310 of file ProcessedDataRecord.h.

Referenced by get_sr_last(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _sr_mid

int ossimplugins::ProcessedDataRecord::_sr_mid
protected


Slant range to mid-pixel, m

Definition at line 305 of file ProcessedDataRecord.h.

Referenced by get_sr_mid(), and ossimplugins::operator>>().

◆ _tran_polar

int ossimplugins::ProcessedDataRecord::_tran_polar
protected


Transmitted polarization

Definition at line 289 of file ProcessedDataRecord.h.

Referenced by get_tran_polar(), ossimplugins::operator<<(), and ossimplugins::operator>>().


The documentation for this class was generated from the following files: