CvD18¶
- class paintbox.CvD18(wave=None, libpath=None, sigma=100, store=None, elements=None, norm=True)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseUtility class for the use of CvD models.
This class provides a convenience
paintboxinterface to CvD models, producing a callable object that can be used together with other classes to produce more detailed SED models.The CvD model files require pre-processing for use with
paintbox, which may require an initial overhead of ~one minute, but the processed files can be reused for several files / runs if necessary it models are stored in disk.- Parameters
- wave: ndarray, astropy.units.Quantity
Wavelength array of the model.
- libpath: str
Path to the locations where CvD18 models are stored.
- sigma: float
Velocity dispersion of the output in km/s. Default is 100 km/s (the minimum velocity dispersion allowed).
- store: str
Directory where processed models are stored for reuse. If models are not found within store, models in the libpath are processed for use, and stored in this directory.
- elements: list
Chemical abundances to be included in the model. Available elements are ‘Ba’, ‘C’, ‘Ca’, ‘Co’, ‘Cr’, ‘Cu’, ‘Eu’, ‘Fe’, ‘K’, ‘Mg’, ‘Mn’, ‘N’, ‘Na’, ‘Ni’, ‘Si’, ‘Sr’, ‘T’, ‘Ti’, ‘V’, ‘a/Fe’, ‘as/Fe’. Default is to use all elements except T (temperature of hot star) and ‘a/Fe’.
- norm: bool
Normalize the flux of the processed models to the median. Default is True.
Attributes Summary
Lower and upper limits of the model parameters.
List with names of the parameters of the model.
Dictionary with all response functions in model.
Methods Summary
__call__(theta)Returns a model for a given set of parameters theta.
Build model with paintbox SED methods.
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.
gradient(theta)plot(theta[, ax, plottype])Plot the model for a given set of parameters.
Prepare response functions from CvD models.
Process SSP models.
set_wave(wave)Attributes Documentation
- limits¶
Lower and upper limits of the model parameters.
- parnames¶
List with names of the parameters of the model.
- response_functions¶
Dictionary with all response functions in model.
Methods Documentation
- __call__(theta)[source] [edit on github]¶
Returns a model for a given set of parameters theta.
- build_model()[source] [edit on github]¶
Build model with paintbox SED methods.
- 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.
- gradient(theta) [edit on github]¶
- load_templates()[source] [edit on github]¶
- plot(theta, ax=None, plottype=None, **kwargs) [edit on github]¶
Plot the model for a given set of parameters.
- process_respfun()[source] [edit on github]¶
Prepare response functions from CvD models.
- process_ssps()[source] [edit on github]¶
Process SSP models.
- save_templates()[source] [edit on github]¶
- set_wave(wave)[source] [edit on github]¶