argosim.plot_utils module#
Plot utils.
This module contains functions to plot the antenna array, beam, baselines, uv-coverage and sky models.
- Authors:
Ezequiel Centofanti <ezequiel.centofanti@cea.fr>
- argosim.plot_utils.plot_antenna_arr(array, ax=None, fig=None, title='Array')[source]#
Plot antenna array.
Function to plot the antenna array in ground coordinates.
- Parameters:
array (np.ndarray) – The antenna array positions in the ground.
ax (matplotlib.axes.Axes) – The axis to plot the antenna array. For plotting on a specific subplot axis.
fig (matplotlib.figure.Figure) – The figure to plot the antenna array. For plotting on a specific subplot axis.
title (str) – The title of the plot.
- Return type:
None
- argosim.plot_utils.plot_baselines(baselines, ax=None, fig=None, ENU=False)[source]#
Plot baselines.
Function to plot the baselines in uv-space.
- Parameters:
baselines (np.ndarray) – The uv-space sampling positions.
ax (matplotlib.axes.Axes) – The axis to plot the baselines. For plotting on a specific subplot axis.
fig (matplotlib.figure.Figure) – The figure to plot the baselines. For plotting on a specific subplot axis.
ENU (bool) – If True, plot the baselines in East-North-Up coordinates. Otherwise, plot in uv-space.
- Return type:
None
- argosim.plot_utils.plot_beam(beam, pRng=(-0.1, 0.5), ax=None, fig=None)[source]#
Plot beam.
Function to plot the synthesised beam image.
- Parameters:
beam (np.ndarray) – The beam image.
pRng (tuple) – The range of the colorbar.
ax (matplotlib.axes.Axes) – The axis to plot the beam. For plotting on a specific subplot axis.
fig (matplotlib.figure.Figure) – The figure to plot the beam. For plotting on a specific subplot axis.
- Return type:
None
- argosim.plot_utils.plot_beam_fit(beam, fit_result=None)[source]#
Plot beam fit.
Plot the beam and overlay the fitted ellipse.
- Parameters:
beam (np.ndarray) – 2D beam image.
fit_result (dict) – Dictionary containing the ellipse parameters (center, width, height, angle_deg, eccentricity). If None, it is computed from the beam.
- Return type:
None
- argosim.plot_utils.plot_sky(image, fov_size=(1.0, 1.0), ax=None, fig=None, title='Sky')[source]#
Plot sky.
Function to plot the sky model.
- Parameters:
image (np.ndarray) – The sky model image.
fov_size (tuple) – The field of view size in degrees.
- Return type:
None
- argosim.plot_utils.plot_sky_uv(sky_uv, fov_size)[source]#
Plot sky uv.
Function to plot the sky model in uv-space in logarithmic amplitud sale.
- Parameters:
sky_uv (np.ndarray) – The sky model in uv-space.The inverse fourier transform of the sky model.
- Return type:
None
- argosim.plot_utils.plot_uv_hist(baselines, bins=20, output_folder=None)[source]#
Plot uv histogram.
Function to plot the histogram of the uv-sampling distribution.
- Parameters:
baselines (np.ndarray) – The uv-space sampling positions.
bins (int) – The number of bins for the histogram.
output_folder (str) – The output folder to save the plot.
- Returns:
The histogram of the uv-sampling distribution.
- Return type:
np.ndarray