pysolate.block.Block

class Block(params, event, waveforms)[source]

Bases: object

Root object for the time series and CWT

Main class object that handles the processing of seismic data using the continuous wavelet transform. The tags attribute is a list of available processed waveforms and their wavelet transforms, depending on the choices set in Parameter. See all possible tags below.

Parameters
  • params (Parameter) – CWT operations.

  • event (Event) – seismic event information.

  • waveforms (Waveforms) – seismic data.

Attributes

paramsParameter object

CWT operations.

eventObsPy event

event information.

waveformsWaveforms object

seismic waveforms.

waveletsWaveletCollection object

wavelet transforms of the processed data.

noise_model_tagstr

wavelet transform of data used to estimate the noise model, depending on the processing choices this will be "input", "band_rejected" or None.

Available Tags

tag

parameters

description

“input”

none

input data

“band_rejected”

bandpass_blocking

applied a band rejection filter

“noise_removed”

noise_threshold

noise removed from data

“signal_removed”

signal_threshold

signal removed from data

Basic Usage

>>> import pysolate as bcs
>>> block = bcs.read(data="testdata/5014.YW.0.sp0011.DPZ")
>>> block.run()

Methods

get_station_list

Function to return a list of available stations

get_waveforms

Returns a Waveforms object

get_wavelets

Returns a WaveletCollection object

plot

Plot the time-frequency representation, or scalogram, of the current pysolate Block object

reconstruct

Reconstruct time series

run

Function to run the CWT-based thresholding operations

write

Write the processed data to file

Attributes

event

Returns an ObsPy event object containing information that describes the seismic event

tags

Returns a list of available tags in the dataset after applying the wavelet thresholding operations