Skip to content
Snippets Groups Projects
Commit 11e15445 authored by Christophe Palmann's avatar Christophe Palmann
Browse files

ENH: OpticalCalibration app; test if RSR file is correclty set (atmo.rsr).

parent 69ea6359
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,6 @@ public:
DoubleVectorImageType> ReflectanceToSurfaceReflectanceImageFilterType;
typedef ReflectanceToSurfaceReflectanceImageFilterType::FilterFunctionValuesType FilterFunctionValuesType;
typedef FilterFunctionValuesType::ValuesVectorType ValuesVectorType;
//typedef AtmosphericCorrectionParameters AtmosphericCorrectionParametersType; chris
//typedef AtmosphericCorrectionParametersType::AerosolModelType AerosolModelType; chris
typedef otb::AtmosphericCorrectionParameters AtmoCorrectionParametersType;
typedef otb::AtmosphericCorrectionParameters::Pointer AtmoCorrectionParametersPointerType;
......@@ -805,7 +803,10 @@ private:
// Relative Spectral Response File
if (IsParameterEnabled("atmo.rsr"))
{
m_paramAcqui->LoadFilterFunctionValue(GetParameterString("atmo.rsr"));
if ( !(GetParameterString("atmo.rsr") == "") )
m_paramAcqui->LoadFilterFunctionValue(GetParameterString("atmo.rsr"));
else
otbAppLogFATAL("Please, set a sensor relative spectral response file.");
}
else if (IMIName != IMIOptDfltName)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment