obspy.io.hypodd.pha._read_pha
- _read_pha(filename, eventid_map=None, encoding='utf-8', **kwargs)[source]
Read a HypoDD PHA file and returns an ObsPy Catalog object.
Warning
This function should NOT be called directly, it registers via the ObsPy
read_events()
function, call this instead.- param str filename
File or file-like object in text mode.
- param dict ph2comp
mapping of phases to components (default: {‘P’: ‘Z’, ‘S’: ‘N’})
- param dict eventid_map
Desired mapping of hypodd event ids (dict values) to event resource ids (dict keys). The returned dictionary of the HYPODDPHA writing operation can be used. By default, ids are not mapped.
- param str encoding
encoding used (default: utf-8)
- rtype
- return
An ObsPy Catalog object.
Utility objects.
- Copyright
Lion Krischer (krischer@geophysik.uni-muenchen.de), 2013
- License
GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)
Utility objects.
- Copyright
Lion Krischer (krischer@geophysik.uni-muenchen.de), 2013
- License
GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)