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 of Detection) – The detections of the catalog.

Methods

__init__(name[, db_id, description, …])

Instance initialization.

add_detections(detections)

Add one or more detections to the catalog.

assign_channel(inventory)

Set the channels according to the rec_stream_ids.

clear_detections()

Clear the detections list.

from_orm(db_catalog[, load_detections])

Convert a database orm mapper catalog to a catalog.

get_detections([start_time, end_time, …])

Get detections using search criteria passed as keywords.

load_detections(project[, start_time, …])

Load detections from the database.

remove_detections(detections)

Remove the detections from the catalog.

write_to_database(project)

Write the catalog to the database.

Inheritence diagram

Inheritance diagram of mss_dataserver.event.detection.Catalog