Mondaic
This API reference is not for the latest stable Salvus version.

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()

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_synthetic numpy.ndarray — Synthetic waveforms.
  • data_observed numpy.ndarray — Observed waveforms.
  • sampling_rate_in_hertz float — Sampling rate.
  • temporal_weights Optional[numpy.ndarray] — Optional set of time-dependent weights. This array must have the same dimensions as data_synthetic.
  • frequency_weights Optional[numpy.ndarray] — Optional set of frequency-dependent weights.
  • nfreq int — Number of discrete frequencies to be considered.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value and adjoint source