low_comm_tools.plotting.animate_fringes

Classes

BaselineData

Visibilities for a given baseline along with its corresponding Frequency

Functions

_get_baseline(→ BaselineData)

_plot_coarse_chan_edges(→ None)

_plot_single_integration_phase_and_ampl(...)

_read_subtable(...)

_scrunch(→ tuple[Any, Any, Any])

animate(→ tuple[matplotlib.artist.Artist, Ellipsis])

get_parser(→ argparse.ArgumentParser)

main(→ None)

make_fringe_animation(...)

Module Contents

class low_comm_tools.plotting.animate_fringes.BaselineData[source]

Bases: NamedTuple

Visibilities for a given baseline along with its corresponding Frequency and Time arrays

f: numpy.ndarray[source]

1D array of frequencies in MHz

t: numpy.ndarray[source]

1D array of times in s

z: numpy.ndarray[source]

2D array of baseline visibilities

low_comm_tools.plotting.animate_fringes._get_baseline(ms_path: pathlib.Path, station1: str, station2: str, delay_samples: int = 0, intra_chan_delay_samples: int = 0) BaselineData[source]
low_comm_tools.plotting.animate_fringes._plot_coarse_chan_edges(f: numpy.ndarray, axs: numpy.ndarray, alpha: float = 0.3, c: str = 'k', ls: str = 'dashed', **kwargs: dict[str, Any]) None[source]
low_comm_tools.plotting.animate_fringes._plot_single_integration_phase_and_ampl(x: numpy.ndarray, z: numpy.ndarray, n: int, ax_phase: matplotlib.axes.Axes, ax_ampl: matplotlib.axes.Axes, log: bool = True, pols: list[str] | None = None, deg: bool = True, s: float = 3.0, c: list[str] = SKA_HEX_COLOURS, **kwargs: dict[str, Any]) tuple[list[matplotlib.collections.PathCollection], list[matplotlib.collections.PathCollection]][source]
low_comm_tools.plotting.animate_fringes._read_subtable(ms_path: pathlib.Path, ant_1: int, ant_2: int, data_column: str, station_names: list[str], freq_chan: astropy.units.Quantity) low_comm_tools.plotting.baselines.SubtableData | None[source]
low_comm_tools.plotting.animate_fringes._scrunch(baseline_data: BaselineData, tfactor: int = 1, ffactor: int = 1) tuple[Any, Any, Any][source]
low_comm_tools.plotting.animate_fringes.animate(frame: int, scat_phases: list[matplotlib.collections.PathCollection], scat_ampls: list[matplotlib.collections.PathCollection], time_text: matplotlib.text.Text, f: numpy.ndarray, t: numpy.ndarray, z: numpy.ndarray, pols: list[str], deg: bool, log: bool) tuple[matplotlib.artist.Artist, Ellipsis][source]
low_comm_tools.plotting.animate_fringes.get_parser() argparse.ArgumentParser[source]
low_comm_tools.plotting.animate_fringes.main() None[source]
low_comm_tools.plotting.animate_fringes.make_fringe_animation(ms_path: pathlib.Path, deg: bool, log: bool, tfactor: int, ffactor: int, delay_samples: int, intra_chan_delay_samples: int, stations: tuple[str, str], output_animation: str | None, pols: str) tuple[matplotlib.figure.Figure, matplotlib.animation.FuncAnimation][source]