Josh Dillon, Last Revised February 2021
This notebooks brings together as much information as possible from ant_metrics
, auto_metrics
and redcal
to help figure out which antennas are working properly and summarizes it in a single giant table. It is meant to be lightweight and re-run as often as necessary over the night, so it can be run when any of those is done and then be updated when another one completes.
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import pandas as pd
pd.set_option('display.max_rows', 1000)
from hera_qm.metrics_io import load_metric_file
from hera_cal import utils, io, redcal
import glob
import os
import h5py
from copy import deepcopy
from IPython.display import display, HTML
from hera_notebook_templates.utils import status_colors
%matplotlib inline
%config InlineBackend.figure_format = 'retina'
display(HTML("<style>.container { width:100% !important; }</style>"))
# If you want to run this notebook locally, copy the output of the next cell into the first few lines of this cell.
# JD = "2459122"
# data_path = '/lustre/aoc/projects/hera/H4C/2459122'
# ant_metrics_ext = ".ant_metrics.hdf5"
# redcal_ext = ".maybe_good.omni.calfits"
# nb_outdir = '/lustre/aoc/projects/hera/H4C/h4c_software/H4C_Notebooks/_rtp_summary_'
# os.environ["JULIANDATE"] = JD
# os.environ["DATA_PATH"] = data_path
# os.environ["ANT_METRICS_EXT"] = ant_metrics_ext
# os.environ["REDCAL_EXT"] = redcal_ext
# os.environ["NB_OUTDIR"] = nb_outdir
# Use environment variables to figure out path to data
JD = os.environ['JULIANDATE']
data_path = os.environ['DATA_PATH']
ant_metrics_ext = os.environ['ANT_METRICS_EXT']
redcal_ext = os.environ['REDCAL_EXT']
nb_outdir = os.environ['NB_OUTDIR']
print(f'JD = "{JD}"')
print(f'data_path = "{data_path}"')
print(f'ant_metrics_ext = "{ant_metrics_ext}"')
print(f'redcal_ext = "{redcal_ext}"')
print(f'nb_outdir = "{nb_outdir}"')
JD = "2459635" data_path = "/mnt/sn1/2459635" ant_metrics_ext = ".ant_metrics.hdf5" redcal_ext = ".known_good.omni.calfits" nb_outdir = "/home/obs/src/H5C_Notebooks/_rtp_summary_"
from astropy.time import Time
utc = Time(JD, format='jd').datetime
print(f'Date: {utc.month}-{utc.day}-{utc.year}')
Date: 2-24-2022
# Per-season options
def ant_to_report_url(ant):
return f'https://htmlpreview.github.io/?https://github.com/HERA-Team/H5C_Notebooks/blob/main/antenna_report/antenna_{ant}_report.html'
use_auto_metrics = False
# find the auto_metrics file
glob_str = os.path.join(data_path, f'zen.{JD}*.auto_metrics.h5')
auto_metrics_file = sorted(glob.glob(glob_str))
# if it exists, load and extract relevant information
if len(auto_metrics_file) > 0:
auto_metrics_file = auto_metrics_file[0]
print(f'Found auto_metrics results file at {auto_metrics_file}.')
auto_metrics = load_metric_file(auto_metrics_file)
mean_round_modz_cut = auto_metrics['parameters']['mean_round_modz_cut']
auto_ex_ants = auto_metrics['ex_ants']['r2_ex_ants']
use_auto_metrics = True
else:
print(f'No files found matching glob {glob_str}. Skipping auto_metrics.')
Found auto_metrics results file at /mnt/sn1/2459635/zen.2459635.25255.sum.auto_metrics.h5.
use_ant_metrics = False
# get a list of all ant_metrics files
glob_str = os.path.join(data_path, f'zen.{JD}.?????.sum{ant_metrics_ext}')
ant_metrics_files = sorted(glob.glob(glob_str))
# if they exist, load as many of them as possible
if len(ant_metrics_files) > 0:
print(f'Found {len(ant_metrics_files)} ant_metrics files matching glob {glob_str}')
ant_metrics_apriori_exants = {}
ant_metrics_xants_dict = {}
ant_metrics_dead_ants_dict = {}
ant_metrics_crossed_ants_dict = {}
ant_metrics_dead_metrics = {}
ant_metrics_crossed_metrics = {}
dead_cuts = {}
crossed_cuts = {}
for amf in ant_metrics_files:
with h5py.File(amf, "r") as infile: # use h5py directly since it's much faster than load_metric_file
# get out results for this file
dead_cuts[amf] = infile['Metrics']['dead_ant_cut'][()]
crossed_cuts[amf] = infile['Metrics']['cross_pol_cut'][()]
xants = infile['Metrics']['xants'][:]
dead_ants = infile['Metrics']['dead_ants'][:]
crossed_ants = infile['Metrics']['crossed_ants'][:]
try:
# look for ex_ants in history
ex_ants_string = infile['Header']['history'][()].decode()
ex_ants_string = ex_ants_string.split('--apriori_xants')[1]
ex_ants_string = ex_ants_string.split('--')[0].strip()
except:
ex_ants_string = ''
# This only works for the new correlation-matrix-based ant_metrics
if 'corr' in infile['Metrics']['final_metrics'] and 'corrXPol' in infile['Metrics']['final_metrics']:
ant_metrics_dead_metrics[amf] = {eval(ant): infile['Metrics']['final_metrics']['corr'][ant][()]
for ant in infile['Metrics']['final_metrics']['corr']}
ant_metrics_crossed_metrics[amf] = {eval(ant): infile['Metrics']['final_metrics']['corrXPol'][ant][()]
for ant in infile['Metrics']['final_metrics']['corrXPol']}
else:
raise(KeywordError)
# organize results by file
ant_metrics_xants_dict[amf] = [(int(ant[0]), ant[1].decode()) for ant in xants]
ant_metrics_dead_ants_dict[amf] = [(int(ant[0]), ant[1].decode()) for ant in dead_ants]
ant_metrics_crossed_ants_dict[amf] = [(int(ant[0]), ant[1].decode()) for ant in crossed_ants]
ant_metrics_apriori_exants[amf] = [int(ant) for ant in ex_ants_string.split()]
dead_cut = np.median(list(dead_cuts.values()))
crossed_cut = np.median(list(crossed_cuts.values()))
use_ant_metrics = True
else:
print(f'No files found matching glob {glob_str}. Skipping ant_metrics.')
Found 1851 ant_metrics files matching glob /mnt/sn1/2459635/zen.2459635.?????.sum.ant_metrics.hdf5
use_redcal = False
glob_str = os.path.join(data_path, f'zen.{JD}.?????.sum{redcal_ext}')
redcal_files = sorted(glob.glob(glob_str))
if len(redcal_files) > 0:
print(f'Found {len(redcal_files)} ant_metrics files matching glob {glob_str}')
post_redcal_ant_flags_dict = {}
flagged_by_redcal_dict = {}
cspa_med_dict = {}
for cal in redcal_files:
hc = io.HERACal(cal)
_, flags, cspa, chisq = hc.read()
cspa_med_dict[cal] = {ant: np.nanmedian(cspa[ant], axis=1) for ant in cspa}
post_redcal_ant_flags_dict[cal] = {ant: np.all(flags[ant]) for ant in flags}
# check history to distinguish antennas flagged going into redcal from ones flagged during redcal
tossed_antenna_lines = hc.history.replace('\n','').split('Throwing out antenna ')[1:]
flagged_by_redcal_dict[cal] = sorted([int(line.split(' ')[0]) for line in tossed_antenna_lines])
use_redcal = True
else:
print(f'No files found matching glob {glob_str}. Skipping redcal chisq.')
Found 186 ant_metrics files matching glob /mnt/sn1/2459635/zen.2459635.?????.sum.known_good.omni.calfits
# Parse some general array properties, taking into account the fact that we might be missing some of the metrics
ants = []
pols = []
antpol_pairs = []
if use_auto_metrics:
ants = sorted(set(bl[0] for bl in auto_metrics['modzs']['r2_shape_modzs']))
pols = sorted(set(bl[2] for bl in auto_metrics['modzs']['r2_shape_modzs']))
if use_ant_metrics:
antpol_pairs = sorted(set([antpol for dms in ant_metrics_dead_metrics.values() for antpol in dms.keys()]))
antpols = sorted(set(antpol[1] for antpol in antpol_pairs))
ants = sorted(set(antpol[0] for antpol in antpol_pairs) | set(ants))
pols = sorted(set(utils.join_pol(ap, ap) for ap in antpols) | set(pols))
if use_redcal:
antpol_pairs = sorted(set([ant for cspa in cspa_med_dict.values() for ant in cspa.keys()]) | set(antpol_pairs))
antpols = sorted(set(antpol[1] for antpol in antpol_pairs))
ants = sorted(set(antpol[0] for antpol in antpol_pairs) | set(ants))
pols = sorted(set(utils.join_pol(ap, ap) for ap in antpols) | set(pols))
# Figure out remaining antennas not in data
hd = io.HERAData(sorted(glob.glob(os.path.join(data_path, 'zen.*.sum.uvh5')))[0])
unused_ants = [ant for ant in hd.antpos if ant not in ants]
# try to load a priori antenna statusesm but fail gracefully if this doesn't work.
a_priori_statuses = {ant: 'Not Found' for ant in ants}
nodes = {ant: np.nan for ant in ants + unused_ants}
try:
from hera_mc import cm_active, cm_hookup
# get apriori antenna status
h = cm_active.ActiveData(at_date=JD)
h.load_apriori()
for ant_name in h.apriori:
ant = int("".join(filter(str.isdigit, ant_name)))
if ant in a_priori_statuses:
a_priori_statuses[ant] = h.apriori[ant_name].status
# get node numbers
h = cm_hookup.Hookup()
hookup = h.get_hookup('default')
for ant_name in hookup:
ant = int("".join(filter(str.isdigit, ant_name)))
if ant in nodes:
if hookup[ant_name].get_part_from_type('node')['E<ground'] is not None:
nodes[ant] = int(hookup[ant_name].get_part_from_type('node')['E<ground'][1:])
except Exception as err:
print(f'Could not load node numbers and a priori antenna statuses.\nEncountered {type(err)} with message: {err}')
if use_auto_metrics:
# Parse modzs
modzs_to_check = {'Shape': 'r2_shape_modzs', 'Power': 'r2_power_modzs',
'Temporal Variability': 'r2_temp_var_modzs', 'Temporal Discontinuties': 'r2_temp_diff_modzs'}
worst_metrics = []
worst_zs = []
all_modzs = {}
binary_flags = {rationale: [] for rationale in modzs_to_check}
for ant in ants:
# parse modzs and figure out flag counts
modzs = {f'{pol} {rationale}': auto_metrics['modzs'][dict_name][(ant, ant, pol)]
for rationale, dict_name in modzs_to_check.items() for pol in pols}
for pol in pols:
for rationale, dict_name in modzs_to_check.items():
binary_flags[rationale].append(auto_metrics['modzs'][dict_name][(ant, ant, pol)] > mean_round_modz_cut)
# parse out all metrics for dataframe
for k in modzs:
col_label = k + ' Modified Z-Score'
if col_label in all_modzs:
all_modzs[col_label].append(modzs[k])
else:
all_modzs[col_label] = [modzs[k]]
mean_round_modz_cut = auto_metrics['parameters']['mean_round_modz_cut']
else:
mean_round_modz_cut = 0
if use_ant_metrics:
a_priori_flag_frac = {ant: np.mean([ant in apxa for apxa in ant_metrics_apriori_exants.values()]) for ant in ants}
dead_ant_frac = {ap: {ant: np.mean([(ant, ap) in das for das in ant_metrics_dead_ants_dict.values()])
for ant in ants} for ap in antpols}
crossed_ant_frac = {ant: np.mean([np.any([(ant, ap) in cas for ap in antpols])
for cas in ant_metrics_crossed_ants_dict.values()]) for ant in ants}
ant_metrics_xants_frac_by_antpol = {antpol: np.mean([antpol in amx for amx in ant_metrics_xants_dict.values()]) for antpol in antpol_pairs}
ant_metrics_xants_frac_by_ant = {ant: np.mean([np.any([(ant, ap) in amx for ap in antpols])
for amx in ant_metrics_xants_dict.values()]) for ant in ants}
average_dead_metrics = {ap: {ant: np.nanmean([dm.get((ant, ap), np.nan) for dm in ant_metrics_dead_metrics.values()])
for ant in ants} for ap in antpols}
average_crossed_metrics = {ant: np.nanmean([cm.get((ant, ap), np.nan) for ap in antpols
for cm in ant_metrics_crossed_metrics.values()]) for ant in ants}
else:
dead_cut = 0.4
crossed_cut = 0.0
if use_redcal:
cspa = {ant: np.nanmedian(np.hstack([cspa_med_dict[cal][ant] for cal in redcal_files])) for ant in antpol_pairs}
redcal_prior_flag_frac = {ant: np.mean([np.any([afd[ant, ap] and not ant in flagged_by_redcal_dict[cal] for ap in antpols])
for cal, afd in post_redcal_ant_flags_dict.items()]) for ant in ants}
redcal_flagged_frac = {ant: np.mean([ant in fbr for fbr in flagged_by_redcal_dict.values()]) for ant in ants}
DataFrame
¶# build dataframe
to_show = {'Ant': [f'<a href="{ant_to_report_url(ant)}" target="_blank">{ant}</a>' for ant in ants],
'Node': [nodes[ant] for ant in ants],
'A Priori Status': [a_priori_statuses[ant] for ant in ants]}
#'Worst Metric': worst_metrics, 'Worst Modified Z-Score': worst_zs}
df = pd.DataFrame(to_show)
# create bar chart columns for flagging percentages:
bar_cols = {}
if use_auto_metrics:
bar_cols['Auto Metrics Flags'] = [float(ant in auto_ex_ants) for ant in ants]
if use_ant_metrics:
if np.sum(list(a_priori_flag_frac.values())) > 0: # only include this col if there are any a priori flags
bar_cols['A Priori Flag Fraction in Ant Metrics'] = [a_priori_flag_frac[ant] for ant in ants]
for ap in antpols:
bar_cols[f'Dead Fraction in Ant Metrics ({ap})'] = [dead_ant_frac[ap][ant] for ant in ants]
bar_cols['Crossed Fraction in Ant Metrics'] = [crossed_ant_frac[ant] for ant in ants]
if use_redcal:
bar_cols['Flag Fraction Before Redcal'] = [redcal_prior_flag_frac[ant] for ant in ants]
bar_cols['Flagged By Redcal chi^2 Fraction'] = [redcal_flagged_frac[ant] for ant in ants]
for col in bar_cols:
df[col] = bar_cols[col]
# add auto_metrics
if use_auto_metrics:
for label, modz in all_modzs.items():
df[label] = modz
z_score_cols = [col for col in df.columns if 'Modified Z-Score' in col]
# add ant_metrics
ant_metrics_cols = {}
if use_ant_metrics:
for ap in antpols:
ant_metrics_cols[f'Average Dead Ant Metric ({ap})'] = [average_dead_metrics[ap][ant] for ant in ants]
ant_metrics_cols['Average Crossed Ant Metric'] = [average_crossed_metrics[ant] for ant in ants]
for col in ant_metrics_cols:
df[col] = ant_metrics_cols[col]
# add redcal chisq
redcal_cols = []
if use_redcal:
for ap in antpols:
col_title = f'Median chi^2 Per Antenna ({ap})'
df[col_title] = [cspa[ant, ap] for ant in ants]
redcal_cols.append(col_title)
# sort by node number and then by antenna number within nodes
df.sort_values(['Node', 'Ant'], ascending=True)
# style dataframe
table = df.style.hide_index()\
.applymap(lambda val: f'background-color: {status_colors[val]}' if val in status_colors else '', subset=['A Priori Status']) \
.background_gradient(cmap='viridis', vmax=mean_round_modz_cut * 3, vmin=0, axis=None, subset=z_score_cols) \
.background_gradient(cmap='bwr_r', vmin=dead_cut-.25, vmax=dead_cut+.25, axis=0, subset=list([col for col in ant_metrics_cols if 'dead' in col.lower()])) \
.background_gradient(cmap='bwr_r', vmin=crossed_cut-.25, vmax=crossed_cut+.25, axis=0, subset=list([col for col in ant_metrics_cols if 'crossed' in col.lower()])) \
.background_gradient(cmap='plasma', vmax=4, vmin=1, axis=None, subset=redcal_cols) \
.applymap(lambda val: 'font-weight: bold' if val < dead_cut else '', subset=list([col for col in ant_metrics_cols if 'dead' in col.lower()])) \
.applymap(lambda val: 'font-weight: bold' if val < crossed_cut else '', subset=list([col for col in ant_metrics_cols if 'crossed' in col.lower()])) \
.applymap(lambda val: 'font-weight: bold' if val > mean_round_modz_cut else '', subset=z_score_cols) \
.applymap(lambda val: 'color: red' if val > mean_round_modz_cut else '', subset=z_score_cols) \
.bar(subset=list(bar_cols.keys()), vmin=0, vmax=1) \
.format({col: '{:,.4f}'.format for col in z_score_cols}) \
.format({col: '{:,.4f}'.format for col in ant_metrics_cols}) \
.format({col: '{:,.2%}'.format for col in bar_cols}) \
.applymap(lambda val: 'font-weight: bold', subset=['Ant']) \
.set_table_styles([dict(selector="th",props=[('max-width', f'70pt')])]) \
This admittedly very busy table incorporates summary information about all antennas in the array. Its columns depend on what information is available when the notebook is run (i.e. whether auto_metrics
, ant_metrics
, and/or redcal
is done). These can be divided into 5 sections:
Basic Antenna Info: antenna number, node, and its a priori status.
Flag Fractions: Fraction of the night that an antenna was flagged for various reasons. Note that auto_metrics
flags antennas for the whole night, so it'll be 0% or 100%.
auto_metrics
Details: If auto_metrics
is included, this section shows the modified Z-score signifying how much of an outlier each antenna and polarization is in each of four categories: bandpass shape, overall power, temporal variability, and temporal discontinuities. Bold red text indicates that this is a reason for flagging the antenna. It is reproduced from the auto_metrics_inspect.ipynb
nightly notebook, so check that out for more details on the precise metrics.
ant_metrics
Details: If ant_metrics
is included, this section shows the average correlation-based metrics for antennas over the whole night. Low "dead ant" metrics (nominally below 0.4) indicate antennas not correlating with the rest of the array. Negative "crossed ant" metrics indicate antennas that show stronger correlations in their cross-pols than their same-pols, indicating that the two polarizations are probably swapped. Bold text indicates that the average is below the threshold for flagging.
redcal
chi^2 Details: If redcal
is included, this shows the median chi^2 per antenna. This would be 1 in an ideal array. Antennas are thrown out when they they are outliers in their median chi^2, usually greater than 4-sigma outliers in modified Z-score.
HTML(table.render())
Ant | Node | A Priori Status | Auto Metrics Flags | Dead Fraction in Ant Metrics (Jee) | Dead Fraction in Ant Metrics (Jnn) | Crossed Fraction in Ant Metrics | Flag Fraction Before Redcal | Flagged By Redcal chi^2 Fraction | ee Shape Modified Z-Score | nn Shape Modified Z-Score | ee Power Modified Z-Score | nn Power Modified Z-Score | ee Temporal Variability Modified Z-Score | nn Temporal Variability Modified Z-Score | ee Temporal Discontinuties Modified Z-Score | nn Temporal Discontinuties Modified Z-Score | Average Dead Ant Metric (Jee) | Average Dead Ant Metric (Jnn) | Average Crossed Ant Metric | Median chi^2 Per Antenna (Jee) | Median chi^2 Per Antenna (Jnn) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 60.718046 | 132.121756 | 170.691251 | 204.097635 | 87.547543 | 63.478778 | 511.176721 | 569.202262 | 0.018467 | 0.016820 | 0.001719 | 1.159939 | 1.150818 |
1 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 71.594575 | 100.237569 | 176.784888 | 173.700914 | 73.839538 | 85.865629 | 447.873568 | 512.173270 | 0.016672 | 0.016732 | 0.000130 | 1.095457 | 1.096663 |
2 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 58.298067 | 78.992609 | 170.624537 | 152.247618 | 55.315333 | 55.813840 | 480.810943 | 252.985803 | 0.016974 | 0.017077 | 0.000261 | 1.139789 | 1.145171 |
3 | 1 | digital_ok | 0.00% | 10.32% | 10.86% | 0.00% | 11.29% | 0.54% | 3.432497 | 1.108218 | 1.242834 | 0.586472 | 0.408502 | 1.065743 | -0.619117 | 0.293155 | 0.461427 | 0.450681 | 0.254792 | 2.005289 | 1.959270 |
4 | 1 | RF_maintenance | 100.00% | 10.32% | 10.86% | 0.00% | 100.00% | 0.00% | 0.384620 | 5.075576 | -0.577025 | -0.289516 | 1.589661 | 2.874021 | 2.275792 | 0.305110 | 0.468083 | 0.452127 | 0.250385 | 11.074925 | 10.128668 |
5 | 1 | digital_ok | 0.00% | 10.32% | 10.86% | 0.00% | 11.29% | 11.83% | 0.200109 | 0.759960 | -0.278260 | 2.200579 | -1.172746 | 0.158512 | -0.414545 | -1.142888 | 0.470448 | 0.461454 | 0.247422 | 2.264297 | 2.141838 |
7 | 2 | dish_ok | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.850621 | -1.116330 | 1.806957 | 0.551712 | -0.641270 | 1.132737 | 1.490160 | 1.295728 | 0.593829 | 0.597872 | 0.334245 | 5.129090 | 5.342542 |
8 | 2 | dish_ok | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 15.909014 | 3.436313 | 74.149314 | 15.423541 | 26.705790 | 6.479190 | 0.391755 | 1.547749 | 0.109882 | 0.582436 | 0.356699 | 1.326859 | 4.345351 |
9 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 6.024026 | 3.861950 | 7.713252 | 1.924575 | 1.887989 | 2.527060 | 0.684349 | -0.934739 | 0.568955 | 0.575836 | 0.325382 | 4.289974 | 4.266134 |
10 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.815347 | 5.778432 | 5.870050 | 16.974579 | 2.090188 | 10.427978 | 0.515355 | 1.177530 | 0.567816 | 0.558436 | 0.320885 | 5.659013 | 4.855882 |
11 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 207.544759 | 110.845828 | 198.370826 | 184.626455 | 66.628159 | 76.727495 | 443.482003 | 415.475434 | 0.019730 | 0.017582 | 0.000884 | 1.105377 | 1.109839 |
12 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 61.562150 | 96.356613 | 151.031296 | 183.740851 | 38.454281 | 101.632356 | 294.246217 | 500.370873 | 0.019527 | 0.017773 | 0.001150 | 1.113845 | 1.107072 |
13 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 61.055639 | 69.309343 | 154.609264 | 167.212238 | 45.484458 | 60.915436 | 254.021899 | 364.975684 | 0.019673 | 0.017538 | 0.001579 | 1.112971 | 1.107942 |
14 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 64.295850 | 131.896046 | 148.494107 | 223.004985 | 45.977254 | 157.430005 | 242.346684 | 904.007306 | 0.019644 | 0.017280 | 0.002656 | 1.118858 | 1.102849 |
15 | 1 | digital_ok | 100.00% | 10.32% | 10.86% | 0.00% | 100.00% | 0.00% | -0.453922 | 0.963152 | 3.873095 | 4.733996 | 0.118284 | 3.671839 | 0.269166 | 5.535631 | 0.474173 | 0.466582 | 0.251337 | 7.636547 | 8.354520 |
16 | 1 | digital_ok | 0.00% | 10.32% | 10.32% | 0.00% | 10.75% | 0.00% | -0.764452 | -0.464778 | -0.205224 | -0.771236 | -0.086577 | 0.344226 | 1.199873 | 0.553262 | 0.479277 | 0.473696 | 0.249521 | 1.930512 | 1.956740 |
17 | 1 | digital_ok | 0.00% | 10.32% | 10.32% | 0.00% | 10.75% | 0.00% | 0.117000 | 0.588431 | -0.837338 | 0.082780 | -0.514469 | -0.423680 | -0.016812 | 0.518813 | 0.475281 | 0.473626 | 0.242319 | 1.858328 | 1.887091 |
18 | 1 | RF_maintenance | 100.00% | 10.32% | 88.65% | 0.00% | 100.00% | 0.00% | 0.322190 | 12.032401 | -0.479090 | 3.449517 | 1.030760 | 8.975543 | -0.117947 | 12.978130 | 0.483822 | 0.326657 | 0.275633 | 5.206591 | 3.255263 |
19 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -1.500424 | -0.130836 | 2.166785 | 13.213741 | 11.041960 | 110.554248 | 0.098924 | 4.109060 | 0.604437 | 0.597246 | 0.326109 | 4.512388 | 4.478480 |
20 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.246066 | -0.703588 | 22.061035 | 2.752642 | 4.796006 | 1.826586 | 0.514405 | -0.355643 | 0.587205 | 0.599079 | 0.329266 | 4.295061 | 4.339750 |
21 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 5.393643 | 1.150035 | 35.434464 | 10.236664 | 3.497939 | 6.139005 | 1.068212 | 2.470275 | 0.557658 | 0.572265 | 0.323900 | 3.659713 | 3.991385 |
23 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 56.123262 | 57.726264 | 169.539136 | 142.341213 | 70.123916 | 47.201208 | 363.855432 | 253.396172 | 0.018138 | 0.017635 | 0.000718 | 1.152841 | 1.162300 |
24 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 162.106267 | 116.677603 | 262.425467 | 169.054151 | 151.290126 | 43.803668 | 1128.922852 | 331.300838 | 0.016676 | 0.016841 | 0.000217 | 1.113027 | 1.120605 |
25 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 359.679305 | 359.629418 | 319.342441 | 358.683128 | 52.195517 | 51.757255 | 194.068737 | 193.184972 | 0.022587 | 0.030847 | 0.011662 | 1.075972 | 0.922602 |
26 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 236.586841 | 362.033194 | 197.608723 | 385.626321 | 58.139637 | 49.928713 | 266.008772 | 200.857309 | 0.019666 | 0.014116 | 0.008780 | 1.086251 | 0.000000 |
27 | 1 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 17.413473 | 22.959183 | 75.341425 | 80.273710 | 28.580575 | 36.374672 | 1.506885 | 1.425967 | 0.142786 | 0.057971 | 0.061051 | 2.712529 | 1.248599 |
28 | 1 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 27.316104 | 2.428150 | 15.520243 | 3.019568 | 13.032615 | 6.002121 | 14.991185 | 0.212338 | 0.154483 | 0.240725 | -0.077371 | 2.559101 | 5.614552 |
29 | 1 | digital_ok | 0.00% | 10.32% | 10.32% | 0.00% | 10.75% | 6.45% | -0.500767 | -0.139126 | -0.015745 | 0.188678 | -0.521963 | -0.725121 | -1.028008 | 0.013455 | 0.489943 | 0.482860 | 0.247614 | 2.151532 | 2.247431 |
30 | 1 | RF_maintenance | 100.00% | 10.32% | 10.32% | 0.00% | 100.00% | 0.00% | 1.118159 | 1.521645 | 5.555620 | -0.744646 | 7.874810 | -0.043586 | 7.324290 | -0.184104 | 0.486777 | 0.478829 | 0.249516 | 7.453565 | 6.954605 |
31 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.507446 | 5.075285 | 3.139747 | 19.784674 | 1.563014 | 3.279808 | 0.563992 | 1.528661 | 0.608078 | 0.595674 | 0.328788 | 4.622999 | 4.657143 |
32 | 2 | dish_ok | 100.00% | 7.62% | 0.54% | 0.00% | 100.00% | 0.00% | 36.057352 | 37.741611 | 9.838254 | 12.363587 | 5.349067 | 4.183873 | 8.009306 | 8.853267 | 0.499803 | 0.507377 | 0.201491 | 4.017212 | 4.137528 |
33 | 2 | dish_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.732663 | 3.309086 | 15.024802 | 2.740910 | 5.507787 | 1.459290 | 2.059926 | -0.632726 | 0.587885 | 0.590038 | 0.337072 | 5.521502 | 5.341137 |
36 | 3 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.595418 | -1.066844 | 2.339091 | 0.385902 | 0.749115 | 0.663924 | -0.817168 | 0.550528 | 0.576504 | 0.562344 | 0.351136 | 1.638402 | 1.620007 |
37 | 3 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | -0.717331 | 21.893383 | 3.664937 | 75.065580 | 0.223328 | 32.239990 | -1.168738 | 0.677793 | 0.588586 | 0.103246 | 0.348746 | 6.861798 | 1.697079 |
38 | 3 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 2.204653 | 23.046819 | -0.673073 | 78.387388 | -0.130934 | 32.854232 | -0.362209 | 1.625200 | 0.592180 | 0.100514 | 0.355887 | 6.940438 | 1.444479 |
39 | 0 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 366.318073 | 367.954063 | 400.591416 | inf | 44.891344 | 123.916145 | 216.089324 | 694.805951 | 0.014267 | nan | nan | 0.000000 | 0.000000 |
40 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.61% | 0.809260 | 0.859488 | -0.549209 | 1.870451 | 0.207100 | -0.145458 | -0.887889 | -0.486184 | 0.550074 | 0.544921 | 0.289394 | 1.949960 | 1.968517 |
41 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 13.44% | -0.139532 | 0.243630 | 0.800078 | -0.786822 | 1.187048 | -0.451833 | -0.526857 | 2.724733 | 0.553761 | 0.552047 | 0.284038 | 2.307255 | 2.301676 |
42 | 4 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.897948 | 0.912336 | -0.056943 | 0.007566 | -0.052280 | 0.305115 | -0.501041 | -0.419852 | 0.558571 | 0.557770 | 0.281920 | 5.652647 | 6.709716 |
45 | 5 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 0.680508 | 21.831419 | 0.142238 | 76.800363 | 0.527243 | 32.740540 | -0.626987 | 0.919789 | 0.610983 | 0.118054 | 0.374201 | 5.046520 | 1.831531 |
46 | 5 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.327161 | -0.648843 | 0.994401 | -0.428606 | 2.978560 | -0.356471 | 0.984891 | 1.755371 | 0.601294 | 0.599356 | 0.334720 | 1.650936 | 1.641850 |
50 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.281367 | 29.274730 | -0.041173 | 2.737466 | 0.269326 | 11.756585 | 2.782069 | 50.600654 | 0.574121 | 0.498178 | 0.329151 | 10.559030 | 8.111129 |
51 | 3 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 0.154805 | 21.939995 | 1.940673 | 78.525588 | 0.613384 | 32.999527 | 0.746994 | 1.404671 | 0.596492 | 0.109415 | 0.366847 | 8.454937 | 1.561894 |
52 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.071740 | 5.908013 | 0.345525 | -0.263069 | 2.351297 | 5.772906 | 21.295602 | 29.610227 | 0.601414 | 0.585441 | 0.333466 | 8.840230 | 7.934965 |
53 | 3 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.54% | 0.00% | -0.955574 | -0.745008 | -0.549224 | 0.005100 | 0.725473 | -0.260249 | 0.574314 | 0.172563 | 0.616849 | 0.614117 | 0.339354 | 1.816873 | 1.774047 |
54 | 4 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.002688 | -0.811461 | 0.679375 | -0.968484 | -0.859659 | -1.088345 | -0.856921 | -0.855727 | 0.551369 | 0.556165 | 0.280405 | 9.404322 | 10.150411 |
55 | 4 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 1.469016 | 23.882073 | 5.907607 | 75.137380 | 4.317402 | 29.946292 | -0.880918 | 2.095355 | 0.284201 | 0.197534 | 0.039093 | 4.200369 | 1.770545 |
56 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.978250 | 0.808815 | 1.652344 | 1.746328 | 0.606603 | 3.902383 | 0.602334 | 6.493205 | 0.559237 | 0.559677 | 0.279716 | 6.784439 | 6.035053 |
57 | 4 | RF_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 19.965475 | 23.141646 | 74.293780 | 79.349325 | 30.965773 | 35.757582 | 0.539949 | 1.412614 | 0.056904 | 0.045306 | 0.006466 | 1.513136 | 1.528887 |
65 | 3 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.851666 | 25.376293 | 76.982500 | 79.587908 | 31.279280 | 35.348613 | 1.604735 | 2.250351 | 0.038136 | 0.039579 | 0.000188 | 1.287111 | 1.293303 |
66 | 3 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 17.109889 | 23.808801 | 75.720763 | 80.533860 | 29.533587 | 36.362528 | 1.332481 | 2.080136 | 0.086191 | 0.045418 | 0.008540 | 1.365217 | 1.244025 |
67 | 3 | digital_ok | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 20.130753 | 2.990331 | 76.794681 | 13.710664 | 31.375112 | 9.689988 | 0.979322 | 1.046068 | 0.053583 | 0.602285 | 0.365360 | 1.204892 | 8.178114 |
68 | 3 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.658931 | -0.408018 | -0.502838 | 0.068599 | -1.533620 | -0.640302 | -1.094580 | -0.933937 | 0.620422 | 0.618899 | 0.327621 | 1.759518 | 1.863327 |
69 | 4 | digital_ok | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 19.290505 | -1.319786 | 74.217395 | -0.659905 | 27.742523 | 2.349888 | 0.648545 | 0.382700 | 0.109318 | 0.565466 | 0.322564 | 2.820082 | 5.924134 |
70 | 4 | digital_ok | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | -0.003237 | 23.193495 | 1.160233 | 78.353904 | -1.187523 | 31.460253 | -0.152608 | 1.434212 | 0.565293 | 0.120024 | 0.323726 | 5.928368 | 1.457524 |
71 | 4 | RF_maintenance | 100.00% | 97.84% | 100.00% | 0.00% | 100.00% | 0.00% | 46.133618 | 27.464080 | 6.506789 | 80.194471 | 11.224670 | 33.541460 | 2.209128 | 1.118012 | 0.296009 | 0.128236 | 0.083054 | 8.394897 | 1.605296 |
72 | 4 | RF_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.888812 | -0.686955 | -0.424053 | 1.308268 | 1.213700 | 2.301415 | 4.770056 | 2.066332 | 0.554325 | 0.562511 | 0.273169 | 4.435925 | 4.397096 |
73 | 5 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.225168 | 0.688870 | -0.669607 | 1.517504 | 0.093650 | 0.191433 | -0.238341 | -0.715755 | 0.624010 | 0.619156 | 0.328671 | 5.328761 | 5.307184 |
81 | 7 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.154114 | 1.179159 | 0.632936 | -0.788608 | -0.736428 | -0.929442 | 1.104183 | 0.511945 | 0.567992 | 0.569674 | 0.334032 | 0.861163 | 1.022781 |
82 | 7 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 9.372984 | 4.502306 | 42.557752 | 37.115048 | 8.836638 | 7.354925 | 7.079017 | 5.054690 | 0.579050 | 0.588968 | 0.331217 | 8.151533 | 8.446879 |
83 | 7 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 22.181909 | 24.553081 | 69.724318 | 73.214558 | 30.342195 | 35.281571 | 1.419700 | 1.094780 | 0.051107 | 0.053422 | -0.000955 | 1.319928 | 1.405697 |
84 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.251821 | 2.947782 | 20.966261 | 8.182996 | 19.809278 | 11.019149 | -1.667758 | -1.588000 | 0.603347 | 0.611289 | 0.301722 | 9.570550 | 8.162244 |
85 | 8 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | nan | nan | inf | inf | nan | nan | nan | nan | nan | nan | nan | 0.000000 | 0.000000 |
86 | 8 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | nan | nan | inf | inf | nan | nan | nan | nan | nan | nan | nan | 0.000000 | 0.000000 |
87 | 8 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.753375 | 2.737781 | 23.630378 | 5.484745 | 2.075911 | 2.076720 | 1.148824 | 2.884950 | 0.620864 | 0.629758 | 0.311894 | 5.880447 | 5.744903 |
88 | 9 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 22.811976 | 25.417476 | 69.045840 | 72.772337 | 30.869126 | 35.580720 | 3.728281 | 1.636894 | 0.051203 | 0.049212 | -0.001018 | 1.202405 | 1.204570 |
89 | 9 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.870560 | 0.928705 | 0.313519 | 1.242578 | 0.658198 | 1.058597 | 6.981568 | 8.249969 | 0.615795 | 0.618596 | 0.326307 | 5.084781 | 5.419281 |
90 | 9 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.439503 | 2.381057 | 11.706329 | -0.187560 | 5.117132 | 4.134989 | 2.781962 | 4.232466 | 0.607823 | 0.607532 | 0.332011 | 6.064516 | 6.566518 |
91 | 9 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 21.391871 | 22.990021 | 68.612177 | 73.326935 | 30.962293 | 35.226341 | 2.061106 | 1.834329 | 0.050356 | 0.047567 | 0.000381 | 1.574232 | 2.039932 |
92 | 10 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.54% | 0.00% | -0.784995 | -0.156341 | 0.594529 | 0.551175 | -0.705012 | 0.590974 | 0.863992 | 1.406109 | 0.558409 | 0.558048 | 0.309595 | 1.585090 | 1.704196 |
93 | 10 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 17.978998 | 22.805720 | 72.348619 | 78.771802 | 27.914125 | 36.258308 | 1.471500 | 2.230919 | 0.099296 | 0.052747 | 0.008158 | 1.959319 | 1.545399 |
94 | 10 | RF_maintenance | 0.00% | 0.54% | 0.54% | 0.00% | 100.00% | 0.00% | -1.508702 | -1.163268 | 0.133402 | -0.610639 | 0.302120 | 2.818281 | 0.519424 | -0.181744 | 0.539239 | 0.531470 | 0.310596 | 6.354136 | 6.619690 |
98 | 7 | digital_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.117719 | 24.435131 | 65.842189 | 70.312162 | 29.000778 | 35.774276 | 1.621191 | 1.217655 | 0.096948 | 0.051688 | 0.017685 | 1.436798 | 1.353236 |
99 | 7 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.853279 | 0.716337 | 0.320654 | 1.199206 | 2.619649 | 1.413504 | 0.396960 | 0.794557 | 0.586312 | 0.591297 | 0.333715 | 8.627551 | 7.430629 |
100 | 7 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.177988 | 24.818746 | 64.121284 | 71.511353 | 28.243449 | 35.458625 | 2.116914 | 2.098623 | 0.105627 | 0.054437 | 0.020916 | 1.574905 | 1.350872 |
101 | 8 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.693975 | 0.625887 | 0.964379 | -0.679720 | 1.225648 | -0.846792 | 1.223383 | -0.108776 | 0.622761 | 0.626855 | 0.315012 | 8.441639 | 7.271076 |
102 | 8 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | nan | nan | inf | inf | nan | nan | nan | nan | nan | nan | nan | 0.000000 | 0.000000 |
103 | 8 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.262978 | 0.542709 | 2.488256 | -0.843206 | -0.850787 | 0.147027 | -0.054492 | -0.379270 | 0.633517 | 0.631822 | 0.317841 | 1.597783 | 1.588246 |
104 | 8 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.657321 | -0.223974 | 5.676670 | -0.784653 | -0.596935 | 2.846629 | 0.128061 | -0.508188 | 0.630893 | 0.635469 | 0.319658 | 6.213315 | 6.382689 |
105 | 9 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 17.719980 | 25.543663 | 68.030877 | 74.476623 | 27.339001 | 35.225291 | 1.065259 | 1.692761 | 0.098516 | 0.047338 | 0.039495 | 3.052109 | 1.864854 |
106 | 9 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.617976 | 2.086287 | -0.582879 | 0.163384 | 4.439816 | 1.310898 | 0.611097 | 0.481823 | 0.617646 | 0.619890 | 0.331758 | 4.338887 | 5.018636 |
107 | 9 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.846254 | 23.188433 | 64.981951 | 69.637630 | 28.132428 | 35.397007 | 0.649084 | 1.271135 | 0.098669 | 0.049805 | 0.035974 | 1.326896 | 1.239257 |
108 | 9 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.792167 | 2.421001 | -0.702063 | 0.595427 | 0.768814 | 0.676939 | -0.671668 | -0.898256 | 0.603392 | 0.602891 | 0.336680 | 1.348592 | 1.400201 |
109 | 10 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.54% | 0.00% | -0.251576 | -0.359258 | 0.093809 | -0.915797 | 0.135190 | 0.045562 | -0.463306 | -0.193466 | 0.562264 | 0.562216 | 0.308551 | 1.675364 | 1.753642 |
110 | 10 | RF_maintenance | 0.00% | 0.00% | 0.54% | 0.00% | 100.00% | 0.00% | -0.125247 | 0.708803 | -0.433885 | -0.108865 | -0.533646 | -0.678761 | 3.010715 | 0.998329 | 0.558903 | 0.554960 | 0.307227 | 9.108797 | 10.515109 |
111 | 10 | digital_ok | 0.00% | 0.54% | 0.54% | 0.00% | 0.54% | 0.00% | -0.467071 | 0.535036 | 0.988607 | -0.812289 | 0.657918 | 0.712367 | -0.976424 | 0.290510 | 0.546670 | 0.541970 | 0.306423 | 1.654774 | 1.748357 |
112 | 10 | RF_maintenance | 0.00% | 0.54% | 0.54% | 0.00% | 100.00% | 0.00% | -0.214280 | -0.120443 | 0.117808 | -0.906665 | -1.446362 | -0.045562 | -0.677313 | -0.810322 | 0.530071 | 0.527440 | 0.307908 | 4.834901 | 6.123164 |
116 | 7 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 24.728003 | 27.725605 | 70.109567 | 73.884111 | 30.323180 | 35.095527 | 1.253656 | 2.068809 | 0.055563 | 0.047478 | 0.004593 | 1.377013 | 1.374459 |
119 | 7 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.874272 | 0.161572 | 2.451630 | -0.147117 | -0.410668 | 0.576797 | -0.827558 | 5.196812 | 0.615633 | 0.617708 | 0.321279 | 9.845611 | 8.483264 |
120 | 8 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.905593 | 1.360345 | -0.570845 | 0.603676 | 1.262382 | 1.437035 | 3.381452 | 5.271597 | 0.619326 | 0.627502 | 0.303744 | 15.841373 | 12.852264 |
121 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.166704 | 4.383290 | 14.974044 | 14.816184 | 11.017506 | 6.316441 | -0.073895 | 22.484004 | 0.615626 | 0.622891 | 0.305011 | 13.825268 | 11.272119 |
122 | 8 | digital_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.582752 | 3.661538 | -0.005100 | 0.470695 | -0.626309 | 0.094783 | -0.340403 | -0.195749 | 0.631990 | 0.615669 | 0.319033 | 8.058639 | 7.640870 |
123 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.914948 | 5.531144 | 23.218885 | 17.225543 | 22.515610 | 21.013865 | -1.710453 | -1.980249 | 0.602871 | 0.610606 | 0.314106 | 5.966032 | 6.017971 |
124 | 9 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 16.723750 | 22.802357 | 67.271263 | 75.885023 | 27.380566 | 35.428318 | 1.776908 | 1.825554 | 0.105354 | 0.051875 | 0.027869 | 1.291171 | 1.190172 |
125 | 9 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 21.289596 | 24.972822 | 69.812979 | 73.865227 | 31.298891 | 36.176017 | 0.659852 | 2.254336 | 0.038292 | 0.042810 | 0.000935 | 1.299913 | 1.296345 |
126 | 9 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 23.899179 | 27.809468 | 68.836855 | 74.250656 | 30.787692 | 35.545989 | 1.420942 | 2.046066 | 0.043292 | 0.045603 | -0.000505 | 1.317351 | 1.314944 |
127 | 10 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.297438 | 0.176403 | 4.002903 | 3.425803 | 2.872730 | 1.940269 | -0.149141 | 0.048926 | 0.564983 | 0.567891 | 0.303187 | 13.772584 | 14.071443 |
128 | 10 | digital_ok | 0.00% | 0.00% | 0.54% | 0.00% | 0.54% | 0.00% | -0.970479 | 0.836438 | 0.820797 | -0.072953 | 0.549797 | 1.851482 | -1.140677 | -0.566916 | 0.560389 | 0.558659 | 0.309056 | 1.649572 | 1.663139 |
129 | 10 | digital_ok | 0.00% | 0.54% | 0.54% | 0.00% | 0.54% | 0.00% | 1.494742 | 0.419961 | 0.853623 | -0.813654 | -0.139389 | -0.556647 | -0.739800 | -0.868836 | 0.544870 | 0.546022 | 0.297808 | 1.739007 | 1.749575 |
130 | 10 | digital_maintenance | 100.00% | 0.54% | 100.00% | 0.00% | 100.00% | 0.00% | -0.919234 | 22.567921 | 0.489565 | 78.730650 | -0.869692 | 31.212285 | -0.367091 | 4.169022 | 0.538735 | 0.104065 | 0.313315 | 11.357057 | 6.990282 |
135 | 12 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.689467 | -0.140495 | 0.389657 | -0.938619 | 0.697812 | -0.296458 | 1.468047 | 1.437032 | 0.557252 | 0.565216 | 0.334891 | 1.561392 | 1.610526 |
136 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.819209 | 16.109694 | 0.302586 | 3.319013 | 0.269801 | 3.409129 | 0.559920 | 4.395037 | 0.580737 | 0.567178 | 0.315855 | 7.659869 | 8.615283 |
138 | 7 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.712213 | 2.838115 | -0.585830 | -0.425345 | -1.360433 | -0.680916 | -0.696742 | -0.631461 | 0.608197 | 0.616265 | 0.317959 | 1.595371 | 1.642373 |
140 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.623380 | 0.865302 | -0.733795 | -0.339376 | -0.485166 | 0.672043 | 0.095811 | 0.111754 | 0.623343 | 0.623064 | 0.312685 | 1.666587 | 1.739141 |
141 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.185248 | 1.589571 | 2.170230 | 2.993035 | 3.513254 | 2.257544 | 1.287462 | -0.694334 | 0.618790 | 0.619410 | 0.312262 | 1.765716 | 1.748930 |
142 | 13 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 3.012850 | 22.326247 | 0.561439 | 78.437409 | 0.307222 | 32.265079 | -0.426504 | 0.538483 | 0.623964 | 0.113930 | 0.362116 | 7.991848 | 1.824421 |
143 | 14 | RF_maintenance | 0.00% | 57.32% | 53.54% | 0.00% | 100.00% | 0.00% | 1.462600 | -0.660826 | 1.734649 | 0.280535 | 0.717979 | -0.333590 | 0.127355 | -0.466307 | 0.416179 | 0.421386 | 0.218237 | 2.801686 | 3.042913 |
144 | 14 | RF_maintenance | 100.00% | 58.40% | 53.54% | 0.00% | 100.00% | 0.00% | -1.478364 | 1.096994 | 0.466454 | 2.907218 | -1.150451 | 21.172686 | -0.845921 | 0.583940 | 0.409527 | 0.410436 | 0.215912 | 3.452605 | 3.630335 |
145 | 14 | digital_ok | 0.00% | 58.94% | 53.54% | 0.00% | 62.37% | 4.30% | -0.577468 | -0.097008 | 1.175511 | 1.089818 | -0.076970 | 1.076154 | 0.148416 | 1.004574 | 0.405445 | 0.410655 | 0.213733 | 2.361895 | 2.448981 |
150 | 15 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 28.844123 | 23.128711 | 70.345317 | 82.940179 | 26.718109 | 36.574195 | 16.826848 | 2.813979 | 0.131928 | 0.057401 | 0.044565 | 1.693748 | 1.260072 |
155 | 12 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 19.361214 | 21.993327 | 75.200791 | 79.450094 | 31.680357 | 37.501300 | 1.811314 | 3.950455 | 0.065669 | 0.066343 | -0.000842 | 1.400800 | 1.428903 |
156 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.072864 | -0.396571 | 1.180209 | 0.477718 | 1.075751 | 9.691960 | 1.978726 | 18.272067 | 0.580065 | 0.581817 | 0.325434 | 7.831384 | 8.586497 |
157 | 12 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.452599 | -0.376872 | 0.984652 | -0.491137 | 1.907862 | 0.109655 | 0.053733 | -0.013455 | 0.591314 | 0.599129 | 0.319457 | 5.162841 | 5.068911 |
158 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.466075 | -0.424198 | -0.157957 | -0.624205 | 1.631076 | 2.865248 | 1.084642 | 9.462664 | 0.600189 | 0.609633 | 0.319922 | 12.981805 | 14.254917 |
160 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.707713 | -0.095491 | 3.467325 | 1.344651 | 1.247670 | 2.186618 | 9.905645 | 2.434964 | 0.612033 | 0.610653 | 0.322968 | 4.803241 | 4.700943 |
161 | 13 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.232449 | 43.853288 | 1.640868 | 10.609381 | 0.126197 | 6.480939 | 0.316854 | 1.849021 | 0.616672 | 0.514507 | 0.305813 | 6.096058 | 4.596468 |
162 | 13 | digital_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.597811 | 0.458289 | 2.023293 | 2.532525 | 4.771164 | 3.421062 | 0.575486 | 0.824495 | 0.613950 | 0.614385 | 0.328964 | 4.693869 | 4.900208 |
163 | 14 | digital_ok | 0.00% | 57.86% | 53.54% | 0.00% | 62.37% | 3.23% | 0.576201 | -0.688156 | -0.509534 | -1.020604 | -1.312462 | -0.214791 | -0.047150 | 1.498232 | 0.410488 | 0.411257 | 0.214525 | 2.522572 | 2.500013 |
164 | 14 | digital_ok | 0.00% | 58.94% | 53.54% | 0.00% | 62.37% | 0.54% | -0.071695 | -0.932352 | -0.421853 | -0.809905 | 2.291540 | 0.898074 | 2.291674 | 0.293353 | 0.406414 | 0.411345 | 0.209654 | 1.913004 | 1.965944 |
165 | 14 | digital_ok | 100.00% | 58.94% | 53.54% | 0.00% | 100.00% | 0.00% | -0.680150 | 0.164358 | -0.585077 | -0.486388 | 2.348647 | -0.688917 | 5.340739 | -0.064709 | 0.405084 | 0.411484 | 0.212451 | 4.014782 | 3.934952 |
166 | 14 | RF_maintenance | 0.00% | 60.56% | 53.54% | 0.00% | 100.00% | 0.00% | 0.002688 | -0.623281 | -0.713144 | 0.723106 | 0.809601 | -0.773041 | 0.803413 | 1.829156 | 0.403196 | 0.411229 | 0.208388 | 3.080830 | 3.188375 |
167 | 15 | digital_ok | 100.00% | 56.78% | 53.00% | 0.00% | 100.00% | 0.00% | 36.809301 | 25.368278 | 11.478791 | 14.922293 | 26.325465 | 30.149467 | 87.655387 | 33.359760 | 0.404369 | 0.406308 | 0.132339 | 3.755199 | 3.033381 |
168 | 15 | RF_maintenance | 100.00% | 0.00% | 0.54% | 0.00% | 100.00% | 0.00% | 5.151625 | 7.560865 | 13.892068 | 19.430311 | 10.714318 | 22.989685 | -0.273396 | -1.753760 | 0.577126 | 0.559308 | 0.344088 | 10.473927 | 7.705485 |
169 | 15 | digital_ok | 100.00% | 0.00% | 0.54% | 0.00% | 100.00% | 0.00% | 8.143012 | 6.217567 | 20.476075 | 17.256575 | 18.723059 | 20.391889 | -2.124213 | -0.614946 | 0.558391 | 0.551785 | 0.338892 | 7.012986 | 5.668618 |
170 | 15 | digital_ok | 100.00% | 0.54% | 1.62% | 0.00% | 100.00% | 0.00% | 7.908271 | 4.371748 | 20.741320 | 13.782767 | 19.068680 | 13.721481 | 0.384204 | 0.116729 | 0.545705 | 0.548980 | 0.343541 | 4.387918 | 4.147974 |
176 | 12 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.315483 | -0.381656 | 4.889537 | -0.695296 | 1.962328 | -1.037777 | 0.674193 | 0.039534 | 0.570376 | 0.573501 | 0.327621 | 5.296049 | 6.193798 |
177 | 12 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.118892 | 1.044487 | 1.171362 | 3.372616 | -0.141304 | 52.588167 | 1.193503 | 2.439076 | 0.583027 | 0.582699 | 0.328435 | 5.959265 | 6.126089 |
178 | 12 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.54% | 10.75% | -0.551180 | -0.291700 | 2.316547 | -0.075564 | -0.696619 | 0.452293 | 0.539061 | -0.269372 | 0.596468 | 0.598478 | 0.328014 | 1.108154 | 1.133348 |
179 | 12 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.646221 | 0.786510 | 2.599316 | 0.035089 | 5.048813 | -1.015971 | 0.518708 | -0.329484 | 0.600234 | 0.604329 | 0.331926 | 6.039721 | 7.318265 |
180 | 13 | RF_maintenance | 100.00% | 89.20% | 100.00% | 0.00% | 100.00% | 0.00% | 48.026651 | 31.320450 | 8.304862 | 78.637250 | 16.487701 | 32.461311 | -0.519309 | 0.776872 | 0.277994 | 0.087656 | 0.126311 | 2.960779 | 1.442082 |
181 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.142308 | 2.470492 | 2.275753 | 4.130299 | -0.314156 | 0.980109 | -0.731545 | 2.431050 | 0.610575 | 0.606154 | 0.338986 | 6.042576 | 6.383325 |
182 | 13 | RF_maintenance | 100.00% | 0.00% | 4.86% | 0.00% | 100.00% | 0.00% | 4.098594 | 3.159385 | 14.870379 | 13.119100 | 12.820797 | 323.596374 | -1.255882 | 11.412511 | 0.600091 | 0.528227 | 0.330841 | 5.788817 | 4.428060 |
183 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 10.75% | 19.35% | -1.514072 | -1.345472 | 0.178072 | 0.086376 | -0.345536 | -1.133030 | 0.323781 | 2.118027 | 0.605758 | 0.604666 | 0.344574 | 1.119735 | 1.140418 |
184 | 14 | RF_maintenance | 0.00% | 58.94% | 54.08% | 0.00% | 100.00% | 0.00% | 0.212699 | -0.813136 | -0.751034 | -0.312758 | 1.473378 | -1.265122 | 0.681598 | 0.797399 | 0.406641 | 0.407517 | 0.212148 | 4.071823 | 4.280088 |
185 | 14 | digital_ok | 100.00% | 59.48% | 54.08% | 0.00% | 100.00% | 0.00% | 2.175045 | -0.039284 | 7.061289 | -0.415442 | 3.558601 | 0.427765 | -0.884008 | 2.369901 | 0.403102 | 0.409746 | 0.210720 | 3.868692 | 4.233502 |
186 | 14 | digital_ok | 0.00% | 60.02% | 55.16% | 0.00% | 62.90% | 0.00% | 0.334349 | 0.245904 | -0.868884 | -0.769354 | 1.357620 | 0.148130 | 0.789103 | -0.801406 | 0.402584 | 0.407000 | 0.214216 | 1.779521 | 1.912704 |
187 | 14 | RF_maintenance | 0.00% | 60.56% | 54.08% | 0.00% | 100.00% | 0.00% | -0.298446 | 0.425605 | -0.746272 | 1.543131 | -0.320630 | -0.555559 | 1.926279 | 0.520612 | 0.399966 | 0.405842 | 0.213842 | 2.852051 | 2.768481 |
189 | 15 | digital_ok | 0.00% | 0.00% | 0.54% | 0.00% | 0.54% | 0.00% | 1.414158 | 1.523792 | -0.601268 | 0.439989 | -1.007095 | 2.720728 | -0.179023 | -0.542234 | 0.565487 | 0.559693 | 0.350428 | 1.580677 | 1.446157 |
190 | 15 | digital_ok | 100.00% | 83.79% | 81.09% | 0.00% | 100.00% | 0.00% | 69.721992 | 65.693682 | 10.035485 | 13.491134 | 24.715188 | 31.179041 | 55.868909 | 101.979718 | 0.334457 | 0.355430 | 0.103349 | 3.463802 | 3.093460 |
191 | 15 | digital_ok | 100.00% | 1.08% | 2.76% | 0.00% | 100.00% | 0.00% | 1.812506 | 1.417940 | 7.483545 | -0.634276 | 3.681360 | 9.711566 | 1.697998 | 9.410095 | 0.543701 | 0.540395 | 0.356881 | 4.647232 | 4.418429 |
220 | 18 | RF_ok | 100.00% | 0.00% | 2.22% | 0.00% | 100.00% | 0.00% | 4.489313 | 6.762623 | 15.291105 | 18.365681 | 13.390991 | 22.403265 | 0.441782 | -2.294956 | 0.566144 | 0.548635 | 0.344993 | 5.107044 | 4.567711 |
221 | 18 | RF_ok | 100.00% | 0.00% | 2.22% | 0.00% | 100.00% | 0.00% | 2.541823 | 5.997798 | 7.194416 | 15.937036 | 3.397978 | 19.452415 | 0.706346 | -1.645189 | 0.559375 | 0.549366 | 0.342775 | 4.255401 | 3.897598 |
222 | 18 | RF_ok | 100.00% | 0.59% | 2.22% | 0.00% | 100.00% | 0.00% | 6.252313 | 6.343335 | 17.782044 | 14.617763 | 13.516049 | 49.951986 | -0.375341 | -0.987188 | 0.545742 | 0.540983 | 0.341536 | 4.201066 | 4.058070 |
# print ex_ants for easy copy-pasting to YAML file
proposed_ex_ants = [ant for i, ant in enumerate(ants) if np.any([col[i] > .1 for col in bar_cols.values()])]
print('ex_ants: [' + ", ".join(str(ant) for ant in proposed_ex_ants) + ']')
ex_ants: [0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 37, 38, 39, 41, 42, 45, 50, 51, 52, 54, 55, 56, 57, 65, 66, 67, 69, 70, 71, 72, 73, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 93, 94, 98, 99, 100, 101, 102, 104, 105, 106, 107, 110, 112, 116, 119, 120, 121, 122, 123, 124, 125, 126, 127, 130, 136, 142, 143, 144, 145, 150, 155, 156, 157, 158, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 190, 191, 220, 221, 222]
# write to csv
outpath = os.path.join(nb_outdir, f'rtp_summary_table_{JD}.csv')
print(f'Now saving Table 1 to a csv at {outpath}')
df.to_csv(outpath)
Now saving Table 1 to a csv at /home/obs/src/H5C_Notebooks/_rtp_summary_/rtp_summary_table_2459635.csv
# Load antenna positions
data_list = sorted(glob.glob(os.path.join(data_path, f'zen.{JD}.?????.sum.uvh5')))
hd = io.HERAData(data_list[len(data_list) // 2])
# Figure out where to draw the nodes
node_centers = {}
for node in sorted(set(list(nodes.values()))):
if np.isfinite(node):
this_node_ants = [ant for ant in ants + unused_ants if nodes[ant] == node]
if len(this_node_ants) == 1:
# put the node label just to the west of the lone antenna
node_centers[node] = hd.antpos[ant][node] + np.array([-14.6 / 2, 0, 0])
else:
# put the node label between the two antennas closest to the node center
node_centers[node] = np.mean([hd.antpos[ant] for ant in this_node_ants], axis=0)
closest_two_pos = sorted([hd.antpos[ant] for ant in this_node_ants],
key=lambda pos: np.linalg.norm(pos - node_centers[node]))[0:2]
node_centers[node] = np.mean(closest_two_pos, axis=0)
def Plot_Array():
plt.figure(figsize=(16,16))
plt.scatter(np.array([hd.antpos[ant][0] for ant in hd.data_ants]),
np.array([hd.antpos[ant][1] for ant in hd.data_ants]), c='w', s=0)
# connect every antenna to their node
for ant in ants:
if nodes[ant] in node_centers:
plt.plot([hd.antpos[ant][0], node_centers[nodes[ant]][0]],
[hd.antpos[ant][1], node_centers[nodes[ant]][1]], 'k', zorder=0)
rc_color = '#0000ff'
antm_color = '#ffa500'
autom_color = '#ff1493'
# Plot
unflagged_ants = []
for i, ant in enumerate(ants):
ant_has_flag = False
# plot large blue annuli for redcal flags
if use_redcal:
if redcal_flagged_frac[ant] > 0:
ant_has_flag = True
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=7, fill=True, lw=0,
color=rc_color, alpha=redcal_flagged_frac[ant]))
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=6, fill=True, color='w'))
# plot medium green annuli for ant_metrics flags
if use_ant_metrics:
if ant_metrics_xants_frac_by_ant[ant] > 0:
ant_has_flag = True
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=6, fill=True, lw=0,
color=antm_color, alpha=ant_metrics_xants_frac_by_ant[ant]))
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=5, fill=True, color='w'))
# plot small red annuli for auto_metrics
if use_auto_metrics:
if ant in auto_ex_ants:
ant_has_flag = True
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=5, fill=True, lw=0, color=autom_color))
# plot black/white circles with black outlines for antennas
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=4, fill=True, color=['w', 'k'][ant_has_flag], ec='k'))
if not ant_has_flag:
unflagged_ants.append(ant)
# label antennas, using apriori statuses if available
try:
bgc = matplotlib.colors.to_rgb(status_colors[a_priori_statuses[ant]])
c = 'black' if (bgc[0]*0.299 + bgc[1]*0.587 + bgc[2]*0.114) > 186 / 256 else 'white'
except:
c = 'k'
bgc='white'
plt.text(hd.antpos[ant][0], hd.antpos[ant][1], str(ant), va='center', ha='center', color=c, backgroundcolor=bgc)
# label nodes
for node in sorted(set(list(nodes.values()))):
if not np.isnan(node) and not np.all(np.isnan(node_centers[node])):
plt.text(node_centers[node][0], node_centers[node][1], str(node), va='center', ha='center', bbox={'color': 'w', 'ec': 'k'})
# build legend
legend_objs = []
legend_labels = []
# use circles for annuli
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markeredgecolor='k', markerfacecolor='w', markersize=13))
legend_labels.append(f'{len(unflagged_ants)} / {len(ants)} Total Antennas Never Flagged')
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markerfacecolor='k', markersize=15))
legend_labels.append(f'{len(ants) - len(unflagged_ants)} Antennas Flagged for Any Reason')
if use_auto_metrics:
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markeredgewidth=2, markeredgecolor=autom_color, markersize=15))
legend_labels.append(f'{len(auto_ex_ants)} Antennas Flagged by Auto Metrics')
if use_ant_metrics:
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markeredgewidth=2, markeredgecolor=antm_color, markersize=15))
legend_labels.append(f'{np.round(np.sum(list(ant_metrics_xants_frac_by_ant.values())), 2)} Antenna-Nights on'
f'\n{np.sum([frac > 0 for frac in ant_metrics_xants_frac_by_ant.values()])} Antennas '
'Flagged by Ant Metrics\n(alpha indicates fraction of time)')
if use_redcal:
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markeredgewidth=2, markeredgecolor=rc_color, markersize=15))
legend_labels.append(f'{np.round(np.sum(list(redcal_flagged_frac.values())), 2)} Antenna-Nights on'
f'\n{np.sum([frac > 0 for frac in redcal_flagged_frac.values()])} Antennas '
'Flagged by Redcal\n(alpha indicates fraction of time)')
# use rectangular patches for a priori statuses that appear in the array
for aps in sorted(list(set(list(a_priori_statuses.values())))):
if aps != 'Not Found':
legend_objs.append(plt.Circle((0, 0), radius=7, fill=True, color=status_colors[aps]))
legend_labels.append(f'A Priori Status:\n{aps} ({list(a_priori_statuses.values()).count(aps)} Antennas)')
# label nodes as a white box with black outline
if len(node_centers) > 0:
legend_objs.append(matplotlib.patches.Patch(facecolor='w', edgecolor='k'))
legend_labels.append('Node Number')
if len(unused_ants) > 0:
legend_objs.append(matplotlib.lines.Line2D([0], [0], marker='o', color='w', markerfacecolor='grey', markersize=15, alpha=.2))
legend_labels.append(f'Anntenna Not In Data')
plt.legend(legend_objs, legend_labels, ncol=2, fontsize='large', framealpha=1)
# set axis equal and label everything
plt.axis('equal')
plt.tight_layout()
plt.title(f'Summary of Antenna Statuses and Metrics on {JD}', size=20)
plt.xlabel("Antenna East-West Position (meters)", size=12)
plt.ylabel("Antenna North-South Position (meters)", size=12)
plt.xticks(fontsize=12)
plt.yticks(fontsize=12)
xlim = plt.gca().get_xlim()
ylim = plt.gca().get_ylim()
# plot unused antennas
plt.autoscale(False)
for ant in unused_ants:
if nodes[ant] in node_centers:
plt.plot([hd.antpos[ant][0], node_centers[nodes[ant]][0]],
[hd.antpos[ant][1], node_centers[nodes[ant]][1]], 'k', alpha=.2, zorder=0)
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=4, fill=True, color='w', ec=None, alpha=1, zorder=0))
plt.gca().add_artist(plt.Circle(tuple(hd.antpos[ant][0:2]), radius=4, fill=True, color='grey', ec=None, alpha=.2, zorder=0))
if hd.antpos[ant][0] < xlim[1] and hd.antpos[ant][0] > xlim[0]:
if hd.antpos[ant][1] < ylim[1] and hd.antpos[ant][1] > ylim[0]:
plt.text(hd.antpos[ant][0], hd.antpos[ant][1], str(ant), va='center', ha='center', color='k', alpha=.2)
# plt.gca().set_xlim(*xlim)
# plt.gca().set_ylim(*ylim)
This plot shows all antennas, which nodes they are connected to, and their a priori statuses (as the highlight text of their antenna numbers). It may also show (depending on what is finished running):
auto_metrics
(red circle) for bandpass shape, overall power, temporal variability, or temporal discontinuities. This is done in a binary fashion for the whole night.ant_metrics
(green circle) as either dead (on either polarization) or crossed, with the transparency indicating the fraction of the night (i.e. number of files) that were flagged.redcal
(blue circle) for high s either dead (on either polarization) or crossed, with the transparency indicating the fraction of the night (i.e. number of files) that were flagged. Note that the last fraction does not include antennas that were flagged before going into redcal due to their a priori status, for example.
Plot_Array()
from hera_qm import version
print(version.construct_version_info())
print(redcal.version.history_string())
{'version': '1.0', 'git_origin': 'https://github.com/HERA-Team/hera_qm.git', 'git_hash': '37f6ba49baff186e051a8b021414d96e1c60a9d2', 'git_description': 'v1.1-557-g37f6ba4', 'git_branch': 'master'} ------------ This file was produced by the function <module>() in 3622974967.py using: git_branch: main git_description: v3.0-1538-g00e4033 git_hash: 00e4033fd61db04f3d2e7ef522c0c52261ac1fc6 git_origin: https://github.com/HERA-Team/hera_cal.git version: 3.0 ------------