_images/tws_logo.png

Module wiggles

Functions to plot single station plane wave or receiver function seismograms.

telewavesim.wiggle.rf_wiggles_baz(str1, str2, tr1, tr2, sta, btyp='baz', tmin=- 10.0, tmax=30, scale=None, save=False, ftitle='Figure_rf_wiggle_baz', wvtype='P', fmt='png')

Plots receiver function seismograms sorted by back-azimuth or slowness.

Parameters
  • str1 (obspy.stream) – Stream 1

  • str2 (obspy.stream) – Stream 2

  • tr1 (obspy.trace) – Trace 1 (normally obtained from the utils.stack_all function)

  • tr2 (obspy.trace) – Trace 2

  • sta (str) – Station name

  • btyp (str, optional) – Type of sorting for panel

  • tmin (float, optional) – Lower bound of time axis (s)

  • tmax (float, optional) – Upper bound of time axis (s)

  • scale (float, optional) – Scaling factor

  • save (bool, optional) – Whether or not to save the figure

  • ftitle (str, optional) – Title of figure to be saved

  • wvtype (str, optional) – wave type

Returns

None

telewavesim.wiggle.pw_wiggles_baz(str1, str2, sta, btyp='baz', t1=None, tmin=0.0, tmax=30, scale=None, save=False, ftitle='Figure_pw_wiggles_baz', wvtype='P', fmt='png')

Plots plane wave seismograms sorted by back-azimuth or slowness.

Parameters
  • str1 (obspy.stream) – Stream 1

  • str2 (obspy.stream) – Stream 2

  • sta (str) – Station name

  • btyp (str, optional) – Type of sorting for panel

  • t1 (float) – Predicted arrival time that will be drawn as vertical line (s)

  • tmin (float, optional) – Lower bound of time axis (s)

  • tmax (float, optional) – Upper bound of time axis (s)

  • scale (float, optional) – Scaling factor

  • save (bool, optional) – Whether or not to save the figure

  • ftitle (str, optional) – Title of figure to be saved

  • wvtype (str, optional) – wave type

Returns

None

telewavesim.wiggle.pw_wiggles_Audet2016(strf, t1=0.0, tmax=20.0, f1=0.1, f2=1.0, scale=1e-07, save=False, ftitle='Figure_pw_wiggles_Audet2016', fmt='png')

Plots plane wave and receiver function seismograms as in Audet (GJI, 2016).

Parameters
  • strf (obspy.stream) – Stream containing 3 traces: [0]: Transfer function; [1]: Vertical and [2]: Radial plane wave seismograms

  • t1 (float) – Predicted arrival time (s)

  • tmax (float, optional) – Upper bound of time axis (s)

  • f1 (float) – Lower frequency corner of bandpass filter (Hz)

  • f2 (float) – Upper frequency corner of bandpass filter (Hz)

  • scale (float, optional) – Scaling factor

  • save (bool, optional) – Whether or not to save the figure

  • ftitle (str, optional) – Title of figure to be saved

Returns

None

telewavesim.wiggle.gf_wiggles_3c(stream, t1=0.0, tmax=20.0, f1=0.1, f2=1.0, save=False, ftitle='Figure_pw_wiggles_3c', fmt='png')

Plots 3-component wiggles.

Parameters
  • stream (obspy.stream) – Stream containing 3 traces

  • t1 (float) – Predicted arrival time (s)

  • tmax (float, optional) – Upper bound of time axis (s)

  • f1 (float) – Lower frequency corner of bandpass filter (Hz)

  • f2 (float) – Upper frequency corner of bandpass filter (Hz)

  • save (bool, optional) – Whether or not to save the figure

  • ftitle (str, optional) – Title of figure to be saved

Returns

None