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

ENH : Correction on ESD Loop for SAR_MultiSlc_IW

parent 5162e6db
No related branches found
No related tags found
No related merge requests found
......@@ -165,10 +165,18 @@ if __name__ == "__main__":
ml_geoGrid_range = int(rng)
ml_geoGrid_azimut = int(azi)
gain_interfero = dict_DInSAR['parameter']['Interferogram_gain']
# esd loop
esd_AutoMode = False # automatic mode to apply a threshold inside the esd loop
esd_NbIter = 0
esd_AutoMode = "none"
if 'ESD_iter' in dict_DInSAR['parameter']:
esd_NbIter, esd_AutoMode = dict_DInSAR['parameter']['ESD_iter']
esd_NbIter = dict_DInSAR['parameter']['ESD_iter']
if not isinstance(esd_NbIter, int) :
esd_AutoMode = True
esd_NbIter = 10 # 10 iterations maximum for automatic mode
else :
esd_AutoMode = True
esd_NbIter = 10 # 10 iterations maximum for automatic mode
# ====== Check Threshold
if (geoGrid_threshold < 0) or (geoGrid_threshold > 1) :
......
......@@ -134,7 +134,7 @@ def esd_correct_interferogram(validBurstMaster, validBurstSlave, master_Image_ba
slave_Image_CoRe = os.path.splitext(slave_Image_base)[0] + "_burst" + str(burstId) + "_coregistrated.tif"
coRe_path = os.path.join(esd_dir, slave_Image_CoRe)
appCoRegistration = otb.Registry.CreateApplication("SARCoRegistration")
appCoRegistration.SetParameterString("insarmaster", os.path.join(burst_dir, burstDerampM))
appCoRegistration.SetParameterString("insarmaster", os.path.join(Master_burst_dir, burstDerampM))
appCoRegistration.SetParameterString("insarslave", os.path.join(burst_dir, burstDerampS))
appCoRegistration.SetParameterInputImage("ingrid", appGridOff.GetParameterOutputImage("out"))
appCoRegistration.SetParameterInt("gridstepazimut", gridstepazimut)
......
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