grasp2alm.BeamGauss#
- class grasp2alm.BeamGauss(fwhm_deg: float, amplitude: float = 1.0)[source]#
Class to generate a gaussian beam.
- __init__(fwhm_deg: float, amplitude: float = 1.0)[source]#
Initializes a BeamGauss object.
- Parameters:
amplitude (float) – Amplitude of the beam.
fwhm (float) – Full width at half maximum (FWHM) of the beam.
- Raises:
ValueError – If amplitude or fwhm is not a number.
Methods
__init__(fwhm_deg[, amplitude])Initializes a BeamGauss object.
gaussian_beam(theta)Calculates the value of a Gaussian beam at a given angle.
get_alm(lmax, mmax[, ellipticity, ...])Return an array of spherical harmonics \(a_{\ell m}\) that represents a Gaussian beam
get_profile(nside)Provide the beam map profile at a given nside.
write2cut(path, vini, vnum, ncut)Writes the formatted beam data to the specified path with the provided headers.
write2thetaphigrid(path, xs, ys, xe, ye, nx, ny)Writes the formatted beam data to the specified path with the provided headers.