Implemented extended function writephases for writing phases to HYPO71-input phase file.

This commit is contained in:
Ludger Küperkoch 2015-11-04 16:52:39 +01:00
parent a31e1a21f0
commit b8c26a6588

View File

@ -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,6 +174,10 @@ 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)