SedList¶
- class rubin_sim.phot_utils.SedList(sed_name_list, mag_norm_list, normalizing_bandpass=None, spec_map=None, file_dir='', wavelen_match=None, redshift_list=None, galactic_av_list=None, internal_av_list=None, cosmological_dimming=True)¶
Bases:
object
This class will read in a list of Seds from disk and store them.
It also has the ability to renormalize, redden (according to the O’Donnell 94, ApJ 422 158 dust model), and redshift the Seds.
As it reads in the Seds, it will keep track of each unique file it reads in. If two Seds are based on the same file (before normalization, reddening, etc.), it will refer back to its own memory, rather than reading the file from disk a second time.
The method load_seds_from_list allows the user to add Seds to the list after the constructor has been called.
Attributes Summary
bool
determining whether cosmological dimming (the extra (1+z)^-1 factor in flux) is applied to Seds when they are redshifte by this SedList.List of A(V) due to Milky Way dust applied to the Seds stored in this SedList
A(V) due to internal dust applied to the Seds stored in this SedList.
List of redshifts applied to the Seds stored in this SedList.
Wavelength grid against which to match Seds stored in this SedList.
Methods Summary
apply_av
(sed_list, av_list, dust_wavelen, ...)Take the array of Sed objects sed_list and apply extinction due to dust.
apply_redshift
(sed_list, redshift_list)Take the array of SED objects sed_list and apply the arrays of extinction and redshift (internalAV and redshift)
flush
()Delete all SEDs stored in this SedList.
load_seds_from_list
(sed_name_list, mag_norm_list)Load the Seds specified by sed_name_list, applying the specified normalization, extinction, and redshift.
Attributes Documentation
- cosmological_dimming¶
bool
determining whether cosmological dimming (the extra (1+z)^-1 factor in flux) is applied to Seds when they are redshifte by this SedList.
- galactic_av_list¶
List of A(V) due to Milky Way dust applied to the Seds stored in this SedList
- internal_av_list¶
A(V) due to internal dust applied to the Seds stored in this SedList.
- redshift_list¶
List of redshifts applied to the Seds stored in this SedList.
- wavelen_match¶
Wavelength grid against which to match Seds stored in this SedList.
Methods Documentation
- apply_av(sed_list, av_list, dust_wavelen, a_coeffs, b_coeffs)¶
Take the array of Sed objects sed_list and apply extinction due to dust.
This method makes the necessary changes to the Seds in SedList in situ. It returns the wavelength grid and corresponding dust coefficients so that they an be reused on Seds with identical wavelength grids.
@param [in] sed_list is a list of Sed objects
@param [in] av_list is a list of Av extinction values internal to each object
@param [in] dust_wavelen is the wavelength grid corresponding to the dust model coefficients. If this differs from the wavelength grid of any of the Seds in sed_list, the dust model coefficients will be re-generated.
@param [in] a_coeffs are the ‘a’ dust model coefficients (see O’Donnell 1994 ApJ 422 158)
@param [in] b_coeffs are the ‘b’ dust model coefficients from O’Donnell.
@param [out] dust_wavelen as generated/used by this method
@param [out] a_coeffs as generated/used by this method
@param [out] b_coeffs as generated/used by this method
a_coeffs and b_coeffs are re-generated as needed
- apply_redshift(sed_list, redshift_list)¶
Take the array of SED objects sed_list and apply the arrays of extinction and redshift (internalAV and redshift)
This method does not return anything. It makes the necessary changes to the Seds in SedList in situ.
@param [in] sed_list is a list of Sed objects
@param [in] redshift_list is a list of redshift values
This method will redshift each Sed object in sed_list
- flush()¶
Delete all SEDs stored in this SedList.
- load_seds_from_list(sed_name_list, mag_norm_list, internal_av_list=None, galactic_av_list=None, redshift_list=None)¶
Load the Seds specified by sed_name_list, applying the specified normalization, extinction, and redshift.
@param [in] sedList is a list of file names containing Seds
@param [in] magNorm is the magnitude normalization
@param [in] internal_av_list is an optional list of A(V) due to internal dust
@param [in] galactic_av_list is an optional list of A(V) due to Milky Way dust
@param [in] redshift_list is an optional list of redshifts for the input Sed
Seds are read in and stored to this object’s internal list of Seds.
Note: if you constructed this SedList object without internal_av_list, you cannot load Seds with internal_av_list now. Likewise for galacticAvlist and redshift_list.