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

This class is able to read the ASAR ChirpParameters record. More...

#include <ChirpParameters.h>

Inheritance diagram for ossimplugins::ChirpParameters:
ossimplugins::EnvisatAsarRecord

Public Member Functions

 ChirpParameters ()
 Constructor. More...
 
virtual ~ChirpParameters ()
 Destructor. More...
 
 ChirpParameters (const ChirpParameters &rhs)
 Copy constructor. More...
 
ChirpParametersoperator= (const ChirpParameters &rhs)
 Copy operator. More...
 
EnvisatAsarRecordInstanciate ()
 This function is able to create a new instance of the class. More...
 
EnvisatAsarRecordClone ()
 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...
 
std::string get_zero_doppler_time ()
 zero_doppler_time More...
 
bool get_attach_flag ()
 attach_flag More...
 
std::string get_swath ()
 swath More...
 
std::string get_polar ()
 polar More...
 
float get_chirp_width ()
 chirp_width More...
 
float get_chirp_sidelobe ()
 chirp_sidelobe More...
 
float get_chirp_islr ()
 chirp_islr More...
 
float get_chirp_peak_loc ()
 chirp_peak_loc More...
 
float get_re_chirp_power ()
 re_chirp_power More...
 
float get_elev_chirp_power ()
 elev_chirp_power More...
 
bool get_chirp_quality_flag ()
 chirp_quality_flag More...
 
float get_ref_chirp_power ()
 ref_chirp_power More...
 
std::string get_normalisation_source ()
 normalisation_source More...
 
float * get_cal_pulse_info ()
 cal_pulse_info[352] More...
 
- Public Member Functions inherited from ossimplugins::EnvisatAsarRecord
 EnvisatAsarRecord (std::string mnemonic)
 Constructor. More...
 
virtual ~EnvisatAsarRecord ()
 Destructor. More...
 
 EnvisatAsarRecord (const EnvisatAsarRecord &rhs)
 Copy constructor. More...
 
std::string get_mnemonic ()
 Returns the mnemonic of the record. More...
 

Public Attributes

std::string _zero_doppler_time
 zero_doppler_time More...
 
bool _attach_flag
 attach_flag More...
 
std::string _swath
 swath More...
 
std::string _polar
 polar More...
 
float _chirp_width
 chirp_width More...
 
float _chirp_sidelobe
 chirp_sidelobe More...
 
float _chirp_islr
 chirp_islr More...
 
float _chirp_peak_loc
 chirp_peak_loc More...
 
float _re_chirp_power
 re_chirp_power More...
 
float _elev_chirp_power
 elev_chirp_power More...
 
bool _chirp_quality_flag
 chirp_quality_flag More...
 
float _ref_chirp_power
 ref_chirp_power More...
 
std::string _normalisation_source
 normalisation_source More...
 
float _cal_pulse_info [352]
 cal_pulse_info[352] More...
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from ossimplugins::EnvisatAsarRecord
template<typename T >
void SwitchEndian (T &value)
 This function switches the LSB value and the MSB value of the parameter. More...
 
- Protected Attributes inherited from ossimplugins::EnvisatAsarRecord
std::string _mnemonic
 

Detailed Description

This class is able to read the ASAR ChirpParameters record.

Definition at line 24 of file ChirpParameters.h.

Constructor & Destructor Documentation

◆ ChirpParameters() [1/2]

ossimplugins::ChirpParameters::ChirpParameters ( )

Constructor.

Definition at line 16 of file ChirpParameters.cpp.

Referenced by Clone(), and Instanciate().

16  : EnvisatAsarRecord("ChirpParameters_rec")
17  {
18  }
EnvisatAsarRecord(std::string mnemonic)
Constructor.

◆ ~ChirpParameters()

ossimplugins::ChirpParameters::~ChirpParameters ( )
virtual

Destructor.

Definition at line 20 of file ChirpParameters.cpp.

21  {
22  }

