utils

erwans3.utils Module

Functions

cartRepWDiff_sub(cart1, cart2)

Subtract two Cartesian representations and their differentials.

clm_hp2sh(arr[, lmax, mmax])

Convert Sherical harmonic coefficients from healpy format to pyshtool.SHCoeff object Work in progress : unfinished

clm_sh2hp(clm)

Convert Sherical harmonic coefficients from pyshtool.SHCoeff object to healpy format Work in progress : unfinished

compare_rotation(Rot1, Rot2)

Compare two rotations and return the angular difference between them.

compute_wcs(center, resolution, radius)

distrib_uni_ball(npoint[, r, representation])

Generate random points uniformly distributed within a ball.

distrib_uni_sphere(npoint[, r, representation])

Generate random points uniformly distributed on the surface of a sphere.

gauss(amp, x0, x, sig[, norm, bkg])

Compute the Gaussian function with optional background and normalization.

gauss_2d(amp, x0, x, y0, y, sigx, sigy[, ...])

Compute the value of a 2D Gaussian function at given positions.

gauss_2d_func(amp, x0, y0, sigx, sigy[, ...])

Create a 2D Gaussian function.

gauss_func(amp, x0, sig[, norm, bkg])

Create a Gaussian function as a lambda expression.

gauss_hpx_func(amp, center, sig, nside[, ...])

Create a 1D Gaussian function defined on a Healpix sphere.

gauss_sph(amp, center, vec, sig[, bkg, norm])

Compute a 3D spherical Gaussian function.

is_extensive(unit)

Check whether a given unit is extensive (per steradian) or not.

isscalar(x)

Determine if the input is a scalar value.

pixlist2radecmap(pixlist, indices, nside, ...)

Display function

plotmap(self, wcs, data, **kwargs)

res2lmax(res[, degree, factor])

Convert a resolution parameter to its corresponding maximum spherical harmonic degree (lmax) value.

res2nside(res[, degree, method])

Returns the HEALPix Nside corresponding to a given resolution

rot_hp2sc(rothp)

Convert Rotation object from healpy to scipy

rot_sc2hp(rotsc)

Convert Rotation obsject from scipy to healpy