5.2.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
>>> from obspy.core.event.catalog import Catalog >>> # Get the path to the test data >>> import eqcorrscan >>> import os >>> TEST_PATH = os.path.dirname(eqcorrscan.__file__) + '/tests/test_data' >>> catalog = read_phase(TEST_PATH + '/tunnel.phase') >>> isinstance(catalog, Catalog) True