◆ ChirpParameters() [2/2]

ossimplugins::ChirpParameters::ChirpParameters ( const ChirpParameters rhs)

Copy constructor.

Definition at line 154 of file ChirpParameters.cpp.

References _cal_pulse_info.

154  :
155  EnvisatAsarRecord(rhs),
156  _zero_doppler_time(rhs._zero_doppler_time),
157  _attach_flag(rhs._attach_flag),
158  _swath(rhs._swath),
159  _polar(rhs._polar),
160  _chirp_width(rhs._chirp_width),
161  _chirp_sidelobe(rhs._chirp_sidelobe),
162  _chirp_islr(rhs._chirp_islr),
163  _chirp_peak_loc(rhs._chirp_peak_loc),
164  _re_chirp_power(rhs._re_chirp_power),
165  _elev_chirp_power(rhs._elev_chirp_power),
166  _chirp_quality_flag(rhs._chirp_quality_flag),
167  _ref_chirp_power(rhs._ref_chirp_power),
168  _normalisation_source(rhs._normalisation_source)
169  {
170  for (int i = 0; i<352; i++) {
171  _cal_pulse_info[i] = rhs._cal_pulse_info[i];
172  }
173  }
float _chirp_sidelobe
chirp_sidelobe
float _chirp_peak_loc
chirp_peak_loc
float _ref_chirp_power
ref_chirp_power
std::string _normalisation_source
normalisation_source
std::string _zero_doppler_time
zero_doppler_time
float _elev_chirp_power
elev_chirp_power
bool _chirp_quality_flag
chirp_quality_flag
float _cal_pulse_info[352]
cal_pulse_info[352]
float _re_chirp_power
re_chirp_power
EnvisatAsarRecord(std::string mnemonic)
Constructor.

Member Function Documentation

◆ Clone()

EnvisatAsarRecord* ossimplugins::ChirpParameters::Clone ( )
inlinevirtual

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

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 68 of file ChirpParameters.h.

References ChirpParameters().

69  {
70  return new ChirpParameters(*this);
71  };

◆ get_attach_flag()

bool ossimplugins::ChirpParameters::get_attach_flag ( )
inline

attach_flag

Definition at line 100 of file ChirpParameters.h.

References _attach_flag.

101  {
102  return _attach_flag;
103  };

◆ get_cal_pulse_info()

float* ossimplugins::ChirpParameters::get_cal_pulse_info ( )
inline

cal_pulse_info[352]

Definition at line 184 of file ChirpParameters.h.

References _cal_pulse_info.

185  {
186  return _cal_pulse_info;
187  };
float _cal_pulse_info[352]
cal_pulse_info[352]

◆ get_chirp_islr()

float ossimplugins::ChirpParameters::get_chirp_islr ( )
inline

chirp_islr

Definition at line 135 of file ChirpParameters.h.

References _chirp_islr.

136  {
137  return _chirp_islr;
138  };

◆ get_chirp_peak_loc()

float ossimplugins::ChirpParameters::get_chirp_peak_loc ( )
inline

chirp_peak_loc

Definition at line 142 of file ChirpParameters.h.

References _chirp_peak_loc.

143  {
144  return _chirp_peak_loc;
145  };
float _chirp_peak_loc
chirp_peak_loc

◆ get_chirp_quality_flag()

bool ossimplugins::ChirpParameters::get_chirp_quality_flag ( )
inline

chirp_quality_flag

Definition at line 163 of file ChirpParameters.h.

References _chirp_quality_flag.

164  {
165  return _chirp_quality_flag;
166  };
bool _chirp_quality_flag
chirp_quality_flag

◆ get_chirp_sidelobe()

float ossimplugins::ChirpParameters::get_chirp_sidelobe ( )
inline

chirp_sidelobe

Definition at line 128 of file ChirpParameters.h.

References _chirp_sidelobe.

129  {
130  return _chirp_sidelobe;
131  };
float _chirp_sidelobe
chirp_sidelobe

