CMM.preset.preset_mixingmatrix module
- class CMM.preset.preset_mixingmatrix.PresetMixingMatrix(preset_tools, preset_qubic, preset_comp)[source]
Bases:
object
Preset Mixing Matrix.
Instance to initialize the Components Map-Making. It defines Mixing Matrix variables and methodes.
- Parameters:
preset_tools (object) – Class containing tools and simulation parameters.
preset_qubic (object) – Class containing qubic operator and variables and methods.
preset_comp (object) – Class containing component variables and methods.
- nus_eff_in
Input effective frequencies.
- Type:
array_like
- nus_eff_out
Output effective frequencies.
- Type:
array_like
- Amm_in
Input mixing matrix.
- Type:
array_like
- beta_in
Input spectral indices.
- Type:
array_like
Methods
extra_sed
(nus, correlation_length)Spectral Energy Distribution.
Spectral index.
get_decorrelated_mixing_matrix
(lcorr, seed)Decorrelated mixing matrix.
Spatially varying spectral index.
get_mixingmatrix
(nus, beta[, key])Mixing Matrix.
ModifiedBlackBody spectral indices.
spectral_index_powerlaw
(nside)PowerLaw spectral indices.
- extra_sed(nus, correlation_length)[source]
Spectral Energy Distribution.
Calculates the extra SED (Spectral Energy Distribution) based on the given parameters.
- Parameters:
nus (array_like) – Array containing frequencies.
correlation_length (float) – The correlation lenght.
- Returns:
extra – Array containing the extra SED values.
- Return type:
array_like
- get_beta_input()[source]
Spectral index.
Define the input spectral indices based on the model type.
If the model is ‘d0’ or ‘d6’, the input spectral index is fixed (1.54). Otherwise, the model assumes varying spectral indices across the sky by calling the previous method. In this case, the shape of beta is (Nbeta, Ncomp).
- nus_eff_in
Input effective frequencies.
- Type:
array_like
- nus_eff_out
Output effective frequencies.
- Type:
array_like
- Amm_in
Input mixing matrix.
- Type:
array_like
- beta_in
Input spectral indices.
- Type:
array_like
- Raises:
TypeError – Raises if the chosen model is not implemented.
Decorrelated mixing matrix.
- Parameters:
lcorr (float) – Correlation lenght.
seed (int) – Seed for random decorrealtion.
key (str, optional) – The key to access the specific parameters in the prest configuration. Can be either “in” or “out”, by default “in”
- Returns:
Adeco – Decorrelated mixing matrix.
- Return type:
array_like
- get_index_seenpix_beta()[source]
Spatially varying spectral index.
Method to initialize index seenpix beta variable.
- get_mixingmatrix(nus, beta, key='in')[source]
Mixing Matrix.
Method to get the mixing matrix from FGBuster according to compoenents model.
- Parameters:
nus (array_like) – Array containing frequencies.
beta (float) – Spectral index.
key (str, optional) – The key to access the specific parameters in the prest configuration. Can be either “in” or “out”, by default “in”
- Returns:
Amm – Mixing matrix.
- Return type:
array_like
- Raises:
ValueError – Raises in case of incorrect key.
- spectral_index_modifiedblackbody(nside)[source]
ModifiedBlackBody spectral indices.
Method to define input spectral indices if the d1 model is used for thermal Dust description.
- Parameters:
nside (int) – Nside parameter for HEALPix map.
- Returns:
mbb_index – Array containing the spectral indices for the thermal Dust model.
- Return type:
array_like
- spectral_index_powerlaw(nside)[source]
PowerLaw spectral indices.
Define input spectral indices if the s1 model is used for Synchrotron description.
- Parameters:
nside (int) – Nside parameter for HEALPix map.
- Returns:
pl_index – Array containing the spectral indices for the Synchrotron model.
- Return type:
array_like