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

This class is able to read a Platform position data record. More...

#include <ErsSarPlatformPositionData.h>

Inheritance diagram for ossimplugins::ErsSarPlatformPositionData:
ossimplugins::ErsSarRecord

Public Member Functions

 ErsSarPlatformPositionData ()
 Constructor. More...
 
virtual ~ErsSarPlatformPositionData ()
 Destructor. More...
 
 ErsSarPlatformPositionData (const ErsSarPlatformPositionData &rhs)
 Copy constructor. More...
 
ErsSarPlatformPositionDataoperator= (const ErsSarPlatformPositionData &rhs)
 Copy operator. More...
 
ErsSarRecordInstanciate ()
 This function is able to create a new instance of the class. More...
 
ErsSarRecordClone ()
 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)
 Read the class data from a stream. More...
 
void Write (std::ostream &os)
 Write the class to a stream. More...
 
std::string get_orbit_ele_desg () const
 Orbital elements designator. More...
 
const double * get_orbit_ele () const
 Orbital elements. More...
 
int get_ndata () const
 Number of data points. More...
 
int get_year () const
 Year of data point. More...
 
int get_month () const
 Month of data point. More...
 
int get_day () const
 Day of data point. More...
 
int get_gmt_day () const
 Day of year. More...
 
double get_gmt_sec () const
 Seconds of day. More...
 
double get_data_int () const
 Data sampling interval. More...
 
std::string get_ref_coord () const
 Reference coordinate system. More...
 
double get_hr_angle () const
 Greenwich mean hour angle. More...
 
double get_alt_poserr () const
 Along track position error. More...
 
double get_crt_poserr () const
 Cross track position error. More...
 
double get_rad_poserr () const
 Radial position error. More...
 
double get_alt_velerr () const
 Along track velocity error. More...
 
double get_crt_velerr () const
 Cross track velocity error. More...
 
double get_rad_velerr () const
 Radial velocity error. More...
 
const ErsSarPositionVectorRecordget_pos_vect () const
 Data point position/velocity. More...
 
- Public Member Functions inherited from ossimplugins::ErsSarRecord
 ErsSarRecord (std::string mnemonic)
 Constructor. More...
 
virtual ~ErsSarRecord ()
 Destructor. More...
 
 ErsSarRecord (const ErsSarRecord &rhs)
 Copy constructor. More...
 
std::string get_mnemonic ()
 

Protected Attributes

std::string _orbit_ele_desg
 Orbital elements designator. More...
 
double _orbit_ele [6]
 Orbital elements. More...
 
int _ndata
 Number of data points. More...
 
int _year
 Year of data point. More...
 
int _month
 Month of data point. More...
 
int _day
 Day of data point. More...
 
int _gmt_day
 Day of year. More...
 
double _gmt_sec
 Seconds of day. More...
 
double _data_int
 Data sampling interval. More...
 
std::string _ref_coord
 Reference coordinate system. More...
 
double _hr_angle
 Greenwich mean hour angle. More...
 
double _alt_poserr
 Along track position error. More...
 
double _crt_poserr
 Cross track position error. More...
 
double _rad_poserr
 Radial position error. More...
 
double _alt_velerr
 Along track velocity error. More...
 
double _crt_velerr
 Cross track velocity error. More...
 
double _rad_velerr
 Radial velocity error. More...
 
ErsSarPositionVectorRecord _pos_vect [64]
 Data point position/velocity. More...
 
- Protected Attributes inherited from ossimplugins::ErsSarRecord
std::string _mnemonic
 

Friends

std::ostream & operator<< (std::ostream &os, const ErsSarPlatformPositionData &data)
 This function write the ErsSar PlatformPositionData in a stream. More...
 
std::istream & operator>> (std::istream &is, ErsSarPlatformPositionData &data)
 This function read a ErsSar PlatformPositionData from a stream. More...
 

Detailed Description

This class is able to read a Platform position data record.

Definition at line 30 of file ErsSarPlatformPositionData.h.

Constructor & Destructor Documentation

◆ ErsSarPlatformPositionData() [1/2]

ossimplugins::ErsSarPlatformPositionData::ErsSarPlatformPositionData ( )

Constructor.

Definition at line 18 of file ErsSarPlatformPositionData.cpp.

Referenced by Clone(), and Instanciate().

18  : ErsSarRecord("pos_data_rec")
19 {
20 }
ErsSarRecord(std::string mnemonic)
Constructor.

◆ ~ErsSarPlatformPositionData()