◆ get_chirp_width()

float ossimplugins::ChirpParameters::get_chirp_width ( )
inline

chirp_width

Definition at line 121 of file ChirpParameters.h.

References _chirp_width.

122  {
123  return _chirp_width;
124  };

◆ get_elev_chirp_power()

float ossimplugins::ChirpParameters::get_elev_chirp_power ( )
inline

elev_chirp_power

Definition at line 156 of file ChirpParameters.h.

References _elev_chirp_power.

157  {
158  return _elev_chirp_power;
159  };
float _elev_chirp_power
elev_chirp_power

◆ get_normalisation_source()

std::string ossimplugins::ChirpParameters::get_normalisation_source ( )
inline

normalisation_source

Definition at line 177 of file ChirpParameters.h.

References _normalisation_source.

178  {
179  return _normalisation_source;
180  };
std::string _normalisation_source
normalisation_source

◆ get_polar()

std::string ossimplugins::ChirpParameters::get_polar ( )
inline

polar

Definition at line 114 of file ChirpParameters.h.

References _polar.

115  {
116  return _polar;
117  };

◆ get_re_chirp_power()

float ossimplugins::ChirpParameters::get_re_chirp_power ( )
inline

re_chirp_power

Definition at line 149 of file ChirpParameters.h.

References _re_chirp_power.

150  {
151  return _re_chirp_power;
152  };
float _re_chirp_power
re_chirp_power

◆ get_ref_chirp_power()

float ossimplugins::ChirpParameters::get_ref_chirp_power ( )
inline

ref_chirp_power

Definition at line 170 of file ChirpParameters.h.

References _ref_chirp_power.

171  {
172  return _ref_chirp_power;
173  };
float _ref_chirp_power
ref_chirp_power

◆ get_swath()

std::string ossimplugins::ChirpParameters::get_swath ( )
inline

swath

Definition at line 107 of file ChirpParameters.h.

References _swath.

108  {
109  return _swath;
110  };

◆ get_zero_doppler_time()

std::string ossimplugins::ChirpParameters::get_zero_doppler_time ( )
inline

zero_doppler_time

Definition at line 93 of file ChirpParameters.h.

References _zero_doppler_time.

94  {
95  return _zero_doppler_time;
96  };
std::string _zero_doppler_time
zero_doppler_time

◆ Instanciate()

EnvisatAsarRecord* ossimplugins::ChirpParameters::Instanciate ( )
inlinevirtual

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

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 60 of file ChirpParameters.h.

References ChirpParameters().

61  {
62  return new ChirpParameters();
63  };

◆ operator=()

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

Copy operator.

Definition at line 176 of file ChirpParameters.cpp.

References _attach_flag, _cal_pulse_info, _chirp_islr, _chirp_peak_loc, _chirp_quality_flag, _chirp_sidelobe, _chirp_width, _elev_chirp_power, _normalisation_source, _polar, _re_chirp_power, _ref_chirp_power, _swath, and _zero_doppler_time.

177  {
178  _zero_doppler_time = rhs._zero_doppler_time;
179  _attach_flag = rhs._attach_flag;
180  _swath = rhs._swath;
181  _polar = rhs._polar;
182  _chirp_width = rhs._chirp_width;
183  _chirp_sidelobe = rhs._chirp_sidelobe;
184  _chirp_islr = rhs._chirp_islr;
185  _chirp_peak_loc = rhs._chirp_peak_loc;
186  _re_chirp_power = rhs._re_chirp_power;
187  _elev_chirp_power = rhs._elev_chirp_power;
188  _chirp_quality_flag = rhs._chirp_quality_flag;
189  _ref_chirp_power = rhs._ref_chirp_power;
190  _normalisation_source = rhs._normalisation_source;
191 
192  for (int i = 0; i<352; i++) {
193  _cal_pulse_info[i] = rhs._cal_pulse_info[i];
194  }
195 
196  return *this;
197  }
float _chirp_sidelobe
chirp_sidelobe
float _chirp_peak_loc
chirp_peak_loc
float _ref_chirp_power
ref_chirp_power
std::string _normalisation_source
normalisation_source
std::string _zero_doppler_time
zero_doppler_time
float _elev_chirp_power
elev_chirp_power
bool _chirp_quality_flag
chirp_quality_flag
float _cal_pulse_info[352]
cal_pulse_info[352]
float _re_chirp_power
re_chirp_power

