From f10d65dd42a76af4aeb08ca6bc19fa33dc762fb9 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Thu, 6 Dec 2007 07:50:59 +0000
Subject: [PATCH] Modification sur AtmosphericRadiativeTerms (prise en compte
 des differents canaux).

---
 ...arametersTo6SAtmosphericRadiativeTerms.cxx | 51 +++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx

diff --git a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx
new file mode 100644
index 0000000000..7238f2835a
--- /dev/null
+++ b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx
@@ -0,0 +1,51 @@
+/*=========================================================================
+
+  Program:   ORFEO Toolbox
+  Language:  C++
+  Date:      $Date$
+  Version:   $Revision$
+
+
+  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
+  See OTBCopyright.txt for details.
+
+
+     This software is distributed WITHOUT ANY WARRANTY; without even 
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+     PURPOSE.  See the above copyright notices for more information.
+
+=========================================================================*/
+
+#include "otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.h"
+#include "otbAtmosphericCorrectionParameters.h"
+
+int otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms(int argc, char * argv[])
+{
+  typedef otb::AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms  AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsType;
+  typedef otb::AtmosphericCorrectionParameters AtmosphericCorrectionParametersType;
+  typedef AtmosphericCorrectionParametersType::AerosolModelType AerosolModelType;
+  /*
+  // Instantiating object
+  AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsType::Pointer object = AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsType::New();
+  AtmosphericCorrectionParametersType param; // =  otbAtmosphericCorrectionParameters::New();
+  AerosolModelType aerosolModel;
+  
+  
+  
+  AerosolModelType AerosolModel;
+  
+  param->SetSolarZenithalAngle(static_cast<double>(::atof(argv[])));
+  param->SetSolarAzimutalAngle(static_cast<double>(::atof(argv[])));
+  param->SetViewingZenithalAngle(static_cast<double>(::atof(argv[])));
+  param->SetViewingAzimutalAngle(static_cast<double>(::atof(argv[])));
+  param->SetMonth(::atoi(argv[]));
+  param->SetDay(::atoi(argv[]));
+  param->SetAtmosphericPressure(static_cast<double>(::atof(argv[]))); 
+  param->SetWaterVaporAmount(static_cast<double>(::atof(argv[])));
+  param->SetOzoneAmount(static_cast<double>(::atof(argv[])));
+  aerosolModel = static_cast<AerosolModelType>(::atoi(argv[]));
+  param->SetAerosolModel(aerosolModel);
+  param->SetAerosolOptical(static_cast<double>(::atof(argv[])));
+  */
+  return EXIT_SUCCESS;
+}
-- 
GitLab