redshift_SED¶
-
simcado.source.
redshift_SED
(z, spectrum, mag, filter_name='TC_filter_Ks.dat')[source]¶ Redshift a SimCADO SED and scale it to a magnitude in a user specified filter
- Parameters
- z: redshift of the source
- spectrum: str, EmissionCurve, optional
The spectrum to be associated with the source. Values can either be: - the name of a SimCADO SED spectrum : see get_SED_names() - an EmissionCurve with a user defined spectrum
- mag: magnitude to scale the the SED after redshifting the spectrum
- filter_name: filter in which the magnitude is given
- Returns
- ec: EmissionCurve object
See also
Notes
wavelength and flux of the redshifted spectrum can be accessed with ec.lam and ec.val
the returned object can directly be used in any source function that accepts an EmissionCurve object (source.elliptical, source.spiral, source.point_source)