obspy.pde.mchedr.readMchedr

readMchedr(*args, **kwargs)[source]

Reads a NEIC PDE mchedr (machine-readable Earthquake Data Report) file and returns a ObsPy Catalog object.

Warning

This function should NOT be called directly, it registers via the ObsPy readEvents() function, call this instead.

Parameters:filename (str) mchedr file to be read.
Return type:Catalog
Returns:An ObsPy Catalog object.

Example

>>> from obspy.core.event import readEvents
>>> cat = readEvents('/path/to/mchedr.dat')
>>> print cat
1 Event(s) in Catalog:
2012-01-01T05:27:55.980000Z | +31.456, +138.072 | 6.2 Mb

This Page