prepare_detection_stream¶
-
DelaunayDetector.prepare_detection_stream(stream)[source]¶ Prepare the data stream used for the detection run.
Use the data in
streamto compute self.detect_stream. TheDelaunayDetector.detect_streamcontains at least the data of the timespan with lengthDelaunayDetector.window_length. For computation, the data with the lengthDelaunayDetector.max_time_windowis 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.