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

align mseed to requested start/end time

parent a1e0c27f
No related branches found
No related tags found
2 merge requests!166Merge branch master into production,!142Align mseed
...@@ -362,6 +362,9 @@ class MiniSeedFactory(TimeseriesFactory): ...@@ -362,6 +362,9 @@ class MiniSeedFactory(TimeseriesFactory):
sncl.network, sncl.station, sncl.location, sncl.channel, starttime, endtime sncl.network, sncl.station, sncl.location, sncl.channel, starttime, endtime
) )
data.merge() data.merge()
TimeseriesUtility.pad_and_trim_trace(
trace=data[0], starttime=starttime, endtime=endtime
)
if data.count() == 0 and add_empty_channels: if data.count() == 0 and add_empty_channels:
data += self._get_empty_trace( data += self._get_empty_trace(
starttime=starttime, starttime=starttime,
......
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