◆ Read()

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

Reads the class data from a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 76 of file ChirpParameters.h.

77  {
78  is>>*this;
79  };

◆ Write()

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

Writes the class to a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 84 of file ChirpParameters.h.

85  {
86  os<<*this;
87  };

Friends And Related Function Documentation

◆ operator<<

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

This function writes the ChirpParameters in a stream.

Definition at line 25 of file ChirpParameters.cpp.

26  {
27  os<<"zero_doppler_time:"<<data._zero_doppler_time.c_str()<<std::endl;
28 
29  os<<"attach_flag:"<<data._attach_flag<<std::endl;
30 
31  os<<"swath:"<<data._swath.c_str()<<std::endl;
32 
33  os<<"polar:"<<data._polar.c_str()<<std::endl;
34 
35  os<<"chirp_width:"<<data._chirp_width<<std::endl;
36 
37  os<<"chirp_sidelobe:"<<data._chirp_sidelobe<<std::endl;
38 
39  os<<"chirp_islr:"<<data._chirp_islr<<std::endl;
40 
41  os<<"chirp_peak_loc:"<<data._chirp_peak_loc<<std::endl;
42 
43  os<<"re_chirp_power:"<<data._re_chirp_power<<std::endl;
44 
45  os<<"elev_chirp_power:"<<data._elev_chirp_power<<std::endl;
46 
47  os<<"chirp_quality_flag:"<<data._chirp_quality_flag<<std::endl;
48 
49  os<<"ref_chirp_power:"<<data._ref_chirp_power<<std::endl;
50 
51  os<<"normalisation_source:"<<data._normalisation_source.c_str()<<std::endl;
52 
53  for (int i = 0 ; i<352; i++) {
54  os<<"cal_pulse_info["<<i<<"]:"<<data._cal_pulse_info[i]<<std::endl;
55  }
56 
57  return os;
58 
59  }

◆ operator>>

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

This function reads a ChirpParameters from a stream.

Definition at line 61 of file ChirpParameters.cpp.

