argosim.beam_utils module#
Beam utils.
This module contains the beam class to generate the primary beam of the antennas.
- Authors:
Ezequiel Centofanti <ezequiel.centofanti@cea.fr>
- class argosim.beam_utils.CosCubeBeam(c=0.2, f=1.0, n_pix=100, fov_deg=1.0)[source]#
Bases:
object
Cosine cubed beam.
Class to model the primary beam of the antennas using a cosine cubed function.
- c#
The multiplicative constant of the cosine argument.
- Type:
float
- f#
The frequency in GHz at which the beam is evaluated.
- Type:
float
- grid_size#
The number of pixels of the simulated field of view.
- Type:
int
- fov_deg#
The simulated field of view in degrees.
- Type:
float
Methods
Cf
()Cf.
__call__
(l, m)Cosine cubed beam.
Beam edge.
Check FOV.
evaluate_beam_fit
(freqs, norm_beam_list)Evaluate beam fit.
fov_solid_angle
([r_fov])FOV solid angle.
get_beam
()Get beam.
get_mesh
()Get mesh.
plot_beam_1d
(freqs)Plot beam 1D.
Plot beam 2D.
r_fov
()FOV radius.
set_c
(c)Set c.
set_f
(f)Set f.
set_fov
(fov_deg)Set FOV.
- Cf()[source]#
Cf.
Function to compute the Cf parameter.
- Returns:
Cf – The Cf parameter.
- Return type:
float
- beam_edge()[source]#
Beam edge.
Function to compute the beam edge (where the beam reaches zero).
- Returns:
beam_edge – The beam edge in degrees.
- Return type:
float
- check_fov()[source]#
Check FOV.
Function to check if the desired FOV is too large for the beam size.
- evaluate_beam_fit(freqs, norm_beam_list)[source]#
Evaluate beam fit.
Function to evaluate the beam fit at the given frequencies and compare it with the beam measurements.
- Parameters:
freqs (list) – The list of frequencies in GHz at which the beam is evaluated.
norm_beam_list (list) – The list of normalized beam measurements (amplitude not dB).
- fov_solid_angle(r_fov=None)[source]#
FOV solid angle.
Compute the solid angle of the FOV.
- Parameters:
r_fov (float) – The beam width at -3 dB in degrees.
- Returns:
solid_angle – The solid angle of the FOV in square degrees.
- Return type:
float
- get_beam()[source]#
Get beam.
Function to compute the beam amplitude.
- Returns:
z – The beam amplitude.
- Return type:
np.ndarray
- get_mesh()[source]#
Get mesh.
Function to compute the meshgrid of the lm image plane.
- Returns:
l (np.ndarray) – The l coordinate of the image plane.
m (np.ndarray) – The m coordinate of the image plane.
- plot_beam_1d(freqs)[source]#
Plot beam 1D.
Function to plot the simulated beam in 1D as a function of the angle.
- Parameters:
freqs (list) – The list of frequencies in GHz at which the beam is evaluated.
- plot_beam_2d()[source]#
Plot beam 2D.
Function to plot the simulated beam in 2D over the field of view.
- r_fov()[source]#
FOV radius.
Function to compute the radius of the beam at -3 dB.
- Returns:
r_fov – The radius of the beam at -3 dB.
- Return type:
float
- set_c(c)[source]#
Set c.
- Parameters:
c (float) – The multiplicative constant of the cosine argument.