6.2.2.1.6. eqcorrscan.utils.catalog_to_dd.write_phase¶
- eqcorrscan.utils.catalog_to_dd.write_phase(catalog, event_id_mapper=None)[source]¶
Write a phase.dat formatted file from an obspy catalog.
- 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}
- Returns:
event_id_mapper