ossimplugins::ErsSarPlatformPositionData::~ErsSarPlatformPositionData ( )
virtual

Destructor.

Definition at line 22 of file ErsSarPlatformPositionData.cpp.

23 {
24 }

◆ ErsSarPlatformPositionData() [2/2]

ossimplugins::ErsSarPlatformPositionData::ErsSarPlatformPositionData ( const ErsSarPlatformPositionData rhs)

Copy constructor.

Definition at line 157 of file ErsSarPlatformPositionData.cpp.

References _alt_poserr, _alt_velerr, _crt_poserr, _crt_velerr, _data_int, _day, _gmt_day, _gmt_sec, _hr_angle, _month, _ndata, _orbit_ele, _orbit_ele_desg, _pos_vect, _rad_poserr, _rad_velerr, _ref_coord, and _year.

157  :
158  ErsSarRecord(rhs)
159 {
160  _orbit_ele_desg = rhs._orbit_ele_desg;
161 
162  for (int i = 0; i < 6; i++)
163  {
164  _orbit_ele[i] = rhs._orbit_ele[i];
165  }
166 
167  _ndata = rhs._ndata;
168 
169  _year = rhs._year;
170 
171  _month = rhs._month;
172 
173  _day = rhs._day;
174 
175  _gmt_day = rhs._gmt_day;
176 
177  _gmt_sec = rhs._gmt_sec;
178 
179  _data_int = rhs._data_int;
180 
181  _ref_coord = rhs._ref_coord;
182 
183  _hr_angle = rhs._hr_angle;
184 
185  _alt_poserr = rhs._alt_poserr;
186 
187  _crt_poserr = rhs._crt_poserr;
188 
189  _rad_poserr = rhs._rad_poserr;
190 
191  _alt_velerr = rhs._alt_velerr;
192 
193  _crt_velerr = rhs._crt_velerr;
194 
195  _rad_velerr = rhs._rad_velerr;
196 
197  for (int i = 0; i < 64; i++)
198  {
199  _pos_vect[i] = rhs._pos_vect[i];
200  }
201 
202 }
ErsSarRecord(std::string mnemonic)
Constructor.
ErsSarPositionVectorRecord _pos_vect[64]
Data point position/velocity.
double _crt_poserr
Cross track position error.
double _alt_poserr
Along track position error.
std::string _ref_coord
Reference coordinate system.
std::string _orbit_ele_desg
Orbital elements designator.
double _crt_velerr
Cross track velocity error.
double _alt_velerr
Along track velocity error.

Member Function Documentation

◆ Clone()

ErsSarRecord* ossimplugins::ErsSarPlatformPositionData::Clone ( )
inlinevirtual

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

Implements ossimplugins::ErsSarRecord.

Definition at line 73 of file ErsSarPlatformPositionData.h.

References ErsSarPlatformPositionData().

74  {
75  return new ErsSarPlatformPositionData(*this);
76  };

◆ get_alt_poserr()

double ossimplugins::ErsSarPlatformPositionData::get_alt_poserr ( ) const
inline

Along track position error.

Definition at line 174 of file ErsSarPlatformPositionData.h.

References _alt_poserr.

175  {
176  return _alt_poserr;
177  };
double _alt_poserr
Along track position error.

◆ get_alt_velerr()

double ossimplugins::ErsSarPlatformPositionData::get_alt_velerr ( ) const
inline

Along track velocity error.

Definition at line 195 of file ErsSarPlatformPositionData.h.

References _alt_velerr.

196  {
197  return _alt_velerr;
198  };
double _alt_velerr
Along track velocity error.

◆ get_crt_poserr()

double ossimplugins::ErsSarPlatformPositionData::get_crt_poserr ( ) const
inline

Cross track position error.

Definition at line 181 of file ErsSarPlatformPositionData.h.

References _crt_poserr.

182  {
183  return _crt_poserr;
184  };
double _crt_poserr
Cross track position error.

◆ get_crt_velerr()

double ossimplugins::ErsSarPlatformPositionData::get_crt_velerr ( ) const
inline

Cross track velocity error.

Definition at line 202 of file ErsSarPlatformPositionData.h.

References _crt_velerr.

203  {
204  return _crt_velerr;
205  };
double _crt_velerr
Cross track velocity error.

◆ get_data_int()

double ossimplugins::ErsSarPlatformPositionData::get_data_int ( ) const
inline

Data sampling interval.

Definition at line 153 of file ErsSarPlatformPositionData.h.

References _data_int.

