6.2.4.1.2. eqcorrscan.utils.clustering.svd_to_stream¶
-
eqcorrscan.utils.clustering.svd_to_stream(uvectors, stachans, k, sampling_rate)[source]¶ Convert the singular vectors output by SVD to streams.
One stream will be generated for each singular vector level, for all channels. Useful for plotting, and aiding seismologists thinking of waveforms!
Parameters: - svectors (list) – List of
numpy.ndarraySingular vectors - stachans (list) – List of station.channel Strings
- k (int) – Number of streams to return = number of SV’s to include
- sampling_rate (float) – Sampling rate in Hz
Returns: svstreams, List of
obspy.core.stream.Stream, with svStreams[0] being composed of the highest rank singular vectors.- svectors (list) – List of
