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. The DelaunayDetector.detect_stream contains at least the data of the timespan with length DelaunayDetector.window_length. For computation, the data with the length DelaunayDetector.max_time_window is prepended. So the passed data stream has to contain a period of DelaunayDetector.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.