Marginal changes.
This commit is contained in:
parent
99adb5ce9c
commit
27155ad816
24
autoPyLoT.py
24
autoPyLoT.py
@ -12,7 +12,7 @@ from pylot.core.util import _getVersionString
|
|||||||
from pylot.core.read import Data, AutoPickParameter
|
from pylot.core.read import Data, AutoPickParameter
|
||||||
from pylot.core.pick.run_autopicking import run_autopicking
|
from pylot.core.pick.run_autopicking import run_autopicking
|
||||||
from pylot.core.util.structure import DATASTRUCTURE
|
from pylot.core.util.structure import DATASTRUCTURE
|
||||||
from pylot.core.pick.utils import wadaticheck
|
from pylot.core.pick.utils import wadaticheck, checkPonsets
|
||||||
import pdb
|
import pdb
|
||||||
__version__ = _getVersionString()
|
__version__ = _getVersionString()
|
||||||
|
|
||||||
@ -51,6 +51,7 @@ def autoPyLoT(inputfile):
|
|||||||
# get some parameters for quality control from
|
# get some parameters for quality control from
|
||||||
# parameter input file (usually autoPyLoT.in).
|
# parameter input file (usually autoPyLoT.in).
|
||||||
wdttolerance = parameter.getParam('wdttolerance')
|
wdttolerance = parameter.getParam('wdttolerance')
|
||||||
|
mdttolerance = parameter.getParam('mdttolerance')
|
||||||
iplot = parameter.getParam('iplot')
|
iplot = parameter.getParam('iplot')
|
||||||
|
|
||||||
data = Data()
|
data = Data()
|
||||||
@ -105,10 +106,11 @@ def autoPyLoT(inputfile):
|
|||||||
allonsets[station] = picks
|
allonsets[station] = picks
|
||||||
|
|
||||||
# quality control
|
# quality control
|
||||||
# jackknife on P onset times
|
# median check and jackknife on P onset times
|
||||||
|
checkedonsetsjk = checkPonsets(allonsets, mdttolerance, iplot)
|
||||||
# check S-P times (Wadati)
|
# check S-P times (Wadati)
|
||||||
checkedonsets = wadaticheck(allonsets, wdttolerance, iplot)
|
checkedonsetwd = wadaticheck(checkedonsetsjk, wdttolerance, iplot)
|
||||||
# jackknife on S onset times
|
|
||||||
print '------------------------------------------'
|
print '------------------------------------------'
|
||||||
print '-----Finished event %s!-----' % event
|
print '-----Finished event %s!-----' % event
|
||||||
print '------------------------------------------'
|
print '------------------------------------------'
|
||||||
@ -128,11 +130,12 @@ def autoPyLoT(inputfile):
|
|||||||
station = wfdat[0].stats.station
|
station = wfdat[0].stats.station
|
||||||
allonsets = {station: picks}
|
allonsets = {station: picks}
|
||||||
for i in range(len(wfdat)):
|
for i in range(len(wfdat)):
|
||||||
|
#for i in range(0,10):
|
||||||
stationID = wfdat[i].stats.station
|
stationID = wfdat[i].stats.station
|
||||||
#check if station has already been processed
|
#check if station has already been processed
|
||||||
if stationID not in procstats:
|
if stationID not in procstats:
|
||||||
procstats.append(stationID)
|
procstats.append(stationID)
|
||||||
#find corresponding streams
|
# find corresponding streams
|
||||||
statdat = wfdat.select(station=stationID)
|
statdat = wfdat.select(station=stationID)
|
||||||
######################################################
|
######################################################
|
||||||
# get onset times and corresponding picking parameters
|
# get onset times and corresponding picking parameters
|
||||||
@ -142,11 +145,12 @@ def autoPyLoT(inputfile):
|
|||||||
station = stationID
|
station = stationID
|
||||||
allonsets[station] = picks
|
allonsets[station] = picks
|
||||||
|
|
||||||
#quality control
|
# quality control
|
||||||
#jackknife on P onset times
|
# median check and jackknife on P onset times
|
||||||
#check S-P times (Wadati)
|
checkedonsetsjk = checkPonsets(allonsets, mdttolerance, iplot)
|
||||||
checkedonsets = wadaticheck(allonsets, wdttolerance, iplot)
|
# check S-P times (Wadati)
|
||||||
#jackknife on S onset times
|
checkedonsetswd = wadaticheck(checkedonsetsjk, wdttolerance, iplot)
|
||||||
|
|
||||||
print '------------------------------------------'
|
print '------------------------------------------'
|
||||||
print '-------Finished event %s!-------' % parameter.getParam('eventID')
|
print '-------Finished event %s!-------' % parameter.getParam('eventID')
|
||||||
print '------------------------------------------'
|
print '------------------------------------------'
|
||||||
|
Loading…
Reference in New Issue
Block a user