From b69387e49fd1e04d98c619fe093391232c5520e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 28 Oct 2016 14:54:55 +0200 Subject: [PATCH] Replaced fixed plotting advice with iplot parameter. --- autoPyLoT.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 8c81b51d..e69e4817 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -6,6 +6,7 @@ from __future__ import print_function import argparse import glob import os +import pdb from obspy import read_events @@ -157,13 +158,15 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw moment_mag = MomentMagnitude(corr_dat, evt, parameter.get('vp'), parameter.get('Qp'), - parameter.get('rho'), True, 0) + parameter.get('rho'), True, \ + parameter.get('iplot')) # update pick with moment property values (w0, fc, Mo) for station, props in moment_mag.moment_props.items(): picks[station]['P'].update(props) evt = moment_mag.updated_event() local_mag = RichterMagnitude(corr_dat, evt, - parameter.get('sstop'), True, 0) + parameter.get('sstop'), True,\ + parameter.get('iplot')) for station, amplitude in local_mag.amplitudes.items(): picks[station]['S']['Ao'] = amplitude.generic_amplitude evt = local_mag.updated_event() @@ -207,13 +210,15 @@ def autoPyLoT(inputfile): # calculating seismic moment Mo and moment magnitude Mw moment_mag = MomentMagnitude(corr_dat, evt, parameter.get('vp'), parameter.get('Qp'), - parameter.get('rho'), True, 0) + parameter.get('rho'), True, \ + parameter.get('iplot')) # update pick with moment property values (w0, fc, Mo) for station, props in moment_mag.moment_props.items(): picks[station]['P'].update(props) evt = moment_mag.updated_event() local_mag = RichterMagnitude(corr_dat, evt, - parameter.get('sstop'), True, 0) + parameter.get('sstop'), True, \ + parameter.get('iplot')) for station, amplitude in local_mag.amplitudes.items(): picks[station]['S']['Ao'] = amplitude.generic_amplitude evt = local_mag.updated_event()