62  {
63  // char buf64[65];
64  // buf64[64] = '\0';
65  // char buf32[33];
66  // buf32[32] = '\0';
67  // char buf27[28];
68  // buf27[27] = '\0';
69  // char buf20[21];
70  // buf20[20] = '\0';
71  char buf16[17];
72  buf16[16]='\0';
73  // char buf15[16];
74  // buf15[15] = '\0';
75  // char buf14[15];
76  // buf14[14] = '\0';
77  // char buf13[14];
78  // buf13[13] = '\0';
79  char buf12[13];
80  buf12[12] = '\0';
81  // char buf11[12];
82  // buf11[11] = '\0';
83  // char buf10[11];
84  // buf10[10] = '\0';
85  // char buf9[10];
86  // buf9[9] = '\0';
87  // char buf8[9];
88  // buf8[8] = '\0';
89  char buf7[8];
90  buf7[7] = '\0';
91  // char buf6[7];
92  // buf6[6] = '\0';
93  // char buf5[6];
94  // buf5[5] = '\0';
95  char buf4[5];
96  buf4[4] = '\0';
97  char buf3[4];
98  buf3[3] = '\0';
99  // char buf2[3];
100  // buf2[2] = '\0';
101 // char buf1[1]; // not used avoid warning
102 
103  is.read(buf12,12);
104  data._zero_doppler_time = buf12;
105 
106  is.read((char*)&(data._attach_flag),1);
107 
108  is.read(buf3,3);
109  data._swath = buf3;
110 
111  is.read(buf3,3);
112  data._polar = buf3;
113 
114  is.read((char*)&(data._chirp_width),4);
115  data.SwitchEndian(data._chirp_width);
116 
117  is.read((char*)&(data._chirp_sidelobe),4);
118  data.SwitchEndian(data._chirp_sidelobe);
119 
120  is.read((char*)&(data._chirp_islr),4);
121  data.SwitchEndian(data._chirp_islr);
122 
123  is.read((char*)&(data._chirp_peak_loc),4);
124  data.SwitchEndian(data._chirp_peak_loc);
125 
126  is.read((char*)&(data._re_chirp_power),4);
127  data.SwitchEndian(data._re_chirp_power);
128 
129  is.read((char*)&(data._elev_chirp_power),4);
130  data.SwitchEndian(data._elev_chirp_power);
131 
132  is.read((char*)&(data._chirp_quality_flag),1);
133  data.SwitchEndian(data._chirp_quality_flag);
134 
135  is.read((char*)&(data._ref_chirp_power),4);
136  data.SwitchEndian(data._ref_chirp_power);
137 
138  is.read(buf7,7);
139  data._normalisation_source = buf7;
140 
141  is.read(buf4,4);
142 
143  for (int i = 0; i<352; i++) {
144  is.read((char*)&(data._cal_pulse_info[i]),4);
145  data.SwitchEndian(data._cal_pulse_info[i]);
146  }
147 
148  is.read(buf16,16);
149 
150  return is;
151 
152  }

Member Data Documentation

◆ _attach_flag

bool ossimplugins::ChirpParameters::_attach_flag

attach_flag

Definition at line 197 of file ChirpParameters.h.

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

◆ _cal_pulse_info

float ossimplugins::ChirpParameters::_cal_pulse_info[352]

◆ _chirp_islr

float ossimplugins::ChirpParameters::_chirp_islr

chirp_islr

Definition at line 217 of file ChirpParameters.h.

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

◆ _chirp_peak_loc

float ossimplugins::ChirpParameters::_chirp_peak_loc

chirp_peak_loc

Definition at line 221 of file ChirpParameters.h.

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

◆ _chirp_quality_flag

bool ossimplugins::ChirpParameters::_chirp_quality_flag

chirp_quality_flag

Definition at line 233 of file ChirpParameters.h.

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

◆ _chirp_sidelobe

float ossimplugins::ChirpParameters::_chirp_sidelobe

chirp_sidelobe

Definition at line 213 of file ChirpParameters.h.

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

◆ _chirp_width

float ossimplugins::ChirpParameters::_chirp_width

chirp_width

Definition at line 209 of file ChirpParameters.h.

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

◆ _elev_chirp_power

float ossimplugins::ChirpParameters::_elev_chirp_power

elev_chirp_power

Definition at line 229 of file ChirpParameters.h.

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

◆ _normalisation_source

std::string ossimplugins::ChirpParameters::_normalisation_source

normalisation_source

Definition at line 241 of file ChirpParameters.h.

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

◆ _polar

std::string ossimplugins::ChirpParameters::_polar

polar

Definition at line 205 of file ChirpParameters.h.

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

◆ _re_chirp_power

float ossimplugins::ChirpParameters::_re_chirp_power

re_chirp_power

Definition at line 225 of file ChirpParameters.h.

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

◆ _ref_chirp_power

float ossimplugins::ChirpParameters::_ref_chirp_power

ref_chirp_power

Definition at line 237 of file ChirpParameters.h.

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

◆ _swath

std::string ossimplugins::ChirpParameters::_swath

swath

Definition at line 201 of file ChirpParameters.h.

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

◆ _zero_doppler_time

std::string ossimplugins::ChirpParameters::_zero_doppler_time

zero_doppler_time

Definition at line 187 of file ChirpParameters.h.

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


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