Tools (mesmer.tools)

class mesmer.tools.WhiteNoise(weights=None, sens=None, pol=True)[source] [edit on github]

Bases: object

Simple white noise model. See eqs (1) and (2) from arxiv: 9705188.

get_pix_var_map(nside)[source] [edit on github]

Function to return a map containing the variance in each pixel at each frequency. This is a product consumed by the mesmer.likelihood.LogProb object, and is provided for convenient use with that.

Parameters
nside: int

Nside parameter of the HEALPix maps to be produced.

Returns
ndarray

Array containing the variance in each pixel at each frequency.

map(nside, seed=3232)[source] [edit on github]

Function to generate a realization of the noise level as a HEALPix map, with a given nside.

Parameters
nside: int

Nside parameter of the HEALPix map to be produced.

seed: int (optional, default=3232)

RNG seed.

Returns
ndarray

Noise realization as a HEALPix map.