Version:

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

Compute the phase misfit and adjoint source.
SIGNATURE
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]: ...
ARGUMENTS
Required
data_synthetic
Type:np.ndarray
Description:
Synthetic waveforms.
Required
data_observed
Type:np.ndarray
Description:
Observed waveforms.
Required
sampling_rate_in_hertz
Type:float
Description:
Sampling rate.
Optional
temporal_weights
Type:np.ndarray | None
Default value:None
Description:
Optional set of time-dependent weights. This array must have the same dimensions as data_synthetic.
Optional
frequency_weights
Type:np.ndarray | None
Default value:None
Description:
Optional set of frequency-dependent weights.
Optional
nfreq
Type:int
Default value:20
Description:
Number of discrete frequencies to be considered.
RETURNS
Return type: tuple[float, np.ndarray]
tuple of misfit value and adjoint source
PAGE CONTENTS