Required
ewws| Type: | EventWindowAndWeightSet |
| Description: | The event and window set to apply things to. |
weighting_chain each describe a different weighting
function. The weights from all functions/stages are multiplied together
to yield the final receiver weight.weighting_chain must be a dictionary of the form:{ "weighting_scheme": "name_of_the_schema", "function_kwargs": {"extra": "function_arguments"}, }
"weighting_scheme" can be a function that must accept at least two
arguments listed in the following.event: The event objects for which to set weights.receiver: A dictionary of receiver name -> coordinates."function_kwargs" key. The function must return a dictionary of
receiver name -> receiver weight."ruan_et_al_2019": See the receiver_weighting_ruan_et_al_2019
"mute_near_source_receivers": See the
receiver_weighting_mute_near_source_receivers function for details.def apply_receiver_weighting(
ewws: EventWindowAndWeightSet, weighting_chain: list[dict], normalize: bool
) -> None: ...| Type: | EventWindowAndWeightSet |
| Description: | The event and window set to apply things to. |
| Type: | list[dict] |
| Description: | A list of dictionaries, each a separate weighting function. |
| Type: | bool |
| Description: | If True (recommended) normalize the sum of all weights to be equal to the receiver count after the all weighting functions have been applied. |
def receiver_weighting_mute_near_source_receivers(
event: Event,
receivers: dict,
minimum_receiver_distance_in_m: float,
maximum_receiver_mute_distance_in_m: float,
taper_type: str,
) -> dict[str, float]: ...| Type: | Event |
| Description: | Event object. |
| Type: | dict |
| Description: | A dictionary of receiver names to coordinates. |
| Type: | float |
| Description: | Minimum receiver distance in meters. All receivers closer than this to the source will have zero weight. |
| Type: | float |
| Description: | All receivers further away than this will not be muted. |
| Type: | str |
| Description: | How to go from weight 0 to weight 1 for receivers in the transition region. Currently only "hanning" is supported. |
dict[str, float]def receiver_weighting_ruan_et_al_2019(
event: Event, receivers: dict, ref_distance_condition_fraction: float
) -> dict[str, float]: ...| Type: | Event |
| Description: | Event object. |
| Type: | dict |
| Description: | A dictionary of receiver names to coordinates. |
| Type: | float |
| Description: | Used to choose the actual reference distance. The condition number of the diagonal weighting matrix is computed for a large range of possible reference distances. This number is the condition number as a fraction of the maximum condition number whose reference distance should be chosen. Please see the paper for details. A reasonable number seems to be 1.0 / 3.0. |
dict[str, float]