Referenced by ossimplugins::ErsSarLeader::saveState().

154  {
155  return _data_int;
156  };

◆ get_day()

int ossimplugins::ErsSarPlatformPositionData::get_day ( ) const
inline

Day of data point.

Definition at line 132 of file ErsSarPlatformPositionData.h.

References _day.

Referenced by ossimplugins::ErsSarLeader::saveState().

133  {
134  return _day;
135  };

◆ get_gmt_day()

int ossimplugins::ErsSarPlatformPositionData::get_gmt_day ( ) const
inline

Day of year.

Definition at line 139 of file ErsSarPlatformPositionData.h.

References _gmt_day.

Referenced by ossimplugins::ErsSarLeader::saveState().

140  {
141  return _gmt_day;
142  };

◆ get_gmt_sec()

double ossimplugins::ErsSarPlatformPositionData::get_gmt_sec ( ) const
inline

Seconds of day.

Definition at line 146 of file ErsSarPlatformPositionData.h.

References _gmt_sec.

Referenced by ossimplugins::ErsSarLeader::saveState().

147  {
148  return _gmt_sec;
149  };

◆ get_hr_angle()

double ossimplugins::ErsSarPlatformPositionData::get_hr_angle ( ) const
inline

Greenwich mean hour angle.

Definition at line 167 of file ErsSarPlatformPositionData.h.

References _hr_angle.

Referenced by ossimplugins::ErsSarLeader::saveState().

168  {
169  return _hr_angle;
170  };

◆ get_month()

int ossimplugins::ErsSarPlatformPositionData::get_month ( ) const
inline

Month of data point.

Definition at line 125 of file ErsSarPlatformPositionData.h.

References _month.

Referenced by ossimplugins::ErsSarLeader::saveState().

126  {
127  return _month;
128  };

◆ get_ndata()

int ossimplugins::ErsSarPlatformPositionData::get_ndata ( ) const
inline

Number of data points.

Definition at line 111 of file ErsSarPlatformPositionData.h.

References _ndata.

Referenced by ossimplugins::ErsSarLeader::saveState().

112  {
113  return _ndata;
114  };

◆ get_orbit_ele()

const double* ossimplugins::ErsSarPlatformPositionData::get_orbit_ele ( ) const
inline

Orbital elements.

Definition at line 104 of file ErsSarPlatformPositionData.h.

References _orbit_ele.

105  {
106  return _orbit_ele;
107  };

◆ get_orbit_ele_desg()

std::string ossimplugins::ErsSarPlatformPositionData::get_orbit_ele_desg ( ) const
inline

Orbital elements designator.

Definition at line 97 of file ErsSarPlatformPositionData.h.

References _orbit_ele_desg.

98  {
99  return _orbit_ele_desg;
100  };
std::string _orbit_ele_desg
Orbital elements designator.

◆ get_pos_vect()

const ErsSarPositionVectorRecord* ossimplugins::ErsSarPlatformPositionData::get_pos_vect ( ) const
inline

Data point position/velocity.

Definition at line 216 of file ErsSarPlatformPositionData.h.

References _pos_vect.

Referenced by ossimplugins::ErsSarLeader::saveState().

217  {
218  return _pos_vect;
219  };
ErsSarPositionVectorRecord _pos_vect[64]
Data point position/velocity.

◆ get_rad_poserr()

double ossimplugins::ErsSarPlatformPositionData::get_rad_poserr ( ) const
inline

Radial position error.

Definition at line 188 of file ErsSarPlatformPositionData.h.

References _rad_poserr.

189  {
190  return _rad_poserr;
191  };

◆ get_rad_velerr()

double ossimplugins::ErsSarPlatformPositionData::get_rad_velerr ( ) const
inline

Radial velocity error.

Definition at line 209 of file ErsSarPlatformPositionData.h.

References _rad_velerr.

210  {
211  return _rad_velerr;
212  };

◆ get_ref_coord()

std::string ossimplugins::ErsSarPlatformPositionData::get_ref_coord ( ) const
inline

Reference coordinate system.

Definition at line 160 of file ErsSarPlatformPositionData.h.

References _ref_coord.

161  {
162  return _ref_coord;
163  };
std::string _ref_coord
Reference coordinate system.

◆ get_year()

int ossimplugins::ErsSarPlatformPositionData::get_year ( ) const
inline

Year of data point.

Definition at line 118 of file ErsSarPlatformPositionData.h.

References _year.

Referenced by ossimplugins::ErsSarLeader::saveState().

119  {
120  return _year;
121  };

