From 366ac294813fa8cacfa3bfe04a9940c10e64082f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 11 May 2016 09:52:59 +0200 Subject: [PATCH 1/3] Additional input parameter apverbose to control terminal output --- inputs/autoPyLoT_local.in | 1 + 1 file changed, 1 insertion(+) diff --git a/inputs/autoPyLoT_local.in b/inputs/autoPyLoT_local.in index 329a0fe2..725a9dec 100644 --- a/inputs/autoPyLoT_local.in +++ b/inputs/autoPyLoT_local.in @@ -11,6 +11,7 @@ EVENT_DATA/LOCAL #datapath# %data path /DATA/Insheim/STAT_INFO #invdir# %full path to inventory or dataless-seed file PILOT #datastructure#%choose data structure 0 #iplot# %flag for plotting: 0 none, 1 partly, >1 everything +True #apverbose# %choose 'True' or 'False' for terminal output %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #NLLoc settings# /home/ludger/NLLOC #nllocbin# %path to NLLoc executable From 97ca69a07d2da605a196e6097fcf6975edda7147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 11 May 2016 09:54:33 +0200 Subject: [PATCH 2/3] Modified for controlling amount of terminal output using new input parameter apverbose --- pylot/core/pick/autopick.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 9879feb7..3edbea9c 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -31,6 +31,7 @@ def autopickevent(data, param): wdttolerance = param.get('wdttolerance') mdttolerance = param.get('mdttolerance') iplot = param.get('iplot') + apverbose = param.get('apverbose') for n in range(len(data)): station = data[n].stats.station if station not in stations: @@ -40,7 +41,7 @@ def autopickevent(data, param): for station in stations: topick = data.select(station=station) - all_onsets[station] = autopickstation(topick, param) + all_onsets[station] = autopickstation(topick, param, verbose=apverbose) # quality control # median check and jackknife on P-onset times From c34fbe1228a7f1e6df90c0d7008aaa970de0b131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 11 May 2016 10:51:33 +0200 Subject: [PATCH 3/3] Removed needless terminal output --- pylot/core/pick/autopick.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 3edbea9c..efbceff8 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -367,7 +367,6 @@ def autopickstation(wfstream, pickparam, verbose=False): round(min([mpickP + sstop, Lwf]))] if algoS == 'ARH': - if verbose: print(edat, ndat) # re-create stream object including both horizontal components hdat = edat.copy() hdat += ndat @@ -384,7 +383,6 @@ def autopickstation(wfstream, pickparam, verbose=False): h_copy[0].data = trH1_filt.data h_copy[1].data = trH2_filt.data elif algoS == 'AR3': - if verbose: print(zdat, edat, ndat) # re-create stream object including all components hdat = zdat.copy() hdat += edat