From 34fb0b66fa3619d5d941f18f9b57dab71ef5a679 Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Tue, 28 Apr 2020 15:59:34 -0700 Subject: [PATCH] Stack: skip PU if input method is "no" --- contrib/stack/stripmapStack/Stack.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/contrib/stack/stripmapStack/Stack.py b/contrib/stack/stripmapStack/Stack.py index 85acd8c..0f74c2c 100755 --- a/contrib/stack/stripmapStack/Stack.py +++ b/contrib/stack/stripmapStack/Stack.py @@ -598,12 +598,14 @@ class run(object): #configObj.filtStrength = filtStrength configObj.filterCoherence('[Function-2]') - configObj.igram = configObj.filtIgram - configObj.unwIfg = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] - configObj.noMCF = noMCF - configObj.master = os.path.join(self.slcDir,stackMaster +'/data') - configObj.defoMax = defoMax - configObj.unwrap('[Function-3]') + # skip phase unwrapping if input method == no + if self.unwMethod.lower() != 'no': + configObj.igram = configObj.filtIgram + configObj.unwIfg = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] + configObj.noMCF = noMCF + configObj.master = os.path.join(self.slcDir,stackMaster +'/data') + configObj.defoMax = defoMax + configObj.unwrap('[Function-3]') configObj.finalize() self.runf.write(self.text_cmd+'stripmapWrapper.py -c '+ configName+'\n')