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)[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.

Returns

event_id_mapper