From e7be7f3b3e0ed4d5b2be3c2a544296176335df99 Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org> Date: Tue, 8 Jul 2014 10:13:02 +0200 Subject: [PATCH] ENH: activate reflectance mode for spectral response reduction in LAIProsailExample --- Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx b/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx index 3533d63f96..39e63e20fa 100644 --- a/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx +++ b/Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx @@ -335,7 +335,9 @@ public: // Software Guide : BeginLatex // - // Satellite RSR is initialized and set with \code{aResponse}. + // Satellite RSR is initialized and set with \code{aResponse}. Reflectance + // mode is used in this case to take into account solar irradiance into + // spectral response reduction. // // Software Guide : EndLatex @@ -343,6 +345,9 @@ public: ReduceResponseTypePointerType reduceResponse = ReduceResponseType::New(); reduceResponse->SetInputSatRSR(m_SatRSR); reduceResponse->SetInputSpectralResponse(aResponse); + + reduceResponse->SetReflectanceMode(true); + reduceResponse->CalculateResponse(); VectorPairType reducedResponse = reduceResponse->GetReduceResponse()->GetResponse(); -- GitLab