Catalog¶
-
class
mss_dataserver.event.core.
Catalog
(name, db_id=None, description=None, agency_uri=None, author_uri=None, creation_time=None, events=None)[source]¶ Bases:
object
A catalog holding seismic events.
- Parameters
name (str) – The name of the catalog.
db_id (int) – The database id of the catalog.
description (str) – The description of the catalog.
agency_uri (str) – The uniform resource identifier of the author agency.
author_uri (str) – The uniform resource identifier of the author.
creation_time (
str
orobspy.UTCDateTime
) – The creation time of the event. A string that can be parsed byobspy.UTCDateTime
or aobspy.UTCDateTime
instance.
- Variables
logger (logging.Logger) – The logger of the instance.
Methods¶
|
Instance initialization. |
|
Add one or more events to the events. |
Clear the events list. |
|
|
Convert a database orm mapper catalog to a catalog. |
|
Get events using search criteria passed as keywords. |
|
Get a list of mapper class instances for bulk insert. |
|
Load events from the database. |
|
Write the events in the catalog to CSV file. |
|
Write the catalog to the database. |