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 = "2459731" data_path = "/mnt/sn1/2459731" 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: 5-31-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/2459731/zen.2459731.25300.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 372 ant_metrics files matching glob /mnt/sn1/2459731/zen.2459731.?????.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 38 ant_metrics files matching glob /mnt/sn1/2459731/zen.2459731.?????.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_hookup
# get node numbers
hookup = cm_hookup.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:])
# get apriori antenna status
for ant_name, data in hookup.items():
ant = int("".join(filter(str.isdigit, ant_name)))
if ant in a_priori_statuses:
a_priori_statuses[ant] = data.apriori
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% | 7.927651 | 6.213041 | inf | inf | 9809.855153 | 9249.402264 | 13956.972040 | 11091.300984 | nan | nan | nan | 0.000000 | 0.000000 |
1 | 0 | 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 |
2 | 0 | 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 |
3 | 1 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.515835 | 0.834092 | -0.418970 | -0.692663 | 0.971568 | -0.611145 | -0.309457 | 0.134441 | 0.676690 | 0.682939 | 0.416070 | 4.932711 | 6.615644 |
4 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 2.63% | 0.373545 | 3.203217 | 0.235049 | 0.872578 | -0.862136 | 0.253382 | 1.657716 | 0.811075 | 0.700485 | 0.687041 | 0.426141 | 2.211646 | 3.164065 |
5 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.473395 | 0.295054 | -0.063652 | 2.459790 | -0.156727 | -0.084592 | -0.374957 | -1.380904 | 0.698106 | 0.681530 | 0.415876 | 2.315045 | 2.950313 |
7 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.498687 | -0.977871 | -0.829865 | 0.039079 | 0.489887 | 0.845267 | 0.321598 | 14.075994 | 0.702368 | 0.694712 | 0.404749 | 4.765603 | 8.546575 |
8 | 2 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.217883 | 2.832315 | 9.240944 | 10.365848 | 23.330686 | 23.686860 | 33.200570 | 25.395353 | 0.692450 | 0.672854 | 0.407998 | 5.420894 | 10.040387 |
9 | 2 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 2.981975 | 2.837709 | -0.453535 | 0.142579 | 1.678436 | 0.280605 | 0.832725 | -0.173887 | 0.692984 | 0.680183 | 0.394560 | 1.903006 | 2.305386 |
10 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.211748 | 3.180388 | 0.871592 | 0.069532 | 3.142540 | 4.407888 | 0.019338 | 2.013321 | 0.680718 | 0.669721 | 0.397060 | 5.295141 | 7.006951 |
11 | 0 | 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 |
12 | 0 | 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 |
13 | 0 | 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 |
14 | 0 | 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 |
15 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.932391 | 0.062919 | 0.974679 | -0.030441 | 0.070082 | -0.661379 | 0.159768 | 1.318855 | 0.710621 | 0.702975 | 0.403042 | 2.443163 | 3.281924 |
16 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -1.113497 | -0.572579 | -1.102519 | 0.446979 | 1.377671 | 0.045477 | 3.185183 | 1.070682 | 0.712993 | 0.705916 | 0.403898 | 2.305918 | 2.831995 |
17 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.455004 | 0.147145 | -0.604965 | 0.224548 | 0.237601 | 0.365838 | 2.076619 | 2.413084 | 0.707392 | 0.699329 | 0.397199 | 2.358104 | 3.266184 |
18 | 1 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.899186 | 16.490195 | 4.070670 | 2.943726 | 52.009251 | 37.891608 | 207.691219 | 100.561535 | 0.659751 | 0.489815 | 0.424583 | 3.690641 | 2.904816 |
19 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.216227 | 2.306033 | -1.090513 | 7.964650 | 0.715788 | 10.189621 | 11.084512 | 1.692267 | 0.716992 | 0.694721 | 0.409567 | 4.972761 | 6.619939 |
20 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.295144 | 1.752473 | 1.668932 | -0.146798 | 0.971805 | 5.713109 | 0.586579 | -0.205693 | 0.710794 | 0.690750 | 0.405290 | 6.684844 | 8.026125 |
21 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.067813 | 0.299993 | 0.873652 | 1.410343 | 17.090184 | 17.433635 | 30.335506 | 46.189087 | 0.703246 | 0.679804 | 0.422063 | 5.543646 | 6.242580 |
23 | 0 | 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 |
24 | 0 | 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 |
25 | 0 | 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 |
26 | 0 | 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 |
27 | 1 | RF_maintenance | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 41.360415 | 31.994243 | 72.952590 | 20.210791 | 37.335748 | 47.120754 | 26.250172 | 150.990177 | 0.078934 | 0.480416 | 0.351592 | 1.230853 | 2.604198 |
28 | 1 | digital_ok | 100.00% | 81.18% | 81.18% | 18.82% | 100.00% | 0.00% | 32.447465 | 6.533381 | 20.056403 | 4.611265 | 24.261803 | 1.252940 | 73.291691 | 1.549659 | 0.179676 | 0.334441 | -0.170956 | 2.159492 | 6.404643 |
29 | 1 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 39.47% | -0.866299 | -0.713804 | -0.283831 | 0.059230 | -1.457000 | 0.520305 | -0.611616 | -0.858702 | 0.730929 | 0.707069 | 0.405049 | 3.137621 | 4.130831 |
30 | 1 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.234855 | -0.232746 | 0.241928 | -1.014285 | -0.131769 | 1.673838 | 5.720091 | 0.567459 | 0.721362 | 0.714965 | 0.393454 | 6.061819 | 7.835949 |
31 | 2 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.651327 | 2.955807 | 0.053545 | 2.486035 | -0.450958 | 6.123591 | 1.185807 | 1.596586 | 0.721162 | 0.705926 | 0.400242 | 6.187249 | 7.171169 |
32 | 2 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 38.292968 | 6.622030 | 3.093633 | -0.268490 | 12.036109 | 43.088625 | 29.949889 | 79.623281 | 0.628284 | 0.666687 | 0.348635 | 5.796260 | 6.842956 |
33 | 2 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.064346 | 7.545293 | 0.367250 | -0.127182 | -0.370259 | 6.226335 | 2.364006 | 11.150718 | 0.708584 | 0.526223 | 0.504221 | 6.079645 | 3.100598 |
36 | 3 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.464804 | 8.988103 | 0.802733 | 8.626704 | 2.221470 | 12.845718 | 0.846802 | 3.540345 | 0.698295 | 0.688075 | 0.423147 | 3.835640 | 4.372773 |
37 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.823301 | 1.874610 | 6.894780 | 7.530602 | 8.960210 | 10.061127 | 1.752082 | 7.950094 | 0.711673 | 0.693634 | 0.421950 | 4.257152 | 4.844580 |
38 | 3 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.246067 | 3.315629 | 5.708506 | 9.122746 | 2.141712 | 14.340853 | 8.154003 | -1.207695 | 0.722098 | 0.698796 | 0.422197 | 4.404997 | 5.270201 |
39 | 0 | 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 |
40 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.151403 | 1.463835 | 2.354424 | 2.199007 | 0.008703 | -0.740412 | 0.592692 | 0.364728 | 0.723503 | 0.715459 | 0.408057 | 2.082705 | 2.712727 |
41 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.173883 | -0.939027 | 1.094881 | -1.208496 | 0.710787 | -1.376416 | -1.159475 | -0.448925 | 0.728386 | 0.725877 | 0.399948 | 2.098129 | 2.532867 |
42 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -1.259997 | 0.523734 | 0.193196 | -0.071551 | -1.784418 | 0.243240 | -0.884908 | -0.077466 | 0.729458 | 0.729543 | 0.396848 | 2.198919 | 2.615455 |
45 | 5 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 0.334811 | 25.449168 | 0.172438 | 82.340491 | 8.965335 | 880.616224 | 18.937212 | 1398.402451 | 0.720432 | 0.117625 | 0.579802 | 4.403108 | 1.499914 |
46 | 5 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.774073 | -0.510832 | 0.030441 | -1.154067 | 3.436776 | 0.681403 | -0.303341 | 1.562056 | 0.703988 | 0.693267 | 0.420994 | 1.713050 | 1.913029 |
50 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.816416 | 28.503284 | 4.436275 | 2.831196 | 0.128975 | 12.051231 | 1.483238 | 6.085835 | 0.701567 | 0.630871 | 0.397657 | 3.967257 | 3.803550 |
51 | 3 | 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 |
52 | 3 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.647658 | 7.676825 | 1.170328 | 1.930184 | 8.102798 | 11.998465 | 4.635036 | 64.363821 | 0.696231 | 0.670579 | 0.346281 | 5.338637 | 7.183244 |
53 | 3 | 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 |
54 | 4 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.124886 | -0.277534 | 0.240617 | 0.180422 | -1.187274 | -0.667578 | -0.408919 | 0.169233 | 0.717219 | 0.718956 | 0.387170 | 2.001555 | 2.546231 |
55 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 100.00% | 100.00% | 0.00% | 2.500228 | 5.304555 | 0.917608 | 3.442537 | 0.170812 | 7.611186 | 0.918179 | 8.875157 | 0.333213 | 0.334662 | -0.340124 | 4.401937 | 5.150172 |
56 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.273346 | 1.772488 | -0.740277 | 2.008357 | 0.726541 | 3.246163 | 1.122624 | 13.405776 | 0.722981 | 0.721807 | 0.393662 | 4.907572 | 5.583475 |
57 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.209338 | 1.425612 | 5.630866 | 6.946112 | 5.040711 | 10.920897 | 2.245161 | 0.022103 | 0.730942 | 0.717126 | 0.401646 | 5.417899 | 6.856871 |
65 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.000200 | 1.891318 | 5.639454 | 4.919106 | 11.247609 | 6.956344 | -1.679569 | -0.133004 | 0.693136 | 0.685709 | 0.415689 | 6.666218 | 6.396528 |
66 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.095465 | 1.612318 | 9.550758 | 2.632457 | 10.597818 | 3.599844 | -2.264979 | 1.060017 | 0.703459 | 0.696961 | 0.407239 | 5.061286 | 7.490545 |
67 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.510396 | 3.146174 | 6.321216 | 20.052990 | 2.680992 | 16.688365 | 3.241227 | 8.861900 | 0.712740 | 0.708498 | 0.395697 | 5.307949 | 8.507052 |
68 | 3 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.601650 | 0.715607 | 3.449263 | 2.773741 | 5.787310 | 0.921610 | -0.973949 | 0.359039 | 0.705372 | 0.716945 | 0.389460 | 4.569230 | 7.370313 |
69 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.580918 | -0.758072 | -0.145993 | -0.593773 | 2.496147 | 7.286990 | 0.212110 | 2.438126 | 0.718575 | 0.721973 | 0.392845 | 5.861373 | 6.754984 |
70 | 4 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 10.088970 | 5.011577 | 19.904877 | 22.091568 | 9.604100 | 12.360051 | 3.728321 | 7.778333 | 0.730051 | 0.717748 | 0.399477 | 19.088060 | 13.118031 |
71 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 100.00% | 100.00% | 0.00% | 4.389172 | 2.940904 | 5.173170 | 3.955883 | 3.444993 | 13.399572 | 1.603545 | 0.318059 | 0.343949 | 0.331611 | -0.339799 | 3.085285 | 3.503976 |
72 | 4 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 5.500033 | 0.125476 | 1.284922 | -0.804039 | 4.842002 | 2.806005 | 5.372264 | -0.419303 | 0.718193 | 0.715783 | 0.390094 | 6.996853 | 7.087679 |
73 | 5 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.192119 | 3.638196 | 1.714316 | 17.246303 | 4.912128 | 15.625273 | 2.289940 | 3.370919 | 0.722712 | 0.697883 | 0.418022 | 5.214212 | 5.245826 |
81 | 7 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.165386 | 0.939069 | 0.687525 | -0.937634 | -0.197675 | -0.100432 | 2.058329 | 0.675837 | 0.681378 | 0.681148 | 0.406385 | 1.659300 | 1.828266 |
82 | 7 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.573547 | 2.846635 | 0.456743 | 0.757547 | -1.600292 | -0.106855 | -0.396720 | -0.246840 | 0.707506 | 0.695519 | 0.411966 | 4.989814 | 6.646239 |
83 | 7 | digital_ok | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 23.202129 | 28.139755 | 73.459584 | 76.692120 | 34.446850 | 34.088532 | 6.833065 | 6.130944 | 0.048210 | 0.052014 | 0.001274 | 1.433990 | 1.678533 |
84 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 10.099471 | 10.818726 | 1.782348 | 2.679437 | 0.746705 | 0.697261 | 0.121252 | 1.755420 | 0.724264 | 0.718589 | 0.387391 | 4.551252 | 6.054914 |
85 | 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 |
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 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 9.942437 | 11.791546 | 29.510722 | 9.032002 | 6.356589 | 5.092932 | 6.801925 | 6.418217 | 0.727334 | 0.724504 | 0.394768 | 4.350815 | 4.610805 |
88 | 9 | 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 |
89 | 9 | 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 |
90 | 9 | 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 |
91 | 9 | 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 |
92 | 10 | digital_ok | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 18.865323 | -0.449293 | 80.974901 | -0.373130 | 36.166791 | 2.162550 | 5.354955 | 0.593596 | 0.054908 | 0.690791 | 0.477870 | 1.340566 | 5.630585 |
93 | 10 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.682689 | 28.639359 | 81.814241 | 86.303338 | 35.560308 | 34.713969 | 8.540746 | 10.781818 | 0.044270 | 0.051538 | 0.002814 | 1.267392 | 1.263277 |
94 | 10 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.270706 | 1.126874 | 0.562855 | 8.228173 | -1.180136 | 7.290191 | 1.308955 | 6.633499 | 0.695064 | 0.666791 | 0.440333 | 4.209390 | 4.973941 |
98 | 7 | digital_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 21.729678 | 26.808961 | 71.391589 | 74.385512 | 35.674301 | 34.706309 | 6.669792 | 5.854823 | 0.038286 | 0.045204 | 0.008167 | 1.257462 | 1.247128 |
99 | 7 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.328934 | 2.134857 | 5.399678 | 6.312012 | 3.362570 | 1.926181 | 7.027533 | 1.651320 | 0.695069 | 0.689140 | 0.405108 | 5.538677 | 6.522368 |
100 | 7 | 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 |
101 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 9.200914 | 9.166002 | 1.214172 | 0.156001 | -0.392483 | 0.424865 | 13.960469 | 0.085300 | 0.721818 | 0.717731 | 0.400620 | 4.912455 | 5.435655 |
102 | 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 |
103 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.281059 | 10.107326 | 2.561344 | 2.767059 | 2.651397 | 1.407051 | 0.770970 | 0.795753 | 0.739061 | 0.722964 | 0.398517 | 5.600222 | 4.916470 |
104 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.888580 | 108.737305 | 2.237588 | 100.790602 | 1.139990 | 12.706830 | 1.115200 | 7.136996 | 0.741335 | 0.579289 | 0.522456 | 5.555072 | 3.188367 |
105 | 9 | 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 |
106 | 9 | 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 |
107 | 9 | 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 |
108 | 9 | 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 |
109 | 10 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.544969 | -0.989048 | -0.225050 | -0.278644 | -1.150604 | -0.920839 | -0.412604 | -0.673144 | 0.708013 | 0.691276 | 0.425934 | 1.545237 | 1.850730 |
110 | 10 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 46.393744 | 30.578718 | 9.491810 | 2.852845 | 1.676145 | 10.389604 | 1.606770 | 3.522277 | 0.606104 | 0.584608 | 0.263192 | 6.553305 | 6.556667 |
111 | 10 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.586529 | 0.366860 | -0.947806 | -0.859326 | -1.394971 | 2.421201 | -0.540429 | 1.590117 | 0.699908 | 0.670167 | 0.429791 | 1.575443 | 1.856226 |
112 | 10 | RF_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | -0.220295 | 30.279575 | 0.815444 | 85.717072 | 1.360132 | 35.024093 | 0.078269 | 5.887022 | 0.677496 | 0.068145 | 0.502868 | 4.234736 | 1.595090 |
116 | 7 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 25.184938 | 30.491663 | 73.488282 | 76.845775 | 34.900456 | 34.026501 | 5.871711 | 8.183736 | 0.049357 | 0.045545 | 0.003359 | 1.305456 | 1.291589 |
119 | 7 | 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 |
120 | 8 | RF_maintenance | 100.00% | 100.00% | 0.00% | 0.00% | 100.00% | 0.00% | 41.060031 | 2.775583 | 89.257738 | 5.587740 | 35.211114 | 7.911712 | 10.347440 | 0.774996 | 0.055039 | 0.708554 | 0.606871 | 1.225737 | 6.812819 |
121 | 8 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.806119 | 10.185272 | 1.133544 | 16.986828 | 0.984212 | 8.024471 | 35.806582 | 31.088766 | 0.734930 | 0.718712 | 0.395821 | 7.285634 | 7.808452 |
122 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 10.224135 | 7.781529 | 5.146685 | 1.014754 | 0.553542 | 0.209134 | 0.869735 | 0.152625 | 0.741050 | 0.722765 | 0.396265 | 5.908668 | 7.258417 |
123 | 8 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.710380 | 6.150563 | 3.410615 | 4.227487 | 3.722046 | 8.721669 | -1.134046 | -1.287338 | 0.736115 | 0.719486 | 0.401397 | 7.193881 | 8.485302 |
124 | 9 | 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 |
125 | 9 | 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 |
126 | 9 | 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 |
127 | 10 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.076492 | 0.349021 | 2.913800 | 2.781850 | 7.408576 | 5.924150 | 1.486916 | 1.949173 | 0.711171 | 0.696923 | 0.421284 | 5.060632 | 7.232454 |
128 | 10 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.537744 | 3.614243 | -1.035581 | -0.065182 | 0.939686 | -0.070363 | 0.080039 | -0.671783 | 0.708029 | 0.677122 | 0.427852 | 1.468759 | 1.708431 |
129 | 10 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 4.044229 | -0.262046 | 12.614787 | 2.477764 | 6.612385 | 0.038165 | 2.167195 | 0.839132 | 0.703897 | 0.680640 | 0.428955 | 4.272124 | 5.385576 |
130 | 10 | digital_maintenance | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 0.305759 | 28.475477 | -0.701727 | 85.425945 | 1.235601 | 34.200011 | 0.836306 | 10.744815 | 0.687001 | 0.065841 | 0.514992 | 4.379500 | 1.294533 |
135 | 12 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -1.068336 | -0.784956 | -0.595449 | -1.128486 | -0.299147 | -1.069130 | -0.360102 | -0.242689 | 0.670636 | 0.661765 | 0.414726 | 1.647293 | 1.959437 |
136 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.310658 | 14.655349 | -1.003662 | 1.344423 | 4.458316 | 6.175674 | 10.720968 | 15.906468 | 0.691098 | 0.662981 | 0.389693 | 5.747597 | 7.092288 |
138 | 7 | 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 |
140 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.791809 | 1.192381 | 0.141333 | 1.243695 | 0.151124 | -0.330459 | 1.057190 | 1.499897 | 0.718097 | 0.704194 | 0.386638 | 1.885281 | 1.880643 |
141 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.740747 | 1.987955 | 0.109386 | 1.486667 | 2.585731 | 3.450430 | 2.079565 | -1.233587 | 0.726881 | 0.699281 | 0.391101 | 1.943605 | 2.039284 |
142 | 13 | digital_ok | 100.00% | 0.00% | 100.00% | 0.00% | 100.00% | 0.00% | 1.585151 | 28.154758 | -0.679527 | 85.377034 | 1.481770 | 34.986628 | 0.475707 | 5.887334 | 0.724121 | 0.060792 | 0.534784 | 6.490503 | 1.753999 |
143 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 1.414358 | -0.789152 | 0.115196 | -1.025783 | -0.456016 | 0.949816 | -0.926230 | -0.369714 | 0.720405 | 0.713747 | 0.406195 | 2.091462 | 2.448378 |
144 | 14 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 2.263493 | 1.137201 | 8.801712 | 4.982894 | 1.853549 | 5.702563 | 3.006741 | 38.303222 | 0.717468 | 0.707265 | 0.409391 | 6.843911 | 8.396574 |
145 | 14 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.159550 | -0.153511 | 5.056834 | -0.896538 | 5.108861 | 0.868695 | 3.477611 | 0.425340 | 0.700012 | 0.691020 | 0.405131 | 5.550952 | 7.844046 |
150 | 15 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 21.920154 | 30.238907 | 82.271478 | 87.349779 | 35.703357 | 34.818412 | 8.209221 | 9.245962 | 0.050369 | 0.053992 | 0.002599 | 1.199122 | 1.200288 |
155 | 12 | RF_maintenance | 100.00% | 100.00% | 100.00% | 0.00% | 100.00% | 0.00% | 20.044043 | 25.844302 | 80.859871 | 84.629805 | 36.085262 | 35.152587 | 8.149279 | 8.596019 | 0.053598 | 0.048522 | 0.002133 | 1.334220 | 1.390865 |
156 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.067699 | 0.689641 | -0.888909 | -0.717118 | 0.272704 | 1.814909 | 4.426061 | 11.667595 | 0.702579 | 0.666608 | 0.420929 | 6.535430 | 6.346155 |
157 | 12 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.545838 | -0.548305 | 6.335751 | -0.294276 | 10.038044 | 0.002334 | -1.356284 | 0.378999 | 0.682013 | 0.685235 | 0.405344 | 5.376757 | 7.780729 |
158 | 12 | RF_maintenance | 0.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.343079 | -1.176479 | 0.761725 | 0.620307 | 0.720338 | -0.207470 | 0.077466 | 0.136147 | 0.694559 | 0.699094 | 0.404878 | 4.922033 | 6.726486 |
160 | 13 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.193866 | -0.797940 | 1.066599 | -0.322142 | 2.837273 | 0.490791 | -0.978571 | -0.272166 | 0.709365 | 0.699233 | 0.395791 | 1.935847 | 2.171713 |
161 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.123305 | 51.518898 | 2.099075 | 11.072819 | 1.193184 | 7.257251 | 0.908271 | 3.970756 | 0.719164 | 0.618259 | 0.385268 | 6.392910 | 7.254756 |
162 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 1.481176 | -0.012000 | 0.322411 | 0.662884 | 3.400408 | 5.348502 | 0.425195 | 0.563220 | 0.726565 | 0.714183 | 0.401187 | 6.175230 | 8.165186 |
163 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.297572 | 0.044083 | -0.428411 | -1.090281 | -1.654225 | 2.764476 | -0.350162 | 1.588759 | 0.711247 | 0.708264 | 0.409888 | 1.830491 | 1.954948 |
164 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -1.046184 | -1.380594 | -0.635918 | -1.232843 | -0.582360 | 1.056579 | -0.503494 | 0.762670 | 0.705583 | 0.703617 | 0.410764 | 1.708425 | 1.982595 |
165 | 14 | 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 |
166 | 14 | 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 |
167 | 15 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 21.898189 | 26.560848 | 9.515854 | 8.743919 | 21.753343 | 33.340334 | 2.419960 | 18.104517 | 0.543169 | 0.528529 | 0.178194 | 4.239125 | 3.388544 |
168 | 15 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 5.468991 | 6.060313 | 10.842265 | 14.417988 | 13.060640 | 22.080870 | -2.522630 | -3.239192 | 0.688619 | 0.651328 | 0.427567 | 4.363580 | 4.440403 |
169 | 15 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.807645 | 5.531725 | 14.741427 | 12.095230 | 21.511077 | 19.773708 | -2.888155 | -1.901999 | 0.669338 | 0.642972 | 0.422831 | 4.033621 | 4.089304 |
170 | 15 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 7.961361 | 3.497579 | 15.269094 | 10.150854 | 22.720766 | 15.395719 | -2.066352 | -1.957402 | 0.658117 | 0.646492 | 0.425718 | 3.610053 | 4.139303 |
176 | 12 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.520231 | -0.420015 | 2.869478 | -0.534724 | 2.516609 | 0.075277 | -1.405841 | 0.850947 | 0.681863 | 0.672478 | 0.414538 | 1.549823 | 1.740775 |
177 | 12 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.964076 | 2.275270 | -0.944510 | 5.058157 | 0.794138 | 8.274187 | 4.041381 | 5.657469 | 0.696581 | 0.663488 | 0.415077 | 5.009630 | 6.807769 |
178 | 12 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.407390 | -0.635177 | 3.905323 | -0.863317 | -0.008703 | -0.731376 | 0.356293 | -0.398799 | 0.704012 | 0.690113 | 0.420080 | 1.614751 | 1.919881 |
179 | 12 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.009287 | 0.981953 | 1.726866 | -0.544743 | 7.947719 | -0.220905 | 6.004212 | -0.258972 | 0.703090 | 0.696640 | 0.410999 | 4.233680 | 6.219343 |
180 | 13 | RF_maintenance | 100.00% | 30.11% | 100.00% | 0.00% | 100.00% | 0.00% | 39.562794 | 28.985902 | 7.839155 | 85.783618 | 23.761619 | 34.778976 | -0.357286 | 6.249965 | 0.421024 | 0.060387 | 0.282238 | 3.975080 | 1.683999 |
181 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.615222 | 1.333473 | 0.670201 | 4.621042 | 0.325166 | 3.589617 | -0.396137 | 3.433449 | 0.707625 | 0.697372 | 0.411350 | 5.699690 | 6.764706 |
182 | 13 | RF_maintenance | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.476635 | 12.580260 | 10.063340 | 72.621648 | 15.835261 | 14.387825 | -2.477222 | 45.080648 | 0.685465 | 0.560169 | 0.440920 | 4.157963 | 3.001106 |
183 | 13 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | -0.940974 | 2.122294 | 2.374723 | 5.462581 | 3.697917 | 0.496017 | 0.405640 | 11.698327 | 0.711785 | 0.687137 | 0.419943 | 4.678795 | 5.676581 |
184 | 14 | 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 |
185 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.500717 | -0.516840 | -0.398670 | -0.711688 | -0.505657 | -1.066436 | 0.555996 | -0.797825 | 0.699940 | 0.685940 | 0.429692 | 1.614871 | 1.831336 |
186 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.234616 | 0.023300 | 0.661456 | -1.111759 | 0.561125 | 0.315540 | 1.378161 | -0.552025 | 0.697441 | 0.688888 | 0.427484 | 1.610705 | 2.063998 |
187 | 14 | digital_ok | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | -0.023300 | 0.305613 | -0.898545 | 1.110564 | 0.924482 | -0.321404 | 2.037340 | 2.152082 | 0.691630 | 0.680560 | 0.418602 | 1.472324 | 1.497655 |
189 | 15 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.848070 | 1.180753 | 0.144174 | 1.272520 | 0.738935 | 0.502949 | -0.009234 | 4.755475 | 0.678704 | 0.660181 | 0.430989 | 4.773253 | 5.369287 |
190 | 15 | digital_ok | 100.00% | 29.57% | 26.88% | 0.00% | 100.00% | 0.00% | 74.520775 | 81.997090 | 13.782687 | 19.263051 | 27.360461 | 27.318474 | 27.270114 | 19.076416 | 0.446833 | 0.482842 | 0.169651 | 2.257367 | 3.177588 |
191 | 15 | digital_ok | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.699922 | -0.489169 | 4.589849 | 0.667286 | 4.734266 | 2.727610 | -1.154459 | 11.811198 | 0.665574 | 0.645098 | 0.442587 | 4.189719 | 4.645584 |
220 | 18 | RF_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 |
221 | 18 | RF_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 |
222 | 18 | RF_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 |
320 | 3 | not_connected | 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 |
321 | 2 | not_connected | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 3.556614 | 2.307700 | 8.203304 | 7.695193 | 11.271986 | 12.807388 | -1.440410 | -1.543118 | 0.577558 | 0.557094 | 0.416892 | 0.000000 | 0.000000 |
323 | 2 | not_connected | 100.00% | 16.13% | 0.00% | 0.00% | 100.00% | 0.00% | 32.646866 | 3.817619 | 5.936528 | 11.110533 | 17.252569 | 20.630859 | 3.307155 | -1.500280 | 0.460974 | 0.553828 | 0.377431 | 0.000000 | 0.000000 |
324 | 4 | not_connected | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 8.586436 | 6.932320 | 16.783911 | 15.884539 | 26.132724 | 26.326815 | -3.063755 | -3.383688 | 0.532778 | 0.525819 | 0.402082 | 0.000000 | 0.000000 |
325 | 9 | not_connected | 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 |
329 | 12 | not_connected | 100.00% | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 5.565454 | 3.163112 | 5.614546 | 10.066490 | 2.516639 | 15.333277 | 5.727539 | -2.065870 | 0.549759 | 0.551272 | 0.411679 | 0.000000 | 0.000000 |
333 | 12 | not_connected | 100.00% | 26.88% | 0.00% | 0.00% | 100.00% | 0.00% | 13.405418 | 3.258275 | 36.046106 | 9.347337 | 29.013147 | 16.204013 | 50.775812 | -0.388770 | 0.423506 | 0.543154 | 0.405672 | 0.000000 | 0.000000 |
# 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, 7, 8, 10, 11, 12, 13, 14, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 36, 37, 38, 39, 45, 50, 51, 52, 53, 55, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 112, 116, 119, 120, 121, 122, 123, 124, 125, 126, 127, 129, 130, 136, 138, 142, 144, 145, 150, 155, 156, 157, 158, 161, 162, 165, 166, 167, 168, 169, 170, 177, 179, 180, 181, 182, 183, 184, 189, 190, 191, 220, 221, 222, 320, 321, 323, 324, 325, 329, 333]
# 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_2459731.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(ants, unused_ants, outriggers):
plt.figure(figsize=(16,16))
plt.scatter(np.array([hd.antpos[ant][0] for ant in hd.data_ants if ant in ants]),
np.array([hd.antpos[ant][1] for ant in hd.data_ants if ant in 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 * (2 - 1 * float(not outriggers)), 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 * (2 - 1 * float(not outriggers)), 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 * (2 - 1 * float(not outriggers)), 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 * (2 - 1 * float(not outriggers)), 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 * (2 - 1 * float(not outriggers)), 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 * (2 - 1 * float(not outriggers)), 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 {["Core", "Outrigger"][outriggers]} 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 {["Core", "Outrigger"][outriggers]} 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([ant for ant in auto_ex_ants if ant in ants])} {["Core", "Outrigger"][outriggers]} 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([frac for ant, frac in ant_metrics_xants_frac_by_ant.items() if ant in ants]), 2)} Antenna-Nights on'
f'\n{np.sum([frac > 0 for ant, frac in ant_metrics_xants_frac_by_ant.items() if ant in ants])} {["Core", "Outrigger"][outriggers]} 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 ant, frac in redcal_flagged_frac.items() if ant in ants])} {["Core", "Outrigger"][outriggers]} 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} ({[status for ant, status in a_priori_statuses.items() if ant in ants].count(aps)} {["Core", "Outrigger"][outriggers]} 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)
if outriggers:
pass
else:
plt.xlim([-200, 150])
plt.ylim([-150, 150])
# set axis equal and label everything
plt.axis('equal')
plt.tight_layout()
plt.title(f'Summary of {["Core", "Outrigger"][outriggers]} 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)
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 chi^2, 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.
core_ants = [ant for ant in ants if ant < 320]
outrigger_ants = [ant for ant in ants if ant >= 320]
Plot_Array(ants=core_ants, unused_ants=unused_ants, outriggers=False)
if len(outrigger_ants) > 0:
Plot_Array(ants=outrigger_ants, unused_ants=sorted(set(unused_ants + core_ants)), outriggers=True)
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-1843-g2f7065e git_hash: 2f7065e802713386c6e6088bc12e4ecc044b0478 git_origin: https://github.com/HERA-Team/hera_cal.git version: 3.0 ------------