salvus.opt.misfits.deprecated.phase_misfit
Deprecated implementation of the phase misfit.
This one does compute the correct misfit and adjoint source but does not have sophisticated frequency filtering and thresholding operations so the results can sometimes be a bit unexpected.
Functions
phase_misfit_and_adjoint_source()
phase_misfit_and_adjoint_source()def phase_misfit_and_adjoint_source(
data_synthetic: numpy.ndarray,
data_observed: numpy.ndarray,
sampling_rate_in_hertz: float,
temporal_weights: Optional[numpy.ndarray] = None,
frequency_weights: Optional[numpy.ndarray] = None,
nfreq: int = 20,
) -> Tuple[float, numpy.ndarray]: ...Compute the phase misfit and adjoint source
Parameters
data_syntheticnumpy.ndarray — Synthetic waveforms.data_observednumpy.ndarray — Observed waveforms.sampling_rate_in_hertzfloat — Sampling rate.temporal_weightsOptional[numpy.ndarray] — Optional set of time-dependent weights. This array must have the same dimensions as data_synthetic.frequency_weightsOptional[numpy.ndarray] — Optional set of frequency-dependent weights.nfreqint — Number of discrete frequencies to be considered.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value and adjoint source