20 static const char PREFIX[] =
"sensor_params.";
21 static const char PRF_KW[] =
"prf";
22 static const char SF_KW[] =
"sampling_frequency";
23 static const char RWL_KW[] =
"radar_wave_length";
24 static const char COL_DIR_KW[] =
"column_direction";
25 static const char LIN_DIR_KW[] =
"line_direction";
26 static const char SIGHT_DIR_KW[] =
"sight_direction";
27 static const char SEMI_MAJOR_AXIS_KW[] =
"semi_major_axis";
28 static const char SEMI_MINOR_AXIS_KW[] =
"semi_minor_axis";
29 static const char NUM_AZIMUTH_LOOKS_KW[] =
"number_azimuth_looks";
30 static const char NUM_RANGE_LOOKS_KW[] =
"number_range_looks";
31 static const char DOPCEN_KW[] =
"doppler_centroid";
32 static const char DOPCENLINEAR_KW[] =
"doppler_centroid_linear_term";
33 static const char RANGETOFIRSTDATA_KW[] =
"range_to_first_data_sample";
41 _sightDirection(Right),
42 _semiMajorAxis(6378137.0),
43 _semiMinorAxis(6356752.3141),
59 _col_direction(rhs._col_direction),
60 _lin_direction(rhs._lin_direction),
61 _sightDirection(rhs._sightDirection),
62 _semiMajorAxis(rhs._semiMajorAxis),
63 _semiMinorAxis(rhs._semiMinorAxis),
64 _nAzimuthLook(rhs._nAzimuthLook),
65 _nRangeLook(rhs._nRangeLook),
67 _dopcenLinear(rhs._dopcenLinear)
99 kwl.
add(pfx.c_str(), PRF_KW,
_prf);
100 kwl.
add(pfx.c_str(), SF_KW,
_sf);
101 kwl.
add(pfx.c_str(), RWL_KW,
_rwl);
126 const char* lookup = 0;
128 lookup = kwl.
find(pfx.c_str(), PRF_KW);
139 lookup = kwl.
find(pfx.c_str(), SF_KW);
150 lookup = kwl.
find(pfx.c_str(), RWL_KW);
161 lookup = kwl.
find(pfx.c_str(), COL_DIR_KW);
172 lookup = kwl.
find(pfx.c_str(), LIN_DIR_KW);
183 lookup = kwl.
find(pfx.c_str(), SIGHT_DIR_KW);
187 if ( s.
toInt() == 0 )
201 lookup = kwl.
find(pfx.c_str(), SEMI_MAJOR_AXIS_KW);
212 lookup = kwl.
find(pfx.c_str(), SEMI_MINOR_AXIS_KW);
223 lookup = kwl.
find(pfx.c_str(), NUM_AZIMUTH_LOOKS_KW);
234 lookup = kwl.
find(pfx.c_str(), NUM_RANGE_LOOKS_KW);
245 lookup = kwl.
find(pfx.c_str(), DOPCEN_KW);
257 lookup = kwl.
find(pfx.c_str(), DOPCENLINEAR_KW);
SensorParams()
Constructor.
double _prf
Nominal PRF, Hz.
virtual ~SensorParams()
Destructor.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
Represents serializable keyword/value map.
SightDirection _sightDirection
Antenna pointing direction.
const char * find(const char *key) const
double _dopcen
Doppler centroid (at range 0)
This class handles the sensor parameters.
int _col_direction
Columns direction (1=increasing, -1=decreasing)
double _nAzimuthLook
Number of azimuth looks.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
int _lin_direction
Lines direction (1=increasing, -1=decreasing)
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
double _nRangeLook
Number of range looks.
double _sf
Sampling frequency.
double _semiMinorAxis
Ellipsoid semi_minor axis, m Default : WGS84.
SensorParams & operator=(const SensorParams &rhs)
Affectation operator.
double _semiMajorAxis
Ellipsoid semi_major axis, m Default : WGS84.
double _dopcenLinear
Doppler centroid linear term (wrt range in km)
double _rwl
Radar wave length.