lusee.Beam
- class lusee.Beam(fname=None, id=None)
The main beam class, contains beam data and meta parameters. Only filename of beam to load and ID string are explicitly set in class initialization. All others are normally read in from the beam FITS file, but are included here in documentation for completeness.
- Parameters:
fname (str) – Filename of beam to load
id (str) – ID string for beam, optional
version (int) – Beam version
Etheta (numpy array[complex]) – Theta component of electric field
Ephi (numpy array[complex]) – Phi component of electric field
ZRe (numpy array) – Real component of antenna impedance
ZIm (numpy array) – Imaginary component of antenna impedance
Z (numpy array[complex]) – Complex impedance
gain (numpy array) – Antenna gain
f_ground (numpy array) – Ground fraction
gain_conv (numpy array) – Gain convention
freq (numpy array) – Frequency list
freq_min (float) – Minimum frequency
freq_max (float) – Maximum frequency
Nfreq (int) – Number of frequencies
theta_min (float) – Minimum theta angle
theta_max (float) – Maximum theta angle
Ntheta (int) – Number of theta bins
phi_min (float) – Minimum phi angle
phi_max (float) – Maximum phi angle
Nphi (int) – Number of phi bins
header (dict) – File header
theta_deg (numpy array) – Array of theta bins in degrees
phi_deg (numpy array) – Array of theta bins in degrees
theta (numpy array) – Array of theta bins in radians
phi (numpy array) – Array of phi bins in radians
- __init__(fname=None, id=None)
Methods
__init__([fname, id])copy_beam([Etheta, Ephi])Function that copies a beam object.
cross_power(other)Function that calculates the cross-power between two beams
Function that flips beams across yz plane
get_healpix(lmax, field[, freq_ndx])Function that produces a healpix map of specified field
ground_fraction([cross])Function that calculates the fraction of beam power that terminates on the ground (ground fraction), for a single beam or two crossed beams
plotE(freqndx[, toplot, noabs])Function that plots 1D cuts of the E-field as a function of theta and phi
power()Function that calculates the beam power of a single beam
power_hp(ellmax, Nside[, freq_ndx, ...])Function that calculates the healpix rendering of the beam power
power_stokes([cross])Function that calculates the beam power in Stokes components
rotate(deg)Function that rotates the beam around the zenith (turntable rotation)
sky_fraction([cross])Function that calculates the fraction of beam power that terminates on the sky (sky fraction), for a single beam or two crossed beams