obspy.core.quakeml.readQuakeML

readQuakeML(filename)[source]

Reads a QuakeML 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) QuakeML file to be read.
Return type:Catalog
Returns:A ObsPy Catalog object.

Example

>>> from obspy.core.event import readEvents
>>> cat = readEvents('/path/to/iris_events.xml')
>>> print cat
2 Event(s) in Catalog:
2011-03-11T05:46:24.120000Z | +38.297, +142.373 | 9.1 MW
2006-09-10T04:26:33.610000Z |  +9.614, +121.961 | 9.8 MS

This Page