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)arraysigTh – Uncertainties in trace velocity (km/s) as a function of trace velocity and back-azimuth as
(NgridTh, NgridV)arrayvel – Vector of trace velocities (km/s) for axis in
(NgridV, )arrayth – Vector of back-azimuths (°) for axis in
(NgridTh, )arraytrace_v (float) – Specified trace velocity (km/s) for uncertainty plot
- Returns:
Figure handle
- Return type:
- 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)arraysigLevel (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)arraysigTh – Uncertainties in trace velocity (km/s) as a function of trace velocity and back-azimuth as
(NgridTh, NgridV)arrayimpResp – Impulse response over grid as
(NgridK, NgridK)arrayvel – Vector of trace velocities (km/s) for axis in
(NgridV, )arrayth – Vector of back-azimuths (°) for axis in
(NgridTh, )arraykvec – Vector wavenumbers for axes in \(k\)-space in
(NgridK, )arrayfigName (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:
- Return type: