5.4.1.2. eqcorrscan.utils.clustering.SVD_2_stream

eqcorrscan.utils.clustering.SVD_2_stream(SVectors, 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 of np.ndarray) Singular vectors
  • stachans (List of Strings) 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.Stream, with SVStreams[0] being composed of the highest rank singular vectors.