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:
object
A 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 (
list
ofStation
) – 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_pgv
float: The absolute maximum PGV value.
end_time_string
str: The string representation of the end time.
length
float: The length of the detection in seconds.
nsl
tuple of str: The NSLC code of the related channel.
nslc
tuple of str: The NSLC code of the related channel.
rid
str: The resource ID of the detection.
start_time_string
str: 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. |