Skip to content
Snippets Groups Projects
Commit e396bb82 authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

UPDATE : Add ML factors for image names into DiapOTB python chain

parent 8e4a3280
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ if __name__ == "__main__":
###################### SARMultiLook Application #########################
# Master
master_Image_ML = os.path.splitext(master_Image_base)[0] + "_ml.tif"
master_Image_ML = os.path.splitext(master_Image_base)[0] + "_ml" + str(ml_azimut) + str(ml_range) + ".tif"
appMultiLookMaster = otb.Registry.CreateApplication("SARMultiLook")
appMultiLookMaster.SetParameterString("incomplex", master_Image)
appMultiLookMaster.SetParameterString("out", os.path.join(output_dir, master_Image_ML))
......@@ -175,7 +175,7 @@ if __name__ == "__main__":
appMultiLookMaster.ExecuteAndWriteOutput()
# Slave
slave_Image_ML = os.path.splitext(slave_Image_base)[0] + "_ml.tif"
slave_Image_ML = os.path.splitext(slave_Image_base)[0] + "_ml" + str(ml_azimut) + str(ml_range) + ".tif"
appMultiLookSlave = otb.Registry.CreateApplication("SARMultiLook")
appMultiLookSlave.SetParameterString("incomplex", slave_Image)
appMultiLookSlave.SetParameterString("out", os.path.join(output_dir, slave_Image_ML))
......@@ -186,7 +186,7 @@ if __name__ == "__main__":
appMultiLookSlave.ExecuteAndWriteOutput()
########### SARDEMToAmplitude Application (Simu_SAR step) ################
amplitude_simu_image = os.path.splitext(master_Image_base)[0] + "_simuSAR.tif"
amplitude_simu_image = os.path.splitext(master_Image_base)[0] + "_simuSAR" + "_ml" + str(ml_simu_azimut) + str(ml_simu_range) + ".tif"
appDEMToAmplitude = otb.Registry.CreateApplication("SARDEMToAmplitude")
appDEMToAmplitude.SetParameterString("insar", master_Image)
appDEMToAmplitude.SetParameterString("indem", dem)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment