Detection¶
-
class
mss_dataserver.event.detection.Detection(start_time, end_time, stations, max_pgv, db_id=None, catalog_id=None, agency_uri=None, author_uri=None, creation_time=None, parent=None, changed=True)[source]¶ Bases:
objectA MSS Delaunay detection.
- Parameters
start_time (
obspy.UTCDateTime) – The start time of the detection.end_time (
obspy.UTCDateTime) – The end time of the detection.stations (
listofStation) – 3 stations related to the detection. They are the corners of a detection triangle.max_pgv (dict) – The maximum PGV values of the detection timespan. A dictionary of {station.nsl_string: PGV values}.
db_id (int) – The database id of the detection.
catalog_id (int) – The database id of the detection catalog which contains the detection.
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.parent (
Catalog) – The detection catalog holding the detection.changed (bool) – Flag indicating a change of the detection.
Properties¶
absolute_max_pgvfloat: The absolute maximum PGV value.
end_time_stringstr: The string representation of the end time.
lengthfloat: The length of the detection in seconds.
nsltuple of str: The NSLC code of the related channel.
nslctuple of str: The NSLC code of the related channel.
ridstr: The resource ID of the detection.
start_time_stringstr: The string representation of the start time.
Methods¶
|
Initialize the instance. |
|
Convert a database orm mapper detection to a detection. |
|
Get an orm representation to use it for bulk insertion into the database. |
|
Set the channel matching the recorder stream. |
|
Update the attributes of the detection. |
|
Write the detection to the pSysmon database. |
