Catalog¶
-
class
mss_dataserver.event.detection.
Catalog
(name, db_id=None, description=None, agency_uri=None, author_uri=None, creation_time=None, detections=None)[source]¶ Bases:
object
A detection catalog.
- 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 (
obspy.UTCDateTime
) – The creation time of the detection.detections (
list
ofDetection
) – The detections of the catalog.
Methods¶
|
Instance initialization. |
|
Add one or more detections to the catalog. |
|
Set the channels according to the rec_stream_ids. |
Clear the detections list. |
|
|
Convert a database orm mapper catalog to a catalog. |
|
Get detections using search criteria passed as keywords. |
|
Load detections from the database. |
|
Remove the detections from the catalog. |
|
Write the catalog to the database. |