Read event files into an ObsPy Catalog object.
The readEvents() function opens either one or multiple event files given via file name or URL using the pathname_or_url attribute.
Parameters: |
|
---|---|
Returns: | A ObsPy Catalog object. |
Supported Formats
Additional ObsPy modules extend the functionality of the readEvents() function. The following table summarizes all known file formats currently supported by ObsPy.
Please refer to the Linked Function Call of each module for any extra options available at the import stage.
Format | Required Module | Linked Function Call |
---|---|---|
MCHEDR | obspy.pde | obspy.pde.mchedr.readMchedr() |
QUAKEML | obspy.core | obspy.core.quakeml.readQuakeML() |
Next to the readEvents() function the write() method of the returned Catalog object can be used to export the data to the file system.