diff --git a/geomagio/TimeseriesUtility.py b/geomagio/TimeseriesUtility.py index 7a316ae2432972d3794189b3519f4f4226bbb2b8..046c10d3fc58f17c8cd5ebb351a7adcf4d6bff07 100644 --- a/geomagio/TimeseriesUtility.py +++ b/geomagio/TimeseriesUtility.py @@ -35,13 +35,15 @@ def create_empty_trace(starttime, endtime, observatory, obspy.core.Trace trace for the requested channel """ - if interval == 'second': + if interval == 'tenhertz': + delta = 0.1 + elif interval == 'second': delta = 1. elif interval == 'minute': delta = 60. - elif interval == 'hourly': + elif interval == 'hour': delta = 3600. - elif interval == 'daily': + elif interval == 'day': delta = 86400. stats = obspy.core.Stats() stats.network = network diff --git a/geomagio/edge/MiniSeedFactory.py b/geomagio/edge/MiniSeedFactory.py index e9e4367af151e0a82248ca862bffe7e66794c0bb..a6ce76c986c5c6fe6937000f64f193e8658c2593 100644 --- a/geomagio/edge/MiniSeedFactory.py +++ b/geomagio/edge/MiniSeedFactory.py @@ -387,7 +387,7 @@ class MiniSeedFactory(TimeseriesFactory): location_suffix = 'Q' elif suffix == 'SV': location_suffix = 'V' - else: + elif suffix not in ('Bin', 'Volt'): raise TimeseriesFactoryException( 'bad channel suffix "%s", wanted "Dist", "SQ", or "SV"' % suffix)