array_processing.tools.plotting module

array_processing.tools.plotting.arraySigContourPlt(sigV, sigTh, vel, th, trace_v)[source]

Plots output of arraySig() onto a polar plot for a specified trace velocity.

Parameters:
  • sigV – Uncertainties in trace velocity (°) as a function of trace velocity and back-azimuth as (NgridTh, NgridV) array
  • sigTh – Uncertainties in trace velocity (km/s) as a function of trace velocity and back-azimuth as (NgridTh, NgridV) array
  • vel – Vector of trace velocities (km/s) for axis in (NgridV, ) array
  • th – Vector of back-azimuths (°) for axis in (NgridTh, ) array
  • trace_v (float) – Specified trace velocity (km/s) for uncertainty plot
Returns:

Figure handle

Return type:

Figure

array_processing.tools.plotting.arraySigPlt(rij, sig, sigV, sigTh, impResp, vel, th, kvec, figName=None)[source]

Plots output of arraySig().

Parameters:
  • rij – Coordinates (km) of sensors as eastings & northings in a (2, N) array
  • sigLevel (float) – Variance in time delays (s), typically \(\sigma_\tau\)
  • sigV – Uncertainties in trace velocity (°) as a function of trace velocity and back-azimuth as (NgridTh, NgridV) array
  • sigTh – Uncertainties in trace velocity (km/s) as a function of trace velocity and back-azimuth as (NgridTh, NgridV) array
  • impResp – Impulse response over grid as (NgridK, NgridK) array
  • vel – Vector of trace velocities (km/s) for axis in (NgridV, ) array
  • th – Vector of back-azimuths (°) for axis in (NgridTh, ) array
  • kvec – Vector wavenumbers for axes in \(k\)-space in (NgridK, ) array
  • figName (str) – Name of output file, will be written as figName.png
array_processing.tools.plotting.array_plot(st, t, mdccm, vel, baz, ccmplot=False, mcthresh=None, sigma_tau=None, stdict=None)[source]

Creates plots for velocity–back-azimuth array processing.

Parameters:
  • st (Stream) – Filtered data. Assumes response has been removed.
  • t – Array processing time vector.
  • mdccm – Array of median cross-correlation maxima.
  • vel – Array of trace velocity estimates.
  • baz – Array of back-azimuth estimates.
  • ccmplot (bool) – Toggle plotting the mean/median cross-correlation maxima values on a separate subplot in addition to the color scale.
  • mcthresh (float) – Add a dashed line at this level in the ccmplot subplot.
  • sigma_tau – Array of \(\sigma_\tau\) values. If provided, will plot the values on a separate subplot.
  • stdict (dict) – Dropped station pairs from ltsva(). If provided, will plot the dropped station pairs on a separate subplot.
Returns:

Tuple containing:

  • fig (Figure) – Figure handle.
  • axs (Array of Axes) – Axis handles.

Return type:

tuple