Skip to content
Snippets Groups Projects
Commit 9cd224bd authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Support tenhertz, update interval names

parent d8e9fb0f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment