Flexibel for input-file naming now.

This commit is contained in:
Ludger Küperkoch 2017-03-15 14:17:02 +01:00
parent a95120ba5e
commit 47b41a1296

View File

@ -135,7 +135,7 @@ def autoPyLoT(inputfile):
ttpat) ttpat)
# locate the event # locate the event
nll.locate(ctrfile) nll.locate(ctrfile, inputfile)
# !iterative picking if traces remained unpicked or occupied with bad picks! # !iterative picking if traces remained unpicked or occupied with bad picks!
# get theoretical onset times for picks with weights >= 4 # get theoretical onset times for picks with weights >= 4
@ -194,7 +194,7 @@ def autoPyLoT(inputfile):
# remove actual NLLoc-location file to keep only the last # remove actual NLLoc-location file to keep only the last
os.remove(nllocfile) os.remove(nllocfile)
# locate the event # locate the event
nll.locate(ctrfile) nll.locate(ctrfile, inputfile)
print("autoPyLoT: Iteration No. %d finished." % nlloccounter) print("autoPyLoT: Iteration No. %d finished." % nlloccounter)
# get updated NLLoc-location file # get updated NLLoc-location file
nllocfile = max(glob.glob(locsearch), key=os.path.getctime) nllocfile = max(glob.glob(locsearch), key=os.path.getctime)