snsim.dust_utils¶
This module contains dust features.
Functions¶
Check if sdfmap files are here and download if not. |
|
|
Set MW dut effect on sncosmo model. |
|
Set mw model parameters of a sncsomo model. |
|
Compute E(B-V) color excess. |
Module Contents¶
- snsim.dust_utils.check_files_and_download()[source]¶
Check if sdfmap files are here and download if not.
- Returns:
No return, just download files.
- Return type:
None
Notes
TODO : Change that for environement variable or cleaner solution
- snsim.dust_utils.init_mw_dust(mw_dust)[source]¶
Set MW dut effect on sncosmo model.
- Parameters:
model (sncosmo.Model) – The sncosmo model which to add the mw dust.
mw_dust_mod (dic) – The model of dust to apply.
- Returns:
Dust effects.
- Return type:
- snsim.dust_utils.add_mw_to_fit(fit_model, mwebv, mod_name, rv=3.1)[source]¶
Set mw model parameters of a sncsomo model.
- snsim.dust_utils.compute_ebv(ra, dec)[source]¶
Compute E(B-V) color excess.
- Parameters:
ra (float or numpy.ndarray) – Right Ascension.
dec (float or numpy.ndarray) – Declinaison.
- Returns:
The color excess correponding to ra, dec coordinates.
- Return type: