dug_seis.event_processing.location.locate_homogeneous module

dug_seis.event_processing.location.locate_homogeneous module#

Event location routines.

dug_seis.event_processing.location.locate_homogeneous.locate_in_homogeneous_background_medium(picks: List[Pick], coordinates: Dict[str, array], velocity: float | Dict[str, float], damping: float, local_to_global_coordinates: Callable, anisotropic_params: Dict[str, float] | Dict[str, Dict[str, float]] | None = None, verbose: bool = False) Event#

Locate an event in a homogeneous background medium from a list of picks using travel times.

This version will only consider P phase picks and ignores all other picks.

Parameters:
  • picks – List of pick objects to use. The all must either be the same phase, or a the velocity + anisotropic parameters must be given for each pick type.

  • coordinates – Dictionary mapping channel ids to cartesian coordinates.

  • velocity – P wave velocity or the minimum velocity in the anisotropic case.

  • damping – Damping.

  • local_to_global_coordinates – Function to convert the cartesian local coordinates to latitude/longitude/depth.

  • anisotropic_params – If given, an anisotropic model will be used to compute the travel times.

  • verbose – Print a short summary when an event is found.

Returns:

A complete event with a location origin. Will be returned regardless of how well the location works so a subsequent QC check is advisable.