◆ Instanciate()

ErsSarRecord* ossimplugins::ErsSarPlatformPositionData::Instanciate ( )
inlinevirtual

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

Implements ossimplugins::ErsSarRecord.

Definition at line 65 of file ErsSarPlatformPositionData.h.

References ErsSarPlatformPositionData().

66  {
67  return new ErsSarPlatformPositionData();
68  };

◆ operator=()

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

Copy operator.

Definition at line 204 of file ErsSarPlatformPositionData.cpp.

References _alt_poserr, _alt_velerr, _crt_poserr, _crt_velerr, _data_int, _day, _gmt_day, _gmt_sec, _hr_angle, _month, _ndata, _orbit_ele, _orbit_ele_desg, _pos_vect, _rad_poserr, _rad_velerr, _ref_coord, and _year.

205 {
206  _orbit_ele_desg = rhs._orbit_ele_desg;
207 
208  for (int i = 0; i < 6; i++)
209  {
210  _orbit_ele[i] = rhs._orbit_ele[i];
211  }
212 
213  _ndata = rhs._ndata;
214 
215  _year = rhs._year;
216 
217  _month = rhs._month;
218 
219  _day = rhs._day;
220 
221  _gmt_day = rhs._gmt_day;
222 
223  _gmt_sec = rhs._gmt_sec;
224 
225  _data_int = rhs._data_int;
226 
227  _ref_coord = rhs._ref_coord;
228 
229  _hr_angle = rhs._hr_angle;
230 
231  _alt_poserr = rhs._alt_poserr;
232 
233  _crt_poserr = rhs._crt_poserr;
234 
235  _rad_poserr = rhs._rad_poserr;
236 
237  _alt_velerr = rhs._alt_velerr;
238 
239  _crt_velerr = rhs._crt_velerr;
240 
241  _rad_velerr = rhs._rad_velerr;
242 
243  for (int i = 0; i < 64; i++)
244  {
245  _pos_vect[i] = rhs._pos_vect[i];
246  }
247 
248  return *this;
249 }
ErsSarPositionVectorRecord _pos_vect[64]
Data point position/velocity.
double _crt_poserr
Cross track position error.
double _alt_poserr
Along track position error.
std::string _ref_coord
Reference coordinate system.
std::string _orbit_ele_desg
Orbital elements designator.
double _crt_velerr
Cross track velocity error.
double _alt_velerr
Along track velocity error.

◆ Read()

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

Read the class data from a stream.

Implements ossimplugins::ErsSarRecord.

Definition at line 81 of file ErsSarPlatformPositionData.h.

82  {
83  is >> *this;
84  };

◆ Write()

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

Write the class to a stream.

Implements ossimplugins::ErsSarRecord.

Definition at line 89 of file ErsSarPlatformPositionData.h.

90  {
91  os << *this;
92  };

Friends And Related Function Documentation

◆ operator<<

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

This function write the ErsSar PlatformPositionData in a stream.

Definition at line 26 of file ErsSarPlatformPositionData.cpp.

27 {
28  os << "orbit_ele_desg:" << data._orbit_ele_desg.c_str() << std::endl;
29 
30  for (int i = 0; i < 6; i++)
31  {
32  os << "orbit_ele[" << i << "]:" << data._orbit_ele[i] << std::endl;
33  }
34 
35  os << "ndata:" << data._ndata << std::endl;
36 
37  os << "year:" << data._year << std::endl;
38 
39  os << "month:" << data._month << std::endl;
40 
41  os << "day:" << data._day << std::endl;
42 
43  os << "gmt_day:" << data._gmt_day << std::endl;
44 
45  os << "gmt_sec:" << data._gmt_sec << std::endl;
46 
47  os << "data_int:" << data._data_int << std::endl;
48 
49  os << "ref_coord:" << data._ref_coord.c_str() << std::endl;
50 
51  os << "hr_angle:" << data._hr_angle << std::endl;
52 
53  os << "alt_poserr:" << data._alt_poserr << std::endl;
54 
55  os << "crt_poserr:" << data._crt_poserr << std::endl;
56 
57  os << "rad_poserr:" << data._rad_poserr << std::endl;
58 
59  os << "alt_velerr:" << data._alt_velerr << std::endl;
60 
61  os << "crt_velerr:" << data._crt_velerr << std::endl;
62 
63  os << "rad_velerr:" << data._rad_velerr << std::endl;
64 
65  for (int i = 0; i < 64; i++)
66  {
67  os << "pos_vect[" << i << "]:" << data._pos_vect[i] << std::endl;
68  }
69 
70  return os;
71 }

