STAT Model
Module for providing common model classes within the STAT.MGMT component.
- class ska_pst_lmc.stat.stat_model.StatMonitorData(*, real_pol_a_mean_freq_avg: float = 0.0, real_pol_a_variance_freq_avg: float = 0.0, real_pol_a_num_clipped_samples: int = 0, imag_pol_a_mean_freq_avg: float = 0.0, imag_pol_a_variance_freq_avg: float = 0.0, imag_pol_a_num_clipped_samples: int = 0, real_pol_a_mean_freq_avg_rfi_excised: float = 0.0, real_pol_a_variance_freq_avg_rfi_excised: float = 0.0, real_pol_a_num_clipped_samples_rfi_excised: int = 0, imag_pol_a_mean_freq_avg_rfi_excised: float = 0.0, imag_pol_a_variance_freq_avg_rfi_excised: float = 0.0, imag_pol_a_num_clipped_samples_rfi_excised: int = 0, real_pol_b_mean_freq_avg: float = 0.0, real_pol_b_variance_freq_avg: float = 0.0, real_pol_b_num_clipped_samples: int = 0, imag_pol_b_mean_freq_avg: float = 0.0, imag_pol_b_variance_freq_avg: float = 0.0, imag_pol_b_num_clipped_samples: int = 0, real_pol_b_mean_freq_avg_rfi_excised: float = 0.0, real_pol_b_variance_freq_avg_rfi_excised: float = 0.0, real_pol_b_num_clipped_samples_rfi_excised: int = 0, imag_pol_b_mean_freq_avg_rfi_excised: float = 0.0, imag_pol_b_variance_freq_avg_rfi_excised: float = 0.0, imag_pol_b_num_clipped_samples_rfi_excised: int = 0)[source]
A data class to transfer current STAT scalar data between the process and the component manager.
- Variables
real_pol_a_mean_freq_avg (float) – the mean voltage data across all channels for polarisation A and the I component
real_pol_a_variance_freq_avg (float) – the variance of voltage data across all channels for polarisation A and the I component
real_pol_a_num_clipped_samples (int) – the number of clipped samples across all channels for polarisation A and the I component
imag_pol_a_mean_freq_avg (float) – the mean voltage data across all channels for polarisation A and the Q component
imag_pol_a_variance_freq_avg (float) – the variance of voltage data across all channels for polarisation A and the Q component
imag_pol_a_num_clipped_samples (int) – the number of clipped samples across all channels for polarisation A and the Q component
real_pol_a_mean_freq_avg_rfi_excised (float) – the mean voltage data across channels not flagged for RFI for polarisation A and the I component
real_pol_a_variance_freq_avg_rfi_excised (float) – the variance of voltage data across channels not flagged for RFI for polarisation A and the I component
real_pol_a_num_clipped_samples_rfi_excised (int) – the number of clipped samples across channels without RFI for polarisation A and the I component
imag_pol_a_mean_freq_avg_rfi_excised (float) – the mean voltage data across channels not flagged for RFI for polarisation A and the Q component
imag_pol_a_variance_freq_avg_rfi_excised (float) – the variance of voltage data across channels not flagged for RFI for polarisation A and the Q component
imag_pol_a_num_clipped_samples_rfi_excised (int) – the number of clipped samples across channels without RFI for polarisation A and the Q component
real_pol_b_mean_freq_avg (float) – the mean voltage data across all channels for polarisation B and the I component
real_pol_b_variance_freq_avg (float) – the variance of voltage data across all channels for polarisation B and the I component
real_pol_b_num_clipped_samples (int) – the number of clipped samples across all channels for polarisation B and the I component
imag_pol_b_mean_freq_avg (float) – the mean voltage data across all channels for polarisation B and the Q component
imag_pol_b_variance_freq_avg (float) – the variance of voltage data across all channels for polarisation B and the Q component
imag_pol_b_num_clipped_samples (int) – the number of clipped samples across all channels for polarisation B and the Q component
real_pol_b_mean_freq_avg_rfi_excised (float) – the mean voltage data across channels not flagged for RFI for polarisation B and the I component
real_pol_b_variance_freq_avg_rfi_excised (float) – the variance of voltage data across channels not flagged for RFI for polarisation B and the I component
real_pol_b_num_clipped_samples_rfi_excised (int) – the number of clipped samples across channels without RFI for polarisation B and the I component
imag_pol_b_mean_freq_avg_rfi_excised (float) – the mean voltage data across channels not flagged for RFI for polarisation B and the Q component
imag_pol_b_variance_freq_avg_rfi_excised (float) – the variance of voltage data across channels not flagged for RFI for polarisation B and the Q component
imag_pol_b_num_clipped_samples_rfi_excised (int) – the number of clipped samples across channels without RFI for polarisation B and the Q component
- class ska_pst_lmc.stat.stat_model.StatMonitorDataStore[source]
A data store for STAT scalar subband monitoring data.
This data store will aggregate the separate data. For now this only handles 1 subband as needed for AA0.5 but for later array assembly releases this needs to aggregate the the separate subband data.
Initialise data store.
- property monitor_data: StatMonitorData
Return the current calculated monitoring data.
This aggregates all the individual subband data values into one
StatMonitorData
instance.Currently this only supports 1 subband but in the future this will should support multiple subbands. This can be done by knowing the number of samples per statistic from each subband, including the total number and the number that has not been flagged as RFI. For more information about how this can be achieved refer to Wikipedia - Algorithms for calculating variance - Parallel algorithm
- Returns
current monitoring data.