From 755dec415283fbc0471c9b8ca54cd63477d7ee08 Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org>
Date: Wed, 10 Sep 2014 17:44:46 +0200
Subject: [PATCH] ENH: add default value for pixel size to 1.

---
 Applications/Radiometry/otbOpticalCalibration.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Applications/Radiometry/otbOpticalCalibration.cxx b/Applications/Radiometry/otbOpticalCalibration.cxx
index 0aea2b6473..1a8b795708 100644
--- a/Applications/Radiometry/otbOpticalCalibration.cxx
+++ b/Applications/Radiometry/otbOpticalCalibration.cxx
@@ -344,6 +344,8 @@ private:
                             "compute adjacency effects, it doesn't have to"
                             "match the image spacing");
     SetMinimumParameterFloatValue("atmo.pixsize",0.0);
+    SetDefaultParameterFloat("atmo.pixsize", 1.);
+
     MandatoryOff("atmo.pixsize");
 
     // Doc example parameter settings
-- 
GitLab