API Reference

Main functions

grasp2alm.grasp2alm(filepath, nside[, ...])

Convert a GRASP file to a spherical harmonic coefficients of beam map.

grasp2alm.grasp2alm_lsq(filepath, nside, ...)

Convert a GRASP file to a spherical harmonic coefficients of beam map by using healpy.map2alm_lsq.

Classes

grasp2alm.BeamCut(filepath)

Class to hold the data from a beam cut file of GRASP.

grasp2alm.BeamGrid(filepath)

Class to hold the data from a beam grid file of GRASP.

grasp2alm.BeamPolar(nphi, ntheta, ...)

Represents beams of Stokes parameters.

grasp2alm.BeamMap(map)

Represents a beam map.

Methods

grasp2alm.BeamCut.to_polar([copol_axis])

Converts beam in "cut" format to Stokes parameters on a polar grid.

grasp2alm.BeamCut.plot([pol, color_resol, ...])

Plot the beam pattern.

grasp2alm.BeamGrid.to_polar([copol_axis])

Converts beam in polar grid format into Stokes parameters on a polar grid.

grasp2alm.BeamGrid.plot([pol, color_resol, ...])

Plot the beam pattern.

grasp2alm.BeamPolar.stokes_rotate()

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

grasp2alm.BeamPolar.to_map(nside[, nstokes, ...])

Convert the BeamPolar to a BeamMap.

grasp2alm.BeamPolar.plot([stokes, ...])

Plot the beam.

grasp2alm.BeamMap.to_alm([lmax, mmax, iter, ...])

Converts the beam map to spherical harmonic coefficients.

grasp2alm.BeamMap.to_alm_lsq(lmax, mmax[, ...])

Converts the beam map to spherical harmonic coefficients by using healpy.map2alm_lsq.