From 1312d06ccf4a054545a7f12246fbe1a0ed6002e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 4 Dec 2015 16:07:36 +0100 Subject: [PATCH] Corrected for modified class MoMw, which needs additional parameter Qp. --- autoPyLoT.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 387090cd..658739fb 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -142,7 +142,8 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw finalpicks = M0Mw(wfdat, None, None, parameter.getParam('iplot'), \ nllocfile, picks, parameter.getParam('rho'), \ - parameter.getParam('vp'), parameter.getParam('invdir')) + parameter.getParam('vp'), parameter.getParam('Qp'), \ + parameter.getParam('invdir')) else: print("autoPyLoT: No NLLoc-location file available!") print("No source parameter estimation possible!") @@ -183,7 +184,8 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw finalpicks = M0Mw(wfdat, None, None, parameter.getParam('iplot'), \ nllocfile, picks, parameter.getParam('rho'), \ - parameter.getParam('vp'), parameter.getParam('invdir')) + parameter.getParam('vp'), parameter.getParam('Qp'), \ + parameter.getParam('invdir')) # get network moment magntiude netMw = [] for key in finalpicks.getpicdic(): @@ -253,7 +255,8 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw finalpicks = M0Mw(wfdat, None, None, parameter.getParam('iplot'), \ nllocfile, picks, parameter.getParam('rho'), \ - parameter.getParam('vp'), parameter.getParam('invdir')) + parameter.getParam('vp'), parameter.getParam('Qp'), \ + parameter.getParam('invdir')) else: print("autoPyLoT: No NLLoc-location file available!") print("No source parameter estimation possible!") @@ -294,7 +297,8 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw finalpicks = M0Mw(wfdat, None, None, parameter.getParam('iplot'), \ nllocfile, picks, parameter.getParam('rho'), \ - parameter.getParam('vp'), parameter.getParam('invdir')) + parameter.getParam('vp'), parameter.getParam('Qp'), \ + parameter.getParam('invdir')) # get network moment magntiude netMw = [] for key in finalpicks.getpicdic():