From b8c26a6588dde1e6fb9aca120adfb3d912256bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 4 Nov 2015 16:52:39 +0100 Subject: [PATCH] Implemented extended function writephases for writing phases to HYPO71-input phase file. --- autoPyLoT.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 1e60e54d..06a3bdef 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -113,7 +113,7 @@ def autoPyLoT(inputfile): # write phases to NLLoc-phase file writephases(picks, 'NLLoc', phasefile) - # For locating the events we have to modify the NLLoc-control file! + # For locating the event the NLLoc-control file has to be modified! # create comment line for NLLoc-control file # NLLoc-output file nllocout = '%s/loc/%s_%s' % (nllocroot, event, nllocoutpatter) @@ -155,7 +155,7 @@ def autoPyLoT(inputfile): # write phases to NLLoc-phase file writephases(picks, 'NLLoc', phasefile) - # For locating the event we have to modify the NLLoc-control file! + # For locating the event the NLLoc-control file has to be modified! # create comment line for NLLoc-control file NLLoc-output file nllocout = '%s/loc/%s_%s' % (nllocroot, parameter.getParam('eventID'), nllocoutpatter) locfiles = 'LOCFILES %s NLLOC_OBS %s %s 0' % (phasefile, ttpatter, nllocout) @@ -174,9 +174,13 @@ def autoPyLoT(inputfile): # locate the event subprocess.call([nlloccall, locfile]) ########################################################## + # write phase files for various location routines + # HYPO71 + hypo71file = '%s/%s/autoPyLoT_HYPO71.pha' % (datapath, parameter.getParam('eventID')) + writephases(picks, 'HYPO71', hypo71file) + - print '------------------------------------------' print '-------Finished event %s!-------' % parameter.getParam('eventID') print '------------------------------------------'