From 945fbf1417801b0e6210f144f061b73a09585923 Mon Sep 17 00:00:00 2001 From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr> Date: Wed, 4 Jun 2014 12:06:58 +0200 Subject: [PATCH] TEST: print the correct line for reflectances also --- Code/Simulation/otbReduceSpectralResponse.txx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Code/Simulation/otbReduceSpectralResponse.txx b/Code/Simulation/otbReduceSpectralResponse.txx index caaf954d2e..09a2377c53 100644 --- a/Code/Simulation/otbReduceSpectralResponse.txx +++ b/Code/Simulation/otbReduceSpectralResponse.txx @@ -279,14 +279,19 @@ ReduceSpectralResponse<TSpectralResponse , TRSR> os<<std::endl; os << "spectre " << m_InputSpectralResponse <<std::endl; os << "Sat RSR " << m_InputSatRSR <<std::endl; + os<<std::endl; + if(m_ReflectanceMode) { os << "Solar irradiance " << std::endl; this->m_InputSatRSR->GetSolarIrradiance()->PrintSelf(os, indent); + os<<std::endl; + os <<indent << "[Center Wavelength (micrometers), Reflectance (percent)]" << std::endl; } - - os<<std::endl; + else{ os <<indent << "[Center Wavelength (micrometers), Luminance (percent)]" << std::endl; + } + for(typename VectorPairType::const_iterator it = m_ReduceResponse->GetResponse().begin(); it != m_ReduceResponse->GetResponse().end(); ++it) { os <<indent << "Band Nb : "<< it - m_ReduceResponse->GetResponse().begin() << ": [" << (*it).first << ","<< (*it).second << "]" << std::endl; -- GitLab