scarf.Geometry¶
- class scarf.Geometry¶
Creates a geometry specified by the user.
- Parameters
nrings (int, scalar) – The number of rings
nph (int, shape (nrings)) – TBD
ofs (int, shape (nrings)) – TBD
stride (int, scalar) – The stride between two consecutive pixels on the map
phi0 (float, shape (nrings)) – TBD
theta (float, shape (nrings)) – The latitude angle of each ring
wgt (float, shape (nrings)) – The weighting for each ring
- theta¶
The latitude angle of each ring
- Type
float, shape (nrings)
- nph¶
TBD
- Type
int, shape (nrings)
- ofs¶
TBD
- Type
int, shape (nrings)
- stride¶
The stride between two consecutive pixels on the map
- Type
int, scalar
- phi0¶
TBD
- Type
float, shape (nrings)
- wgt¶
- Type
float, shape (nrings)
- __init__(self: scarf.Geometry, nrings: int, nph: numpy.ndarray[numpy.uint64], ofs: numpy.ndarray[numpy.int64], stride: int, phi0: numpy.ndarray[numpy.float64], theta: numpy.ndarray[numpy.float64], wgt: numpy.ndarray[numpy.float64]) → None¶
Methods
__init__(self, nrings, nph, ofs, stride, …)alm2map(self, alm, lmax, mmax, nthreads, zbounds)Computes the alm of a temperature map.
alm2map_spin(self, alm, spin, lmax, mmax, …)Computes a Healpix polarisation map from alm.
alm2phase(self, alm, lmax, mmax, nthreads, …)Computes a temperature phase given the alm.
alm2phase_spin(self, alm, spin, lmax, mmax, …)Computes a polarization phase given the alm.
get_nph(self, iring)Returns the number of pixels in the specified ring.
get_nphmax(self)Returns the maximum number of pixels of a ring.
get_nrings(self)Returns the number of rings of the geometry.
get_ofs(self, iring)Returns the pixel offset of the specified ring.
get_phi0(self, iring)Returns the longitude of the first pixel of a ring.
get_theta(self, iring)Returns the lattitude, in radiants, of a specified ring.
get_weight(self, iring)Returns the weight of the specified ring.
map2alm(self, map, lmax, mmax, nthreads, zbounds)Computes a temperature map given the alm.
map2alm_spin(self, map, spin, lmax, mmax, …)Computes the alm of a polarization map.
map2phase(self, map, lmax, mmax, nthreads, …)Computes a temperature phase given the map.
phase2alm(self, phase, lmax, mmax, nthreads, …)Computes a temperature alm given the phase.
phase2alm_spin(self, phase, spin, lmax, …)Computes a polarization alm given the phase.
phase2map(self, phase, lmax, mmax, nthreads, …)Computes a temperature map given the phase.
Attributes
weight