5.2.2.1.3. eqcorrscan.utils.catalog_to_dd.write_catalog

eqcorrscan.utils.catalog_to_dd.write_catalog(catalog, event_id_mapper=None, max_sep=8, min_link=8, max_workers=None)[source]

Generate a dt.ct file for hypoDD for a series of events.

Parameters:
  • catalog (obspy.core.event.Catalog) – Catalog of events

  • event_id_mapper (dict) – Dictionary mapping event resource id to an integer event id for hypoDD. If this is None, or missing events then the dictionary will be updated to include appropriate event-ids. This should be of the form {event.resource_id.id: integer_id}

  • max_sep (float) – Maximum separation between event pairs in km

  • min_link (int) – Minimum links for an event to be paired, e.g. minimum number of picks from the same station and channel (and phase) that are shared between two events for them to be paired.

  • max_workers (int) – Maximum number of workers for parallel processing. If None then all threads will be used.

Returns:

event_id_mapper

Note

Differential times are computed as travel-time for event 1 minus travel-time for event 2 (tt1 - tt2).