obspy.core.event.Catalog¶
-
class
Catalog
(events=None, **kwargs)[source]¶ Bases:
object
This class serves as a container for Event objects.
- Parameters
events (list of
Event
, optional) – List of eventsresource_id (
ResourceIdentifier
) – Resource identifier of the catalog.description (str, optional) – Description string that can be assigned to the earthquake catalog, or collection of events.
comments (list of
Comment
, optional) – Additional comments.creation_info (
CreationInfo
, optional) – Creation information used to describe author, version, and creation time.
Note
For handling additional information not covered by the QuakeML standard and how to output it to QuakeML see the ObsPy Tutorial.
Attributes
__dict__
__doc__
__hash__
__module__
__weakref__
list of weak references to the object (if defined)
creation_info
resource_id
Public Methods
Appends a single Event object to the current Catalog object.
Clears event list (convenient method).
Returns a deepcopy of the Catalog object.
Returns the number of Events in the Catalog object.
Extends the current Catalog object with a list of Event objects.
Returns a new Catalog object only containing Events which match the specified filter rules.
Creates preview map of all events in current Catalog object.
Saves catalog into a file.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Special Methods
Method to add two catalogs.
Passes on the __delitem__ method to the underlying list of traces.
Default dir() implementation.
__eq__ method of the Catalog object.
Default object formatter.
__getitem__ method of the Catalog object.
__getslice__ method of the Catalog object.
Method to add two catalog with self += other.
Initialize self.
This method is called when a class is subclassed.
Return a robust iterator for Events of current Catalog.
Returns the number of Events in the Catalog object.
Return self!=value.
Create and return a new object.
Helper for pickle.
Helper for pickle.
__setitem__ method of the Catalog object.
Size of object in memory, in bytes.
Returns short summary string of the current catalog.
Abstract classes can override this to customize issubclass().