OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ErsSarPlatformPositionData.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef ErsSarPlatformPositionData_h
13 #define ErsSarPlatformPositionData_h
14 
15 #include <iostream>
16 #include "erssar/ErsSarRecord.h"
18 
20 
21 
22 namespace ossimplugins
23 {
24 
31 {
32 public:
37 
42 
47 
56 
61 
66  {
67  return new ErsSarPlatformPositionData();
68  };
69 
74  {
75  return new ErsSarPlatformPositionData(*this);
76  };
77 
81  void Read(std::istream& is)
82  {
83  is >> *this;
84  };
85 
89  void Write(std::ostream& os)
90  {
91  os << *this;
92  };
93 
97  std::string get_orbit_ele_desg() const
98  {
99  return _orbit_ele_desg;
100  };
104  const double* get_orbit_ele() const
105  {
106  return _orbit_ele;
107  };
111  int get_ndata() const
112  {
113  return _ndata;
114  };
118  int get_year() const
119  {
120  return _year;
121  };
125  int get_month() const
126  {
127  return _month;
128  };
132  int get_day() const
133  {
134  return _day;
135  };
139  int get_gmt_day() const
140  {
141  return _gmt_day;
142  };
146  double get_gmt_sec() const
147  {
148  return _gmt_sec;
149  };
153  double get_data_int() const
154  {
155  return _data_int;
156  };
160  std::string get_ref_coord() const
161  {
162  return _ref_coord;
163  };
167  double get_hr_angle() const
168  {
169  return _hr_angle;
170  };
174  double get_alt_poserr() const
175  {
176  return _alt_poserr;
177  };
181  double get_crt_poserr() const
182  {
183  return _crt_poserr;
184  };
188  double get_rad_poserr() const
189  {
190  return _rad_poserr;
191  };
195  double get_alt_velerr() const
196  {
197  return _alt_velerr;
198  };
202  double get_crt_velerr() const
203  {
204  return _crt_velerr;
205  };
209  double get_rad_velerr() const
210  {
211  return _rad_velerr;
212  };
217  {
218  return _pos_vect;
219  };
220 
221 protected:
225  std::string _orbit_ele_desg;
229  double _orbit_ele[6];
233  int _ndata;
237  int _year;
241  int _month;
245  int _day;
249  int _gmt_day;
253  double _gmt_sec;
257  double _data_int;
261  std::string _ref_coord;
265  double _hr_angle;
269  double _alt_poserr;
273  double _crt_poserr;
277  double _rad_poserr;
281  double _alt_velerr;
285  double _crt_velerr;
289  double _rad_velerr;
294 
295 private:
296 };
297 }
298 #endif
ErsSarRecord * Instanciate()
This function is able to create a new instance of the class.
double get_hr_angle() const
Greenwich mean hour angle.
This class is able to read a Platform position data record.
std::string get_orbit_ele_desg() const
Orbital elements designator.
friend std::istream & operator>>(std::istream &is, ErsSarPlatformPositionData &data)
This function read a ErsSar PlatformPositionData from a stream.
void Write(std::ostream &os)
Write the class to a stream.
double get_rad_velerr() const
Radial velocity error.
friend std::ostream & operator<<(std::ostream &os, const ErsSarPlatformPositionData &data)
This function write the ErsSar PlatformPositionData in a stream.
ErsSarPositionVectorRecord _pos_vect[64]
Data point position/velocity.
const double * get_orbit_ele() const
Orbital elements.
double _crt_poserr
Cross track position error.
double _alt_poserr
Along track position error.
ErsSarRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
std::string _ref_coord
Reference coordinate system.
ErsSarPlatformPositionData & operator=(const ErsSarPlatformPositionData &rhs)
Copy operator.
double get_data_int() const
Data sampling interval.
double get_crt_velerr() const
Cross track velocity error.
This class is the base class of all the record classes.
Definition: ErsSarRecord.h:27
std::string _orbit_ele_desg
Orbital elements designator.
int get_ndata() const
Number of data points.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::string get_ref_coord() const
Reference coordinate system.
double _crt_velerr
Cross track velocity error.
void Read(std::istream &is)
Read the class data from a stream.
double get_crt_poserr() const
Cross track position error.
double get_alt_poserr() const
Along track position error.
double _alt_velerr
Along track velocity error.
This class is able to read a position vector record.
double get_alt_velerr() const
Along track velocity error.
double get_rad_poserr() const
Radial position error.
const ErsSarPositionVectorRecord * get_pos_vect() const
Data point position/velocity.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23