5.2.1.2. eqcorrscan.utils.catalog_to_dd.read_phase¶
-
eqcorrscan.utils.catalog_to_dd.
read_phase
(ph_file)[source]¶ Read hypoDD phase files into Obspy catalog class.
Parameters: ph_file (str) Phase file to read event info from. Returns: Catalog of events from file. Return type: obspy.core.event.Catalog
>>> from obspy.core.event.catalog import Catalog >>> catalog = read_phase('eqcorrscan/tests/test_data/tunnel.phase') >>> isinstance(catalog, Catalog) True