VibrationDetector#

class lsst.ts.mtrotator.VibrationDetector(period, max_times, frequency_range, snr, threshold, dt=0.05)#

Bases: object

Vibration detector to monitor the low-frequency vibration.

Parameters:
  • period (float) – Detection period of the low-frequency vibration in seconds. The data collected in this period will be used to do the fast Fourier transform (FFT).

  • max_times (int) – If the times of low-frequency vibration exceed this value contiguously, it will be identified as a vibration event.

  • frequency_range (list [float]) – Frequency range [low, high] to detect in Hz.

  • snr (float) – Signal-to-noise ratio (SNR) of the low-frequency vibration (peak in the frequency diagram after FFT) to be identified as a vibration.

  • threshold (float) – Threshold to decide the post-processing data of rotator’s position can be used to do FFT or not (in degrees).

  • dt (float, optional) – Delta time between the data points in seconds. (the default is 0.05)

Methods Summary

check_vibration_frequency()

Check the vibration frequency in the detection range.

put_data(data, reference)

Put the data to the queue.

Methods Documentation

check_vibration_frequency()#

Check the vibration frequency in the detection range.

Returns:

Frequencies of the detected vibration.

Return type:

set

put_data(data, reference)#

Put the data to the queue.

Parameters:
  • data (float) – Data.

  • reference (float) – Reference of the data.

Returns:

If the queue is full, return True. Otherwise, return False.

Return type:

bool