stripmapStack: expose --filter_strength option in stackStripMap
expose the -f / --filter_strength option in the parser to user so that one is able to change the filtering strength. Default is setted as the hardwired value - 0.8, so previous setting won't be affected.LT1AB
parent
711e67ef30
commit
b062a6a150
|
@ -5,7 +5,7 @@
|
||||||
import os, imp, sys, glob
|
import os, imp, sys, glob
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
import datetime
|
import datetime
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import shelve
|
import shelve
|
||||||
import isce
|
import isce
|
||||||
|
@ -575,7 +575,7 @@ class run(object):
|
||||||
configObj.igram = configObj.outDir+'.int'
|
configObj.igram = configObj.outDir+'.int'
|
||||||
configObj.filtIgram = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] + '.int'
|
configObj.filtIgram = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] + '.int'
|
||||||
configObj.coherence = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] + '.cor'
|
configObj.coherence = os.path.dirname(configObj.outDir) + '/filt_' + pair[0] + '_' + pair[1] + '.cor'
|
||||||
configObj.filtStrength = filtStrength
|
#configObj.filtStrength = filtStrength
|
||||||
configObj.filterCoherence('[Function-2]')
|
configObj.filterCoherence('[Function-2]')
|
||||||
|
|
||||||
configObj.igram = configObj.filtIgram
|
configObj.igram = configObj.filtIgram
|
||||||
|
|
|
@ -56,6 +56,11 @@ def createParser():
|
||||||
help='sub-band band width')
|
help='sub-band band width')
|
||||||
parser.add_argument('-u', '--unw_method', dest='unwMethod', type=str, default='snaphu'
|
parser.add_argument('-u', '--unw_method', dest='unwMethod', type=str, default='snaphu'
|
||||||
, help='unwrapping method (icu, snaphu, or snaphu2stage)')
|
, help='unwrapping method (icu, snaphu, or snaphu2stage)')
|
||||||
|
|
||||||
|
parser.add_argument('-f','--filter_strength', dest='filtStrength', type=str, default=filtStrength,
|
||||||
|
help='strength of Goldstein filter applied to the wrapped phase before spatial coherence estimation.'
|
||||||
|
' Default: {}'.format(filtStrength))
|
||||||
|
|
||||||
parser.add_argument('--filter_sigma_x', dest='filterSigmaX', type=str, default='100'
|
parser.add_argument('--filter_sigma_x', dest='filterSigmaX', type=str, default='100'
|
||||||
, help='filter sigma for gaussian filtering the dispersive and nonDispersive phase')
|
, help='filter sigma for gaussian filtering the dispersive and nonDispersive phase')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue