From 837d6a38ce481cc9c79883f10460fa3f4713cd3f Mon Sep 17 00:00:00 2001
From: Charles Peyrega <charles.peyrega@c-s.fr>
Date: Wed, 15 May 2013 18:46:24 +0200
Subject: [PATCH] BUG: Removal of % characters in the documentations of OTB
 Applications

---
 Applications/Classification/otbTrainRandomForests.cxx | 2 +-
 Applications/Radiometry/otbOpticalCalibration.cxx     | 6 +++---
 Applications/Utils/otbConvert.cxx                     | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Applications/Classification/otbTrainRandomForests.cxx b/Applications/Classification/otbTrainRandomForests.cxx
index cbbff6463a..e0cd798d75 100644
--- a/Applications/Classification/otbTrainRandomForests.cxx
+++ b/Applications/Classification/otbTrainRandomForests.cxx
@@ -40,7 +40,7 @@ void TrainImagesClassifier::InitRandomForestsParams()
   SetParameterInt("classifier.rf.min", 5);
   SetParameterDescription(
       "classifier.rf.min", "If the number of samples in a node is smaller than this parameter, "
-      "then the node will not be split. A reasonable value is a small percentage of the total data e.g. 1\%.");
+      "then the node will not be split. A reasonable value is a small percentage of the total data e.g. 1 percent.");
 
   //RegressionAccuracy
   AddParameter(ParameterType_Float, "classifier.rf.ra", "Termination Criteria for regression tree");
diff --git a/Applications/Radiometry/otbOpticalCalibration.cxx b/Applications/Radiometry/otbOpticalCalibration.cxx
index a785d9a781..a8c585eb90 100644
--- a/Applications/Radiometry/otbOpticalCalibration.cxx
+++ b/Applications/Radiometry/otbOpticalCalibration.cxx
@@ -127,8 +127,8 @@ private:
     DisableParameter("milli");
     MandatoryOff("milli");
 
-    AddParameter(ParameterType_Empty, "clamp", "Clamp of reflectivity values between [0% , 100%]");
-    SetParameterDescription("clamp", "Clamping in the range [0% , 100%]. It can be usefull to preserve area with specular reflectance.");
+    AddParameter(ParameterType_Empty, "clamp", "Clamp of reflectivity values between [0, 100]");
+    SetParameterDescription("clamp", "Clamping in the range [0, 100]. It can be useful to preserve area with specular reflectance.");
     EnableParameter("clamp");
     MandatoryOff("clamp");
 
@@ -350,7 +350,7 @@ private:
         }
       else
         {
-        GetLogger()->Info("Clamp values between [0%,100%]");
+        GetLogger()->Info("Clamp values between [0, 100]");
         m_ClampFilter->SetInput(m_ReflectanceToSurfaceReflectanceFilter->GetOutput());
         m_ClampFilter->ClampOutside(0.0, 1.0);
         m_ScaleFilter->SetInput(m_ClampFilter->GetOutput());
diff --git a/Applications/Utils/otbConvert.cxx b/Applications/Utils/otbConvert.cxx
index e4b083236c..b7e21f0884 100644
--- a/Applications/Utils/otbConvert.cxx
+++ b/Applications/Utils/otbConvert.cxx
@@ -110,13 +110,13 @@ private:
     SetParameterDescription("hcp","Parameters to cut the histogram edges before rescaling");
 
     AddParameter(ParameterType_Float, "hcp.high", "High Cut Quantile");
-    SetParameterDescription("hcp.high", "Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2% by default)");
+    SetParameterDescription("hcp.high", "Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2 by default)");
     MandatoryOff("hcp.high");
     SetDefaultParameterFloat("hcp.high", 2.0);
     DisableParameter("hcp.high");
 
     AddParameter(ParameterType_Float, "hcp.low", "Low Cut Quantile");
-    SetParameterDescription("hcp.low", "Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2% by default)");
+    SetParameterDescription("hcp.low", "Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2 by default)");
     MandatoryOff("hcp.low");
     SetDefaultParameterFloat("hcp.low", 2.0);
     DisableParameter("hcp.low");
-- 
GitLab