changes in resolution window (added parameter for extent), TRIAL: changes in YLims of pickwindow after init Pick
This commit is contained in:
@@ -436,7 +436,7 @@ def getsignalwin(t, t1, tsignal):
|
||||
return isignal
|
||||
|
||||
|
||||
def getResolutionWindow(snr, aperture):
|
||||
def getResolutionWindow(snr, extent):
|
||||
"""
|
||||
Number -> Float
|
||||
produce the half of the time resolution window width from given SNR
|
||||
@@ -447,6 +447,8 @@ def getResolutionWindow(snr, aperture):
|
||||
1.5 > SNR -> 15 sec VLRW
|
||||
see also Diehl et al. 2009
|
||||
|
||||
:parameter: extent, can be 'local', 'regional', 'global'
|
||||
|
||||
>>> getResolutionWindow(0.5)
|
||||
7.5
|
||||
>>> getResolutionWindow(1.8)
|
||||
@@ -466,15 +468,15 @@ def getResolutionWindow(snr, aperture):
|
||||
}
|
||||
|
||||
if snr < 1.5:
|
||||
time_resolution = res_wins[aperture]['VLRW']
|
||||
time_resolution = res_wins[extent]['VLRW']
|
||||
elif snr < 2.:
|
||||
time_resolution = res_wins[aperture]['LRW']
|
||||
time_resolution = res_wins[extent]['LRW']
|
||||
elif snr < 3.:
|
||||
time_resolution = res_wins[aperture]['MRW']
|
||||
time_resolution = res_wins[extent]['MRW']
|
||||
elif snr >3.:
|
||||
time_resolution = res_wins[aperture]['HRW']
|
||||
time_resolution = res_wins[extent]['HRW']
|
||||
else:
|
||||
time_resolution = res_wins[aperture]['VLRW']
|
||||
time_resolution = res_wins[extent]['VLRW']
|
||||
|
||||
return time_resolution / 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user