21 static const char NOISE[] =
"referenceNoiseLevel";
23 static const char BETA_NOUGHT[] =
"BetaNought";
24 static const char SIGMA_NOUGHT[] =
"SigmaNought";
25 static const char GAMMA[] =
"Gamma";
27 static const char INCIDENCE_ANGLE_CORRECTION_NAME_KW[] =
"incidenceAngleCorrectionName";
28 static const char PIXEL_FIRST_NOISE_VALUE_KW[] =
"pixelFirstNoiseValue";
29 static const char STEP_SIZE_KW[] =
"stepSize";
30 static const char NUMBER_OF_NOISE_LEVEL_VALUE_KW[] =
"numberOfNoiseLevelValues";
31 static const char NOISE_LEVEL_VALUES_KW[] =
"noiseLevelValues";
32 static const char UNITS_KW[] =
"units";
33 static const char OFFSET_KW[] =
"offset";
34 static const char GAIN_KW[] =
"gain";
35 static const char SIZE_KW[] =
"size";
38 _incidenceAngleCorrectionName(
"Unknown"),
39 _pixelFirstNoiseValue(0),
41 _numberOfNoiseLevelValues(0),
55 _incidenceAngleCorrectionName(rhs._incidenceAngleCorrectionName),
56 _pixelFirstNoiseValue(rhs._pixelFirstNoiseValue),
57 _stepSize(rhs._stepSize),
58 _numberOfNoiseLevelValues(rhs._numberOfNoiseLevelValues),
59 _noiseLevelValues(rhs._noiseLevelValues),
90 pfx = pfx +
"["+ GAMMA +
"]";
94 pfx = pfx +
"["+ SIGMA_NOUGHT +
"]";
98 pfx = pfx +
"["+ BETA_NOUGHT +
"]";
103 std::string s = pfx + INCIDENCE_ANGLE_CORRECTION_NAME_KW;
106 s = pfx + PIXEL_FIRST_NOISE_VALUE_KW;
109 s = pfx + STEP_SIZE_KW;
112 s = pfx + NUMBER_OF_NOISE_LEVEL_VALUE_KW;
135 static const char MODULE[] =
"RadarSat2NoiseLevel::loadState";
139 const char* lookup = 0;
151 pfx = pfx +
"["+ GAMMA +
"]";
155 pfx = pfx +
"["+ SIGMA_NOUGHT +
"]";
159 pfx = pfx +
"["+ BETA_NOUGHT +
"]";
164 std::string s1 = pfx +
"["+ GAMMA +
"]";
165 lookup = kwl.
find(s1.c_str(), INCIDENCE_ANGLE_CORRECTION_NAME_KW);
168 std::string s1 = pfx +
"["+ SIGMA_NOUGHT +
"]";
169 lookup = kwl.
find(s1.c_str(), INCIDENCE_ANGLE_CORRECTION_NAME_KW);
172 std::string s1 = pfx +
"["+ BETA_NOUGHT +
"]";
173 lookup = kwl.
find(s1.c_str(), INCIDENCE_ANGLE_CORRECTION_NAME_KW);
177 << MODULE <<
" Keyword not found: " << INCIDENCE_ANGLE_CORRECTION_NAME_KW <<
"\n";
186 lookup = kwl.
find(s1.c_str(), PIXEL_FIRST_NOISE_VALUE_KW);
195 << MODULE <<
" Keyword not found: " << PIXEL_FIRST_NOISE_VALUE_KW <<
"\n";
199 lookup = kwl.
find(s1.c_str(), STEP_SIZE_KW);
208 << MODULE <<
" Keyword not found: " << STEP_SIZE_KW <<
"\n";
212 lookup = kwl.
find(s1.c_str(), NUMBER_OF_NOISE_LEVEL_VALUE_KW);
221 << MODULE <<
" Keyword not found: " << NUMBER_OF_NOISE_LEVEL_VALUE_KW <<
"\n";
226 lookup = kwl.
find(s1.c_str(), UNITS_KW);
234 << MODULE <<
" Keyword not found: " << UNITS_KW <<
"\n";
254 <<
" Keyword " << NOISE_LEVEL_VALUES_KW
255 <<
" is different with the number of noise level values" 260 lookup = kwl.
find(s1.c_str(), GAIN_KW);
268 << MODULE <<
" Keyword not found: " << GAIN_KW <<
"\n";
272 lookup = kwl.
find(s1.c_str(), OFFSET_KW);
281 << MODULE <<
" Keyword not found: " << OFFSET_KW <<
"\n";
289 <<
" Keyword " << NOISE_LEVEL_VALUES_KW
290 <<
" is different with the number of noise level values" 302 out << setprecision(15) << setiosflags(ios::fixed)
303 <<
"\n RadarSat2NoiseLevel class data members:\n";
RadarSat2NoiseLevel()
Constructor.
ossimString _gain
lookup table
Represents serializable keyword/value map.
const char * find(const char *key) const
ossim_uint32 _stepSize
step Size
virtual std::ostream & print(std::ostream &out) const
RadarSat2NoiseLevel & operator=(const RadarSat2NoiseLevel &rhs)
Affectation operator.
static ossimString toString(bool aValue)
Numeric to string methods.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
ossim_uint32 toUInt32() const
ossimString _incidenceAngleCorrectionName
Incidence Angle correction Name.
std::vector< ossim_float64 > _noiseLevelValues
noise Level Values
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
const char * chars() const
For backward compatibility.
ossim_float64 toFloat64() const
ossim_uint32 _pixelFirstNoiseValue
pixel First Noise Value
This class represents an Noise.
ossim_uint32 _numberOfNoiseLevelValues
number Of Noise Level Values
ossim_float64 _offset
offset value
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
virtual ~RadarSat2NoiseLevel()
Destructor.
ossimString _units
noise Level units
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.