This PR adds a rudimentary plotting interface to QuartiCal for the purpose of plotting gain solutions/parameters. Whist it is in a working state, it can definitely be improved. I have decided that the sooner this goes in the better, if only so that users can ask for specific features. Note that these are static plots which are intended to be produced and inspected as a diagnostic tool when debugging.
Here are a few abstract examples, assuming that a complex gain lives in gains.qc/G and a delay_and_offset lives in gains.qc/K:
Plot the gain amplitudes, computing the mean over the frequency axis and merging all scans and spectral windows: goquartical-plot gains.qc/G plots --xaxis gain_time --transform amplitude --iter-attrs FIELD_ID --mean-axis gain_freq --nworker 1
Plot the gain phases, computing the mean over the time axis: goquartical-plot gains.qc/G plots --xaxis gain_freq --transform phase --mean-axis gain_time --nworker 1
Plot the parameter values, computing the mean over the frequency axis and merging all scans and spectral windows: goquartical-plot gains.qc/K plots --plot-var params --flag-var param_flags --iter-attrs FIELD_ID --mean-axis param_freq --iter-axes antenna direction param_name --xaxis param_time --nworker 1
The following are examples of plotting some commonly solved for quantities:
This PR adds a rudimentary plotting interface to QuartiCal for the purpose of plotting gain solutions/parameters. Whist it is in a working state, it can definitely be improved. I have decided that the sooner this goes in the better, if only so that users can ask for specific features. Note that these are static plots which are intended to be produced and inspected as a diagnostic tool when debugging.
Here are a few abstract examples, assuming that a complex gain lives in
gains.qc/G
and adelay_and_offset
lives ingains.qc/K:
goquartical-plot gains.qc/G plots --xaxis gain_time --transform amplitude --iter-attrs FIELD_ID --mean-axis gain_freq --nworker 1
goquartical-plot gains.qc/G plots --xaxis gain_freq --transform phase --mean-axis gain_time --nworker 1
goquartical-plot gains.qc/K plots --plot-var params --flag-var param_flags --iter-attrs FIELD_ID --mean-axis param_freq --iter-axes antenna direction param_name --xaxis param_time --nworker 1
The following are examples of plotting some commonly solved for quantities:
goquartical-plot gains.qc/B plots --mean-axis gain_time --xaxis gain_freq --transform amplitude --nworker 1 --iter-attrs FIELD_ID
goquartical-plot gains.qc/B plots --mean-axis gain_time --xaxis gain_freq --transform phase --nworker 1 --iter-attrs FIELD_ID
goquartical-plot gains.qc/K plots --plot-var params --flag-var param_flags --mean-axis param_freq --iter-axes antenna direction param_name --xaxis param_time --nworker 1 --iter-attrs FIELD_ID
goquartical-plot gains.qc/G plots --mean-axis gain_freq --xaxis gain_time --transform amplitude --nworker 1 --iter-attrs FIELD_ID
goquartical-plot gains.qc/G plots --mean-axis gain_freq --xaxis gain_time --transform phase --nworker 1 --iter-attrs FIELD_ID