Required
event| Type: | Event |
| Description: | The corresponding event object for this window and weight set. Needs to be passed every time as it is not serialized alongside the windows and weights. |
window_taper_width_in_seconds distance from the
window boundaries.class EventWindowAndWeightSet(builtins.object):
def __init__(
self,
event: Event,
filename: pathlib.Path,
receiver_field: str | None = None,
window_taper_width_in_seconds: float | None = None,
taper_type: str | None = None,
): ...| Type: | Event |
| Description: | The corresponding event object for this window and weight set. Needs to be passed every time as it is not serialized alongside the windows and weights. |
| Type: | pathlib.Path |
| Description: | Path of the JSON file where it will be stored. |
| Type: | str | None |
| Default value: | None |
| Description: | The receiver field for which this window and weight set is valid. Only has to be specified if filename does not yet exist. |
| Type: | float | None |
| Default value: | None |
| Description: | Taper width in seconds when the windows will be applied to the data. The taper width will never be larger than half a window length. |
| Type: | str | None |
| Default value: | None |
| Description: | The type of taper to use. Currently only "hanning" is supported which will use the classical cosine bell Hann/Hanning window. Will default to "hanning" if not given. |
def add_interval_window(
self,
receiver_name: str,
component: str,
window_start_time_in_seconds: float,
window_end_time_in_seconds: float,
window_weight: float = 1.0,
) -> None: ...| Type: | str |
| Description: | Full name of the receiver. |
| Type: | str |
| Description: | The receiver component. |
| Type: | float |
| Description: | The start time of the window in seconds relative to time zero of the event. |
| Type: | float |
| Description: | The end time of the window in seconds relative to time zero of the event. |
| Type: | float |
| Default value: | 1.0 |
| Description: | Weight for the window. Should not be more than one. |
def add_interval_window_utc_datetime(
self,
receiver_name: str,
component: str,
window_start_time: obspy.UTCDateTime,
window_end_time: obspy.UTCDateTime,
window_weight: float = 1.0,
) -> None: ...| Type: | str |
| Description: | Full name of the receiver. |
| Type: | str |
| Description: | The receiver component. |
| Type: | obspy.UTCDateTime |
| Description: | The start time of the window in seconds relative to time zero of the event. |
| Type: | obspy.UTCDateTime |
| Description: | The end time of the window in seconds relative to time zero of the event. |
| Type: | float |
| Default value: | 1.0 |
| Description: | Weight for the window. Should not be more than one. |
def clear(self) -> None: ...def get_interval_window_statistics(self) -> _InternalWindowStatistics: ...def get_latest_end_time(self) -> float: ...def get_latest_utc_end_time(self) -> obspy.UTCDateTime: ...def get_utc_datetime_windows_and_weights_for_receiver_component(
self, receiver_name: str, component: str
) -> dict[str, typing.Any]: ...| Type: | str |
| Description: | The name of the receiver. |
| Type: | str |
| Description: | The component. |
def get_windows_and_weights_for_receiver_component(
self, receiver_name: str, component: str
) -> dict[str, typing.Any]: ...| Type: | str |
| Description: | The name of the receiver. |
| Type: | str |
| Description: | The component. |
EventData object which will apply
it.def temporal_weights_function(
self,
st: obspy.Stream,
receiver: simple_config.receiver._Base,
sources: list[simple_config.source._Base],
) -> dict[
str, dict[str, dict[str, typing.Any]] | list[dict[str, typing.Any]]
]: ...| Type: | obspy.Stream |
| Description: | An obspy.Stream object with the data. |
| Type: | simple_config.receiver._Base |
| Description: | The receiver object for the receiver. |
| Type: | list[simple_config.source._Base] |
| Description: | All sources for the event. |
def write(self, overwrite: bool = False) -> None: ...| Type: | bool |
| Default value: | False |
| Description: | Overwite an existing file if this is True. |