pyatoa.visuals.comp_wave
A stripped down (arguably better) version of the Waveform Improvement class, used to simply compare two synthetic waveforms from a given PyASDF DataSet.
Module Contents
Classes
A class to plot waveform improvement between two models for a given dataset |
Functions
|
Main call script to choose event and station based on what's available |
Attributes
- class pyatoa.visuals.comp_wave.CompWave(dsfid, station, min_period, max_period, dsfid_final=None)[source]
A class to plot waveform improvement between two models for a given dataset
- _gather_model_from_dataset(dsfid, model=None, init_or_final=None, save_windows=False)[source]
Gather data from an ASDFDataSet based on the given model (iter/step)
- gather(m_init=None, m_final=None, save_windows=False)[source]
Gather data from the correct dataset. If no m_init or m_final given, will gather the first and last models
- calculate_vrl(init_or_final)[source]
Caclulate the logarithmic variance reduction to look at how waveforms imrpove from m_init to m_final. Following Eq. 8 of Tape et al. (2010).
- setup_plot(nrows, ncols, **kwargs)[source]
Dynamically set up plots according to number_of given Returns a list of lists of axes objects e.g. axes[i][j] gives the ith column and the jth row
- _xlim_from_envelope(data, dt)[source]
Get rough bounds for the xlimits by looking at waveform envelopes :return: