From b96f81553d49ba0e935b72e9b8263fdcef7e621b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 26 Oct 2015 09:42:25 +0100 Subject: [PATCH] Implemented new function for writing phase files for various kinds of location tools. --- autoPyLoT.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autoPyLoT.py b/autoPyLoT.py index 3084f1ad..767881af 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -13,6 +13,7 @@ from pylot.core.read.data import Data from pylot.core.read.inputs import AutoPickParameter from pylot.core.util.structure import DATASTRUCTURE from pylot.core.pick.autopick import autopickevent +from pylot.core.pick.utils import writephases __version__ = _getVersionString() @@ -85,6 +86,9 @@ def autoPyLoT(inputfile): # !automated picking starts here! picks = autopickevent(wfdat, parameter) + # write phases to NLLoc-phase file + writephases(wd_checked_onsets, 'NLLoc', phasefile) + print '------------------------------------------' print '-----Finished event %s!-----' % event print '------------------------------------------' @@ -100,6 +104,9 @@ def autoPyLoT(inputfile): # !automated picking starts here! picks = autopickevent(wfdat, parameter) + # write phases to NLLoc-phase file + writephases(wd_checked_onsets, 'NLLoc', phasefile) + print '------------------------------------------' print '-------Finished event %s!-------' % parameter.getParam('eventID') print '------------------------------------------'