MILES¶
- class paintbox.MILES(spectral_range=None, imf_type=None, isochrones=None, wave=None, libpath=None, resolution=None, store=None, norm=True)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseUtility class to prepare MILES SSP models.
More info about MILES models can be found at their website [1]
- Parameters
- spectral_range: str (default ‘E”)
- Define the spectral range (wavelength) used in the models. Options are:
E (EMILES): 1680-50000 Angstrom
M (MILES): 3540.5-7409.6 Angstrom
B (V99_Blue): 3855.50-4476.44 Angstrom
R (V99_Red): 4794.95-5465.09 Angstrom
C (CaT): 8348.85-8951.50 Angstrom
- imf_type: str (default “bi”)
- Initial Mass Function (IMF) parametrization. Options are:
un (unimodal)
bi (bimodal)
ku (Kroupa universal)
kb (Kroupa revised)
ch (Chabrier)
- isochrones: str (default BasTI)
Isochrones used for the SSP. Options are BasTI and Padova.
- [1]: http://research.iac.es/proyecto/miles/
Attributes Summary
Defines allowed metallicities in the SSPs.
Defines allowed ages in the SSPs.
Defines allowed alpha/Fe in the SSPs.
List with names of the parameters of the model.
Methods Summary
__call__(theta)Call self as a function.
Constrain the parameters with the same name to have the same value during calling.
fix(fixed_vals)Fix a set of parameters in parnames using a dictionary.
get_filename(MH, age[, alphaFe, imfslope])Retrieves the filename containing the spectrum of given ages, metallicities, alpha/Fe and IMF slope.
gradient(theta)plot(theta[, ax, plottype])Plot the model for a given set of parameters.
Attributes Documentation
- MHs¶
Defines allowed metallicities in the SSPs.
- ages¶
Defines allowed ages in the SSPs.
- alphaFes¶
Defines allowed alpha/Fe in the SSPs.
- parnames¶
List with names of the parameters of the model.
Methods Documentation
- __call__(theta) [edit on github]¶
Call self as a function.
- constrain_duplicates() [edit on github]¶
Constrain the parameters with the same name to have the same value during calling.
- fix(fixed_vals) [edit on github]¶
Fix a set of parameters in parnames using a dictionary.
- get_filename(MH, age, alphaFe='base', imfslope=1.3)[source] [edit on github]¶
Retrieves the filename containing the spectrum of given ages, metallicities, alpha/Fe and IMF slope.
- Parameters
- MH: float
Metallicity of the SSP.
- age: float
Age of the SSP.
- alphaFe: float or string
Alpha-element abundances. Defaults to “base” models. For BasTI isochrones, models can have alpha element abundances of 0 and +0.4.
- imfslope: float
Slope of the IMF. Defaults to 1.3.
- gradient(theta) [edit on github]¶
- plot(theta, ax=None, plottype=None, **kwargs) [edit on github]¶
Plot the model for a given set of parameters.