grasp2alm.BeamPolar#

class grasp2alm.BeamPolar(nphi: int, ntheta: int, theta_rad_min: float, theta_rad_max: float, filename: str)[source]#

Represents beams of Stokes parameters.

Type to store Stokes parameters of a beam on a spherical polar(:math:` heta`,:math:phi) grid. This type is an input to the spherical harmonic transform. Internally, this package uses the ‘Ludwig 3’ definition for thepolarisation basis with the co-polar (positive \(Q\)) direction aligned with the y-axis.

Parameters:
  • nphi (int) – Number of \(\phi\) values.

  • ntheta (int) – Number of :math:` heta` values.

  • theta_rad_min (float) – Minimum :math:` heta` value in radians.

  • theta_rad_max (float) – Maximum :math:` heta` value in radians.

  • stokes (numpy.ndarray) – Array of shape (4, nphi, ntheta) representing the Stokes parameters (\(I\),:math:Q,:math:U,:math:V).

  • filename (str) – Name of the file.

__init__(nphi: int, ntheta: int, theta_rad_min: float, theta_rad_max: float, filename: str)[source]#

Methods

__init__(nphi, ntheta, theta_rad_min, ...)

plot([stokes, color_resol, figsize, cmap, ...])

Plot the beam profile.

stokes_rotate()

Rotates \(Q\) and \(U\) Stokes parameters from the co-cross basis to the polar basis.

to_map(nside[, nstokes, outOftheta_val, ...])

Convert the BeamPolar to a BeamMap.