[new] add extent option "active" to pick high frequency active seismic data
This commit is contained in:
parent
e4cfebe989
commit
f8f4e6789c
@ -166,7 +166,7 @@ def installPyLoT(verbosity=None):
|
|||||||
if verbosity > 1:
|
if verbosity > 1:
|
||||||
print('copying input files into destination folder ...')
|
print('copying input files into destination folder ...')
|
||||||
ans = input('please specify scope of interest '
|
ans = input('please specify scope of interest '
|
||||||
'([0]=local, 1=regional, 2=global) :') or 0
|
'([0]=local, 1=regional, 2=global, 3=active) :') or 0
|
||||||
if not isinstance(ans, int):
|
if not isinstance(ans, int):
|
||||||
ans = int(ans)
|
ans = int(ans)
|
||||||
if ans == 0:
|
if ans == 0:
|
||||||
@ -175,6 +175,8 @@ def installPyLoT(verbosity=None):
|
|||||||
ans = 'regional'
|
ans = 'regional'
|
||||||
elif ans == 2:
|
elif ans == 2:
|
||||||
ans = 'global'
|
ans = 'global'
|
||||||
|
elif ans == 3:
|
||||||
|
ans = 'active'
|
||||||
link_dest = []
|
link_dest = []
|
||||||
for file, destination in files_to_copy.items():
|
for file, destination in files_to_copy.items():
|
||||||
link_file = ans in file
|
link_file = ans in file
|
||||||
|
@ -27,7 +27,7 @@ defaults = {'rootpath': {'type': str,
|
|||||||
'namestring': 'Event ID'},
|
'namestring': 'Event ID'},
|
||||||
|
|
||||||
'extent': {'type': str,
|
'extent': {'type': str,
|
||||||
'tooltip': 'extent of array ("local", "regional" or "global")',
|
'tooltip': 'extent of array ("active", "local", "regional" or "global")',
|
||||||
'value': 'local',
|
'value': 'local',
|
||||||
'namestring': 'Array extent'},
|
'namestring': 'Array extent'},
|
||||||
|
|
||||||
|
@ -548,13 +548,14 @@ def getResolutionWindow(snr, extent):
|
|||||||
see also Diehl et al. 2009
|
see also Diehl et al. 2009
|
||||||
:param snr: Signal to noise ration which decides the witdth of the resolution window
|
:param snr: Signal to noise ration which decides the witdth of the resolution window
|
||||||
:type snr: float
|
:type snr: float
|
||||||
:param extent: can be 'local', 'regional', 'global'
|
:param extent: can be 'active', 'local', 'regional', 'global'
|
||||||
:type extent: str
|
:type extent: str
|
||||||
:return: half width of the resolution window
|
:return: half width of the resolution window
|
||||||
:rtype: float
|
:rtype: float
|
||||||
"""
|
"""
|
||||||
|
|
||||||
res_wins = {
|
res_wins = {
|
||||||
|
'active': {'HRW': .02, 'MRW': .05, 'LRW': .1, 'VLRW': .15},
|
||||||
'regional': {'HRW': 2., 'MRW': 5., 'LRW': 10., 'VLRW': 15.},
|
'regional': {'HRW': 2., 'MRW': 5., 'LRW': 10., 'VLRW': 15.},
|
||||||
'local': {'HRW': 2., 'MRW': 5., 'LRW': 10., 'VLRW': 15.},
|
'local': {'HRW': 2., 'MRW': 5., 'LRW': 10., 'VLRW': 15.},
|
||||||
'global': {'HRW': 40., 'MRW': 100., 'LRW': 200., 'VLRW': 300.}
|
'global': {'HRW': 40., 'MRW': 100., 'LRW': 200., 'VLRW': 300.}
|
||||||
|
Loading…
Reference in New Issue
Block a user