Skip to content
Snippets Groups Projects
Commit fdbfdc0e authored by Cain, Payton David's avatar Cain, Payton David
Browse files

create_empty_trace for intervals above minutes

parent 58d5fa2e
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!40Update controller for new filter products
...@@ -46,6 +46,8 @@ def create_empty_trace( ...@@ -46,6 +46,8 @@ def create_empty_trace(
trace_starttime = obspy.core.UTCDateTime( trace_starttime = obspy.core.UTCDateTime(
numpy.ceil(starttime.timestamp / delta) * delta numpy.ceil(starttime.timestamp / delta) * delta
) )
if delta > 60.0:
trace_starttime += (delta - 60) / 2
stats.starttime = trace_starttime stats.starttime = trace_starttime
stats.delta = delta stats.delta = delta
# Calculate number of valid samples up to or before endtime # Calculate number of valid samples up to or before endtime
......
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