From 7933ae0eaaa8cb499c767673356d61ee4553a3d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABlle=20USSEGLIO?= <gaelle.usseglio@cnes.fr>
Date: Wed, 9 Jan 2019 15:38:22 +0000
Subject: [PATCH] ENH : Enable Reramp and set allpixels SARBurstExtraction mode
 to False

---
 python_src/diapOTB_S1IW.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/python_src/diapOTB_S1IW.py b/python_src/diapOTB_S1IW.py
index 145bb9d..1304ccf 100644
--- a/python_src/diapOTB_S1IW.py
+++ b/python_src/diapOTB_S1IW.py
@@ -243,6 +243,7 @@ if __name__ == "__main__":
         appBurstExtractionMaster.SetParameterString("in", master_Image)
         appBurstExtractionMaster.SetParameterString("out", os.path.join(burst_dir, burstM))
         appBurstExtractionMaster.SetParameterInt("burstindex", burstId)
+        appBurstExtractionMaster.SetParameterEmpty("allpixels", False)
         appBurstExtractionMaster.SetParameterString("ram", "4000")
         appBurstExtractionMaster.ExecuteAndWriteOutput()
 
@@ -298,6 +299,7 @@ if __name__ == "__main__":
         appBurstExtractionSlave.SetParameterString("in", slave_Image)
         appBurstExtractionSlave.SetParameterString("out", os.path.join(burst_dir, burstS))
         appBurstExtractionSlave.SetParameterInt("burstindex", burstId)
+        appBurstExtractionSlave.SetParameterEmpty("allpixels", False)
         appBurstExtractionSlave.SetParameterString("ram", "4000")
         appBurstExtractionSlave.ExecuteAndWriteOutput()
     
@@ -482,11 +484,12 @@ if __name__ == "__main__":
 
         ######## SARDeramp Application (reramp mode) #######
         print("\n Deramping Application \n")
-         # Slave (CoRegistrated)
+        # Slave (CoRegistrated)
         burstCoReRerampS = os.path.splitext(slave_Image_base)[0] + "_burst" + str(burstId) + "_coregistrated_reramp" + ".tif"
         appDerampSlave = otb.Registry.CreateApplication("SARDeramp")
         appDerampSlave.SetParameterString("in", os.path.join(burst_dir, slave_Image_CoRe))
         appDerampSlave.SetParameterString("out", os.path.join(burst_dir, burstCoReRerampS))
+        appDerampSlave.SetParameterEmpty("reramp", True)
         appDerampSlave.SetParameterString("ram", "4000")
         appDerampSlave.ExecuteAndWriteOutput()
 
-- 
GitLab