Primary Beams¶
Simulations may be run using pyuvdata UVBeam objects or AnalyticBeam objects.
-
class
pyuvsim.
AnalyticBeam
(type, sigma=None, diameter=None)[source]¶ Defines an object with similar functionality to pyuvdata.UVBeam
Directly calculates jones matrices at given azimuths and zenith angles from analytic functions.
Supports uniform (unit response in all directions), gaussian, and Airy function beam types.
-
interp
(az_array, za_array, freq_array)[source]¶ Evaluate the primary beam at given az, za locations (in radians).
(similar to UVBeam.interp)
Parameters: - az_array – az values to evaluate at in radians (same length as za_array) The azimuth here has the UVBeam convention: North of East(East=0, North=pi/2)
- za_array – za values to evaluate at in radians (same length as az_array)
- freq_array – frequency values to evaluate at
Returns: - an array of beam values, shape (Naxes_vec, Nspws, Nfeeds or Npols,
Nfreqs or freq_array.size if freq_array is passed, Npixels/(Naxis1, Naxis2) or az_array.size if az/za_arrays are passed)
- an array of interpolated basis vectors (or self.basis_vector_array
if az/za_arrays are not passed), shape: (Naxes_vec, Ncomponents_vec, Npixels/(Naxis1, Naxis2) or az_array.size if az/za_arrays are passed)
-