rsudp.c_alert (STA/LTA alarm)¶
Alert(q, sta=5, lta=30, thresh=1.6, reset=1.55, bp=False, debug=True, cha='HZ', sound=False, deconv=False, testing=False, *args, **kwargs)¶
A data consumer class that listens to a specific incoming data channel and calculates a recursive STA/LTA (short term average over long term average). If a threshold of STA/LTA ratio is exceeded, the class sets the
alarmflag to the alarm time as a
rsudp.p_producer.Producerwill see this flag and send an
ALARMmessage to the queues with the time set here. Likewise, when the
alarm_resetflag is set with a
obspy.core.utcdatetime.UTCDateTime, the Producer will send a
RESETmessage to the queues.
sta (float) – short term average (STA) duration in seconds.
lta (float) – long term average (LTA) duration in seconds.
thresh (float) – threshold for STA/LTA trigger.
debug (bool) – whether or not to display max STA/LTA calculation live to the console.
cha (str) – listening channel (defaults to [S,E]HZ)