◆ operator>>

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

This function read a ErsSar PlatformPositionData from a stream.

Definition at line 73 of file ErsSarPlatformPositionData.cpp.

74 {
75  char buf[1207];
76  buf[1206] = '\0';
77 
78  is.read(buf, 32);
79  buf[32] = '\0';
80  data._orbit_ele_desg = buf;
81 
82  for (int i = 0; i < 6; i++)
83  {
84  is.read(buf, 16);
85  buf[16] = '\0';
86  data._orbit_ele[i] = atof(buf);
87  }
88 
89  is.read(buf, 4);
90  buf[4] = '\0';
91  data._ndata = atoi(buf);
92 
93  is.read(buf, 4);
94  buf[4] = '\0';
95  data._year = atoi(buf);
96 
97  is.read(buf, 4);
98  buf[4] = '\0';
99  data._month = atoi(buf);
100 
101  is.read(buf, 4);
102  buf[4] = '\0';
103  data._day = atoi(buf);
104 
105  is.read(buf, 4);
106  buf[4] = '\0';
107  data._gmt_day = atoi(buf);
108 
109  is.read(buf, 22);
110  buf[22] = '\0';
111  data._gmt_sec = atof(buf);
112 
113  is.read(buf, 22);
114  buf[22] = '\0';
115  data._data_int = atof(buf);
116 
117  is.read(buf, 64);
118  buf[64] = '\0';
119  data._ref_coord = buf;
120 
121  is.read(buf, 22);
122  buf[22] = '\0';
123  data._hr_angle = atof(buf);
124 
125  is.read(buf, 16);
126  buf[16] = '\0';
127  data._alt_poserr = atof(buf);
128 
129  is.read(buf, 16);
130  buf[16] = '\0';
131  data._crt_poserr = atof(buf);
132 
133  is.read(buf, 16);
134  buf[16] = '\0';
135  data._rad_poserr = atof(buf);
136 
137  is.read(buf, 16);
138  buf[16] = '\0';
139  data._alt_velerr = atof(buf);
140 
141  is.read(buf, 16);
142  buf[16] = '\0';
143  data._crt_velerr = atof(buf);
144 
145  is.read(buf, 16);
146  buf[16] = '\0';
147  data._rad_velerr = atof(buf);
148 
149  for (int i = 0; i < data._ndata; i++)
150  {
151  is >> data._pos_vect[i];
152  }
153 
154  return is;
155 }

Member Data Documentation

◆ _alt_poserr

double ossimplugins::ErsSarPlatformPositionData::_alt_poserr
protected

◆ _alt_velerr

double ossimplugins::ErsSarPlatformPositionData::_alt_velerr
protected

◆ _crt_poserr

double ossimplugins::ErsSarPlatformPositionData::_crt_poserr
protected

◆ _crt_velerr

double ossimplugins::ErsSarPlatformPositionData::_crt_velerr
protected

◆ _data_int

double ossimplugins::ErsSarPlatformPositionData::_data_int
protected

◆ _day

int ossimplugins::ErsSarPlatformPositionData::_day
protected

◆ _gmt_day

int ossimplugins::ErsSarPlatformPositionData::_gmt_day
protected

◆ _gmt_sec

double ossimplugins::ErsSarPlatformPositionData::_gmt_sec
protected

◆ _hr_angle

double ossimplugins::ErsSarPlatformPositionData::_hr_angle
protected

◆ _month

int ossimplugins::ErsSarPlatformPositionData::_month
protected

◆ _ndata

int ossimplugins::ErsSarPlatformPositionData::_ndata
protected

◆ _orbit_ele

double ossimplugins::ErsSarPlatformPositionData::_orbit_ele[6]
protected

◆ _orbit_ele_desg

std::string ossimplugins::ErsSarPlatformPositionData::_orbit_ele_desg
protected

◆ _pos_vect

ErsSarPositionVectorRecord ossimplugins::ErsSarPlatformPositionData::_pos_vect[64]
protected

◆ _rad_poserr

double ossimplugins::ErsSarPlatformPositionData::_rad_poserr
protected

◆ _rad_velerr

double ossimplugins::ErsSarPlatformPositionData::_rad_velerr
protected

◆ _ref_coord

std::string ossimplugins::ErsSarPlatformPositionData::_ref_coord
protected

◆ _year

int ossimplugins::ErsSarPlatformPositionData::_year
protected

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