ModifiedBlackBody

class pysm.ModifiedBlackBody(map_I, map_Q, map_U, freq_ref_I, freq_ref_P, map_mbb_index, map_mbb_temperature, nside, has_polarization=True, unit_I=None, unit_Q=None, unit_U=None, unit_mbb_temperature=None, map_dist=None)[source] [edit on github]

Bases: pysm.Model

This is a model for modified black body emission.

Attributes
I_ref, Q_ref, U_ref: ndarray

Arrays containing the intensity or polarization reference templates at frequency freq_ref_I or freq_ref_P.

This function initializes the modified black body model.

The initialization of this model consists of reading in emission templates from file, reading in spectral parameter maps from file.

Parameters
map_I, map_Q, map_U: `pathlib.Path` object

Paths to the maps to be used as I, Q, U templates.

unit_*string or Unit

Unit string or Unit object for all input FITS maps, if None, the input file should have a unit defined in the FITS header.

freq_ref_I, freq_ref_P: Quantity or string

Reference frequencies at which the intensity and polarization templates are defined. They should be a astropy Quantity object or a string (e.g. “1500 MHz”) compatible with GHz.

map_mbb_index: `pathlib.Path` object or scalar value

Path to the map to be used as the power law index for the dust opacity in a modified blackbody model, for a constant value use a float or an integer

map_mbb_temperature: `pathlib.Path` object

Path to the map to be used as the temperature of the dust in a modified blackbody model. For a constant value use a float or an integer

nside: int

Resolution parameter at which this model is to be calculated.

Methods Summary

get_emission(self, freqs[, weights])

This function evaluates the component model at a either a single frequency, an array of frequencies, or over a bandpass.

Methods Documentation

get_emission(self, freqs:Unit("GHz"), weights=None) -> Unit("uK_RJ")[source] [edit on github]

This function evaluates the component model at a either a single frequency, an array of frequencies, or over a bandpass.

Parameters
freqs: float

Frequency at which the model should be evaluated, assumed to be given in GHz.

Returns
ndarray

Set of maps at the given frequency or frequencies. This will have shape (nfreq, 3, npix).