pyrad.io.write_alarm_msg#
- pyrad.io.write_alarm_msg(radar_name, param_name_unit, date_last, target, tol_abs, np_trend, value_trend, tol_trend, nevents, np_last, value_last, fname)[source]#
writes an alarm file
- Parameters:
radar_name (str) – Name of the radar being controlled
param_name_unit (str) – Parameter and units
date_last (datetime object) – date of the current event
target, tol_abs (float) – Target value and tolerance
np_trend (int) – Total number of points in trend
value_trend, tol_trend (float) – Trend value and tolerance
nevents (int) – Number of events in trend
np_last (int) – Number of points in the current event
value_last (float) – Value of the current event
fname (str) – Name of file where to store the alarm information
- Returns:
fname (str) – the name of the file where data has written