Mondaic

salvus.opt.misfits.deprecated.phase_misfit

salvus.opt.misfits.deprecated.phase_misfit 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: np.ndarray,
    data_observed: np.ndarray,
    sampling_rate_in_hertz: float,
    temporal_weights: np.ndarray | None = None,
    frequency_weights: np.ndarray | None = None,
    nfreq: int = 20,
) -> tuple[float, np.ndarray]: ...

Compute the phase misfit and adjoint source.

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