diff --git a/Applications/Radiometry/otbOpticalCalibration.cxx b/Applications/Radiometry/otbOpticalCalibration.cxx index 1d19d8d582c4e86986dbe5a0c4c2101aab81ccc8..4abd6a24df317eb1f9d2bb440f6c50704f4e2d19 100644 --- a/Applications/Radiometry/otbOpticalCalibration.cxx +++ b/Applications/Radiometry/otbOpticalCalibration.cxx @@ -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) {