From b9ac1bf7b230b8e8e32067872a4c3389714b33b2 Mon Sep 17 00:00:00 2001
From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr>
Date: Wed, 4 Jun 2014 11:59:43 +0200
Subject: [PATCH] TEST: output the solar irradiance for test purposes

---
 Code/Simulation/otbReduceSpectralResponse.txx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Code/Simulation/otbReduceSpectralResponse.txx b/Code/Simulation/otbReduceSpectralResponse.txx
index dc06d3ca36..8b85d480f5 100644
--- a/Code/Simulation/otbReduceSpectralResponse.txx
+++ b/Code/Simulation/otbReduceSpectralResponse.txx
@@ -279,13 +279,18 @@ ReduceSpectralResponse<TSpectralResponse , TRSR>
    os<<std::endl;
    os << "spectre " << m_InputSpectralResponse <<std::endl;
    os << "Sat RSR " << m_InputSatRSR <<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;
    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;
-   }
+   }   
 }
 
 } // end namespace otb
-- 
GitLab