Minor changes.
This commit is contained in:
parent
6d5e9fdfcd
commit
a01b6f6db5
16
autoPyLoT.py
16
autoPyLoT.py
@ -14,6 +14,7 @@ import pylot.core.loc.hypo71 as hypo71
|
|||||||
import pylot.core.loc.velest as velest
|
import pylot.core.loc.velest as velest
|
||||||
import pylot.core.loc.hypodd as hypodd
|
import pylot.core.loc.hypodd as hypodd
|
||||||
import pylot.core.loc.focmec as focmec
|
import pylot.core.loc.focmec as focmec
|
||||||
|
import pylot.core.loc.hash as hash
|
||||||
import pylot.core.loc.nll as nll
|
import pylot.core.loc.nll as nll
|
||||||
from pylot.core.analysis.magnitude import MomentMagnitude, RichterMagnitude
|
from pylot.core.analysis.magnitude import MomentMagnitude, RichterMagnitude
|
||||||
from pylot.core.io.data import Data
|
from pylot.core.io.data import Data
|
||||||
@ -231,6 +232,12 @@ def autoPyLoT(inputfile):
|
|||||||
##########################################################
|
##########################################################
|
||||||
# write phase files for various location
|
# write phase files for various location
|
||||||
# and fault mechanism calculation routines
|
# and fault mechanism calculation routines
|
||||||
|
# ObsPy event object
|
||||||
|
data.applyEVTData(picks)
|
||||||
|
if evt is not None:
|
||||||
|
data.applyEVTData(evt, 'event')
|
||||||
|
fnqml = '%s/autoPyLoT' % event
|
||||||
|
data.exportEvent(fnqml)
|
||||||
# HYPO71
|
# HYPO71
|
||||||
hypo71file = '%s/autoPyLoT_HYPO71_phases' % event
|
hypo71file = '%s/autoPyLoT_HYPO71_phases' % event
|
||||||
hypo71.export(picks, hypo71file, parameter)
|
hypo71.export(picks, hypo71file, parameter)
|
||||||
@ -246,12 +253,9 @@ def autoPyLoT(inputfile):
|
|||||||
# FOCMEC
|
# FOCMEC
|
||||||
focmecfile = '%s/autoPyLoT_FOCMEC.in' % event
|
focmecfile = '%s/autoPyLoT_FOCMEC.in' % event
|
||||||
focmec.export(picks, focmecfile, parameter, evt)
|
focmec.export(picks, focmecfile, parameter, evt)
|
||||||
# ObsPy event object
|
# HASH
|
||||||
data.applyEVTData(picks)
|
hashfile = '%s/autoPyLoT_HASH' % event
|
||||||
if evt is not None:
|
hash.export(picks, hashfile, parameter, evt)
|
||||||
data.applyEVTData(evt, 'event')
|
|
||||||
fnqml = '%s/autoPyLoT' % event
|
|
||||||
data.exportEvent(fnqml)
|
|
||||||
|
|
||||||
endsplash = '''------------------------------------------\n'
|
endsplash = '''------------------------------------------\n'
|
||||||
-----Finished event %s!-----\n'
|
-----Finished event %s!-----\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user