5.2.2.1.5. eqcorrscan.utils.catalog_to_dd.write_event

eqcorrscan.utils.catalog_to_dd.write_event(catalog, event_id_mapper=None)[source]

Write obspy.core.event.Catalog to a hypoDD format event.dat file.

Parameters:
  • catalog (obspy.core.event.Catalog) – A catalog of obspy 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}

Returns:

dictionary of event-id mappings.