prepare_detection_stream¶
-
DelaunayDetector.
prepare_detection_stream
(stream)[source]¶ Prepare the data stream used for the detection run.
Use the data in
stream
to compute self.detect_stream. TheDelaunayDetector.detect_stream
contains at least the data of the timespan with lengthDelaunayDetector.window_length
. For computation, the data with the lengthDelaunayDetector.max_time_window
is prepended. So the passed data stream has to contain a period ofDelaunayDetector.window_length
+DelaunayDetector.max_time_window
, otherwise the detect stream will not be initialized.- Parameters
stream (
obspy.Stream
) – The stream containing the PGV that should be used for the detection.