From 2503dd9f89bcc1ca6ba255bb1179947c87fbb17a Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org>
Date: Wed, 18 Apr 2012 08:59:14 +0200
Subject: [PATCH] ENH:add log information in calibration application

---
 Applications/Radiometry/otbOpticalCalibration.cxx | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Applications/Radiometry/otbOpticalCalibration.cxx b/Applications/Radiometry/otbOpticalCalibration.cxx
index 08ede82255..a34c8b8280 100644
--- a/Applications/Radiometry/otbOpticalCalibration.cxx
+++ b/Applications/Radiometry/otbOpticalCalibration.cxx
@@ -256,15 +256,14 @@ namespace otb
               m_ReflectanceToSurfaceReflectanceFilter->UpdateOutputInformation();
               m_ReflectanceToSurfaceReflectanceFilter->SetUseGenerateParameters(false);
 
-              //itk::OStringStream oss;
-              // oss.str("");
-              // oss << m_AtmosphericParam;
-              // //           std::cout << oss.str() << std::endl;
+	      std::ostringstream oss;
+              oss.str("");
+              oss << m_AtmosphericParam;
 
-              // AtmosphericRadiativeTerms::Pointer atmoTerms =  m_ReflectanceToSurfaceReflectanceFilter->GetAtmosphericRadiativeTerms();
-              // oss << std::endl << atmoTerms;
-              // std::cout << oss.str() << std::endl;
+	      AtmosphericRadiativeTerms::Pointer atmoTerms =  m_ReflectanceToSurfaceReflectanceFilter->GetAtmosphericRadiativeTerms();
+              oss << std::endl << std::endl << atmoTerms ;
 
+	      GetLogger()->Info("Atmospheric correction parameters : " + oss.str());
               //rescale the surface reflectance in milli-reflectance
 
               m_ReflectanceToSurfaceReflectanceFilter->UpdateOutputInformation();
-- 
GitLab