[change] major change: wadati/JK checked picks REMOVED from autopicks
before, all picks were saved as XML automatically by autoPyLoT (also weight 8, 9), maybe change this to a more convenient way in the futur (e.g. add pick weight as ObsPy.Pick.comment ?)
This commit is contained in:
parent
0cf46a0cc3
commit
0eeb07583b
@ -589,7 +589,7 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
Ppicks = []
|
Ppicks = []
|
||||||
Spicks = []
|
Spicks = []
|
||||||
SPtimes = []
|
SPtimes = []
|
||||||
for key in pickdic:
|
for key in list(pickdic.keys()):
|
||||||
if pickdic[key]['P']['weight'] < 4 and pickdic[key]['S']['weight'] < 4:
|
if pickdic[key]['P']['weight'] < 4 and pickdic[key]['S']['weight'] < 4:
|
||||||
# calculate S-P time
|
# calculate S-P time
|
||||||
spt = pickdic[key]['S']['mpp'] - pickdic[key]['P']['mpp']
|
spt = pickdic[key]['S']['mpp'] - pickdic[key]['P']['mpp']
|
||||||
@ -619,16 +619,18 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
# calculate deviations from Wadati regression
|
# calculate deviations from Wadati regression
|
||||||
ii = 0
|
ii = 0
|
||||||
ibad = 0
|
ibad = 0
|
||||||
for key in pickdic:
|
for key in list(pickdic.keys()):
|
||||||
if 'SPt' in pickdic[key]:
|
if 'SPt' in pickdic[key]:
|
||||||
wddiff = abs(pickdic[key]['SPt'] - wdfit[ii])
|
wddiff = abs(pickdic[key]['SPt'] - wdfit[ii])
|
||||||
ii += 1
|
ii += 1
|
||||||
# check, if deviation is larger than adjusted
|
# check, if deviation is larger than adjusted
|
||||||
if wddiff > dttolerance:
|
if wddiff > dttolerance:
|
||||||
# mark onset and downgrade S-weight to 9
|
# remove pick from dictionary
|
||||||
# (not used anymore)
|
pickdic.pop(key)
|
||||||
marker = 'badWadatiCheck'
|
# # mark onset and downgrade S-weight to 9
|
||||||
pickdic[key]['S']['weight'] = 9
|
# # (not used anymore)
|
||||||
|
# marker = 'badWadatiCheck'
|
||||||
|
# pickdic[key]['S']['weight'] = 9
|
||||||
ibad += 1
|
ibad += 1
|
||||||
else:
|
else:
|
||||||
marker = 'goodWadatiCheck'
|
marker = 'goodWadatiCheck'
|
||||||
@ -639,7 +641,8 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
checkedSPtime = pickdic[key]['S']['mpp'] - pickdic[key]['P']['mpp']
|
checkedSPtime = pickdic[key]['S']['mpp'] - pickdic[key]['P']['mpp']
|
||||||
checkedSPtimes.append(checkedSPtime)
|
checkedSPtimes.append(checkedSPtime)
|
||||||
|
|
||||||
pickdic[key]['S']['marked'] = marker
|
pickdic[key]['S']['marked'] = marker
|
||||||
|
#pickdic[key]['S']['marked'] = marker
|
||||||
|
|
||||||
if len(checkedPpicks) >= 3:
|
if len(checkedPpicks) >= 3:
|
||||||
# calculate new slope
|
# calculate new slope
|
||||||
@ -873,15 +876,21 @@ def checkPonsets(pickdic, dttolerance, jackfactor=5, iplot=0, fig_dict=None):
|
|||||||
# mark P onset as checked and keep P weight
|
# mark P onset as checked and keep P weight
|
||||||
pickdic[goodstations[i]]['P']['marked'] = goodmarker
|
pickdic[goodstations[i]]['P']['marked'] = goodmarker
|
||||||
for i in range(0, len(badstations)):
|
for i in range(0, len(badstations)):
|
||||||
# mark P onset and downgrade P weight to 9
|
# remove pick from dictionary
|
||||||
# (not used anymore)
|
pickdic.pop(badstations[i])
|
||||||
pickdic[badstations[i]]['P']['marked'] = badmarker
|
|
||||||
pickdic[badstations[i]]['P']['weight'] = 9
|
|
||||||
for i in range(0, len(badjkstations)):
|
for i in range(0, len(badjkstations)):
|
||||||
# mark P onset and downgrade P weight to 9
|
# remove pick from dictionary
|
||||||
# (not used anymore)
|
pickdic.pop(badjkstations[i])
|
||||||
pickdic[badjkstations[i]]['P']['marked'] = badjkmarker
|
# for i in range(0, len(badstations)):
|
||||||
pickdic[badjkstations[i]]['P']['weight'] = 9
|
# # mark P onset and downgrade P weight to 9
|
||||||
|
# # (not used anymore)
|
||||||
|
# pickdic[badstations[i]]['P']['marked'] = badmarker
|
||||||
|
# pickdic[badstations[i]]['P']['weight'] = 9
|
||||||
|
# for i in range(0, len(badjkstations)):
|
||||||
|
# # mark P onset and downgrade P weight to 9
|
||||||
|
# # (not used anymore)
|
||||||
|
# pickdic[badjkstations[i]]['P']['marked'] = badjkmarker
|
||||||
|
# pickdic[badjkstations[i]]['P']['weight'] = 9
|
||||||
|
|
||||||
checkedonsets = pickdic
|
checkedonsets = pickdic
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user