seisflows.plugins.preprocess.misfit
Misfit functions used by the ‘default’ preprocess class use to quantify differences between data and synthetics.
All functions defined have four required positional arguments
- type syn
np.array
- param syn
synthetic data array
- type obs
np.array
- param obs
observed data array
- type nt
int
- param nt
number of time steps in the data array
- type dt
float
- param dt
time step in sec
Module Contents
Functions
|
Direct waveform differencing |
|
Waveform envelope difference from Yuan et al. 2015 Eq. 9 |
|
Instantaneous phase difference from Bozdag et al. 2011 |
|
Cross-correlation traveltime |
|
A faster cc traveltime function but possibly innacurate |
|
Cross-correlation amplitude difference |
|
Envelope amplitude ratio from Yuan et al. 2015 Eq. B-1 |
|
Envelope cross-correlation lag from Yuan et al. 2015, Eq. B-4 |
|
Alterative instantaneous phase function |
|
|
|
|
|
- seisflows.plugins.preprocess.misfit.waveform(syn, obs, nt, dt, *args, **kwargs)
Direct waveform differencing
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.envelope(syn, obs, nt, dt, *args, **kwargs)
Waveform envelope difference from Yuan et al. 2015 Eq. 9
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.instantaneous_phase(syn, obs, nt, dt, *args, **kwargs)
Instantaneous phase difference from Bozdag et al. 2011
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.traveltime(syn, obs, nt, dt, *args, **kwargs)
Cross-correlation traveltime
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.traveltime_inexact(syn, obs, nt, dt, *args, **kwargs)
A faster cc traveltime function but possibly innacurate
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.amplitude(syn, obs, nt, dt, *args, **kwargs)
Cross-correlation amplitude difference
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.envelope2(syn, obs, nt, dt, *args, **kwargs)
Envelope amplitude ratio from Yuan et al. 2015 Eq. B-1
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.envelope3(syn, obs, nt, dt, eps=0.0, *args, **kwargs)
Envelope cross-correlation lag from Yuan et al. 2015, Eq. B-4
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.instantaneous_phase2(syn, obs, nt, dt, eps=0.0, *args, **kwargs)
Alterative instantaneous phase function
- Parameters
syn (np.array) – synthetic data array
obs (np.array) – observed data array
nt (int) – number of time steps in the data array
dt (float) – time step in sec
- seisflows.plugins.preprocess.misfit.displacement(*args, **kwargs)
- seisflows.plugins.preprocess.misfit.velocity(*args, **kwargs)
- seisflows.plugins.preprocess.misfit.acceleration(*args, **kwargs)