OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
RadiometricData.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 RadiometricData_h
13 #define RadiometricData_h
14 
15 #include <iostream>
18 
19 namespace ossimplugins
20 {
26 {
27 public:
32 
37 
41  RadiometricData(const RadiometricData& rhs);
42 
50  friend std::ostream& operator<<(std::ostream& os, const RadiometricData& data);
51 
56 
61  {
62  return new RadiometricData();
63  };
64 
69  {
70  return new RadiometricData(*this);
71  };
72 
76  void Read(std::istream& is)
77  {
78  is>>*this;
79  };
80 
84  void Write(std::ostream& os)
85  {
86  os<<*this;
87  };
88 
93  {
94  return _seq_num;
95  };
99  int get_n_data()
100  {
101  return _n_data;
102  };
107  {
108  return _field_size;
109  };
110 
114  std::string get_chan_ind()
115  {
116  return _chan_ind;
117  };
118 
122  std::string get_table_desig()
123  {
124  return _table_desig;
125  };
130  {
131  return _n_samp;
132  };
136  std::string get_samp_type()
137  {
138  return _samp_type;
139  };
144  {
145  return _samp_inc;
146  };
150  double* get_lookup_tab()
151  {
152  return _lookup_tab;
153  };
154 
159  {
160  return _noise_scale;
161  };
162 
166  double get_offset()
167  {
168  return _offset;
169  };
174  {
175  return _calib_const;
176  };
177 
178 
179 protected:
183  int _seq_num;
187  int _n_data;
192 
196  std::string _chan_ind;
197 
201  std::string _table_desig;
205  int _n_samp;
209  std::string _samp_type;
217  double _lookup_tab[512];
218 
222  double _noise_scale;
223 
227  double _offset;
231  double _calib_const;
232 
233 private:
234 };
235 }
236 #endif
double _calib_const
Calibration constant
std::string _samp_type
Sample type designator
double _offset
Scaling offset
RadiometricData & operator=(const RadiometricData &rhs)
Copy operator.
friend std::ostream & operator<<(std::ostream &os, const RadiometricData &data)
This function writes the RadiometricData in a stream.
std::string get_samp_type()
Sample type designator
double _noise_scale
Thermal noise reference level
int _field_size
Field size in bytes
int get_n_samp()
Number of lookup table samples
int get_samp_inc()
Increment between table entries, range samples
int get_n_data()
Number of data fields
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int _samp_inc
Increment between table entries, range samples
This class is the base class of all the record classes.
double * get_lookup_tab()
Output scaling gain table
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
void Write(std::ostream &os)
Writes the class to a stream.
double get_calib_const()
Calibration constant
int get_seq_num()
Record sequence number.
This class is able to read a radiometric data record.
double get_offset()
Scaling offset
std::string get_chan_ind()
SAR channel indicator.
int _n_data
Number of data fields
int get_field_size()
Field size in bytes
std::string _chan_ind
SAR channel indicator.
friend std::istream & operator>>(std::istream &is, RadiometricData &data)
This function reads a RadiometricData from a stream.
std::string get_table_desig()
Table designator
int _n_samp
Number of lookup table samples
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
double get_noise_scale()
Thermal noise reference level
void Read(std::istream &is)
Reads the class data from a stream.
std::string _table_desig
Table designator
int _seq_num
Record sequence number.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
double _lookup_tab[512]
Output scaling gain table