Required
observed_data_trace| Type: | obspy.Trace |
| Description: | The data trace. |
def select_windows(
observed_data_trace: obspy.Trace,
synthetic_data_trace: obspy.Trace,
event_latitude: float,
event_longitude: float,
event_depth_in_meter: float,
event_origin_time: obspy.UTCDateTime,
station_latitude: float,
station_longitude: float,
minimum_period_in_seconds: float,
maximum_period_in_seconds: float,
min_cc: float = 0.1,
max_noise: float = 0.1,
max_noise_window: float = 0.4,
min_velocity: float = 2.4,
threshold_shift: float = 0.3,
threshold_correlation: float = 0.75,
min_length_period: float = 1.5,
min_peaks_troughs: float = 2,
max_energy_ratio: float = 10.0,
min_envelope_similarity: float = 0.2,
max_oversampling_factor: int = 8,
verbose: bool = False,
plot: bool = False,
) -> typing.Sequence[tuple[float, float, float]]: ...| Type: | obspy.Trace |
| Description: | The data trace. |
| Type: | obspy.Trace |
| Description: | The synthetic trace. |
| Type: | float |
| Description: | The event latitude. |
| Type: | float |
| Description: | The event longitude. |
| Type: | float |
| Description: | The event depth in km. |
| Type: | obspy.UTCDateTime |
| Description: | The event origin time used for travel time calculations. |
| Type: | float |
| Description: | The station latitude. |
| Type: | float |
| Description: | The station longitude. |
| Type: | float |
| Description: | The minimum period of the data in seconds. |
| Type: | float |
| Description: | The maximum period of the data in seconds. |
| Type: | float |
| Default value: | 0.1 |
| Description: | Minimum normalized correlation coefficient of the complete traces. |
| Type: | float |
| Default value: | 0.1 |
| Description: | Maximum relative noise level for the whole trace. Measured from maximum amplitudes before and after the first arrival. |
| Type: | float |
| Default value: | 0.4 |
| Description: | Maximum relative noise level for individual windows. |
| Type: | float |
| Default value: | 2.4 |
| Description: | All arrivals later than those corresponding to the threshold velocity [km/s] will be excluded. |
| Type: | float |
| Default value: | 0.3 |
| Description: | Maximum allowable time shift within a window, as a fraction of the minimum period. |
| Type: | float |
| Default value: | 0.75 |
| Description: | Minimum normalized correlation coefficient within a window. |
| Type: | float |
| Default value: | 1.5 |
| Description: | Minimum length of the time windows relative to the minimum period. |
| Type: | float |
| Default value: | 2 |
| Description: | Minimum number of extrema in an individual time window (excluding the edges). |
| Type: | float |
| Default value: | 10.0 |
| Description: | Maximum energy ratio between data and synthetics within a time window. Don't make this too small! |
| Type: | float |
| Default value: | 0.2 |
| Description: | The minimum similarity of the envelopes of both data and synthetics. This essentially assures that the amplitudes of data and synthetics can not diverge too much within a window. It is a bit like the inverse of the ratio of both envelopes so a value of 0.2 makes sure neither amplitude can be more then 5 times larger than the other. |
| Type: | int |
| Default value: | 8 |
| Description: | Max allowed oversampling based on the minimum period and the Nyquist theorem. Otherwise data will be decimated. |
| Type: | bool |
| Default value: | False |
| Description: | No output by default. |
| Type: | bool |
| Default value: | False |
| Description: | Create a plot of the algorithm while it does its work. |
typing.Sequence[tuple[float, float, float]]