From 80089a5801b3197353c4350c1984cfa81e02b142 Mon Sep 17 00:00:00 2001 From: pcain-usgs <pcain@usgs.gov> Date: Thu, 15 Oct 2020 15:07:54 -0600 Subject: [PATCH] Trim intervals under one hour --- geomagio/Controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geomagio/Controller.py b/geomagio/Controller.py index f6517a4c..054f0bd0 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -187,6 +187,9 @@ class Controller(object): ) processed = algorithm.process(timeseries) # trim if --no-trim is not set + if options.output_interval not in [None, "tenhertz", "second", "minute"]: + starttime = processed[0].stats.starttime + endtime = processed[0].stats.endtime if not options.no_trim: processed.trim(starttime=starttime, endtime=endtime) if options.rename_output_channel: -- GitLab