From 34d5f9bf7d358c14e17d7066aeb3b05772ad094b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 11 Jul 2017 20:43:28 +0200 Subject: [PATCH] Additional screen output when saving picks. --- pylot/core/io/data.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index fd6aa350..75bbefc7 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -197,7 +197,11 @@ class Data(object): if evtdata_copy.picks[i].phase_hint[0] == 'P': if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[0] or \ evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[0]: - print("Uncertainty exceeds adjusted upper time error!") + print("Uncertainty exceeds or equal adjusted upper time error!") + print("Adjusted uncertainty: {}".format(upperErrors[0])) + print("Pick uncertainty: {}".format( + max([evtdata_copy.picks[i].time_errors['lower_uncertainty'], + evtdata_copy.picks[i].time_errors['upper_uncertainty']]))) print("P-Pick of station {} will not be saved in outputfile".format( evtdata_copy.picks[i].waveform_id.station_code)) del evtdata_copy.picks[i] @@ -205,7 +209,11 @@ class Data(object): if evtdata_copy.picks[i].phase_hint[0] == 'S': if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[1] or \ evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[1]: - print("Uncertainty exceeds adjusted upper time error!") + print("Uncertainty exceeds or equal adjusted upper time error!") + print("Adjusted uncertainty: {}".format(upperErrors[1])) + print("Pick uncertainty: {}".format( + max([evtdata_copy.picks[i].time_errors['lower_uncertainty'], + evtdata_copy.picks[i].time_errors['upper_uncertainty']]))) print("S-Pick of station {} will not be saved in outputfile".format( evtdata_copy.picks[i].waveform_id.station_code)) del evtdata_copy.picks[i]