scatcluster.analysis.processing

Processing analysis module.

Classes

AnalysisProcessing

Module Contents

class scatcluster.analysis.processing.AnalysisProcessing[source]
process_stream_envelope(stream: obspy.Stream) obspy.Stream[source]
process_stream_rms(stream: obspy.Stream) list[source]
build_waveforms_data(include_envelopes=False, include_RMS=False, custom_title='')[source]

This function builds waveforms data based on specified parameters.

Parameters:
  • include_envelopes (bool) – Flag to include envelopes in the data.

  • include_RMS (bool) – Flag to include RMS values in the data.

  • custom_title (str) – Custom title to append to the waveforms file.

Returns:

Array containing the waveforms’ data.

Return type:

numpy.ndarray

load_waveforms(waveform_extra_title: str = '')[source]
get_spectrogram_data(Zwaveform, samp_rate)[source]
spectrogram_build(waveforms, samp_rate, extra_title='')[source]

Builds spectrograms based on the provided waveforms and sample rate. Saves the spectrograms to a file if they don’t already exist. Updates the class attribute ‘spectrograms’ with the generated spectrograms.

Parameters:
  • waveforms (list) – List of waveforms for spectrogram generation.

  • samp_rate (int) – Sampling rate for spectrogram generation.

  • extra_title (str) – Additional title for the spectrogram file (default ‘’).

Returns:

Array containing the generated spectrograms.

Return type:

numpy.ndarray

build_spectrum_data(waveform_extra_title: str = '', spectrum_extra_title: str = '', spectrum_samp_rate: int = 50)[source]
load_spectrograms(extra_title='')[source]