C2000¶
- class paintbox.C2000(wave, unit=None)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseCalzetti et al. (2000) extinction law.
The extinction laws are calculated using a dust screen model, returning the ratio
\begin{equation} \frac{f_\lambda}{f_\lambda^0}= 10^{-0.4 A_V \left (1 + \kappa_\lambda / R_V\right )} \end{equation}- Parameters
- wave: numpy.ndarray, astropy.quantities.Quantity
Wavelength array
- unit: str, optional
Units can be specified in the form of a string. Defalt is Angstrom.
Attributes Summary
List with names of the parameters of the model.
Methods Summary
__call__(theta)Returns the dust screen model attenuation.
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)Gradient of the extinction law.
plot(theta[, ax, plottype])Plot the model for a given set of parameters.
Attributes Documentation
- parnames¶
List with names of the parameters of the model.
Methods Documentation
- __call__(theta)[source] [edit on github]¶
Returns the dust screen model attenuation.
- Parameters
- theta: numpy.ndarray
Array with values of Av and Rv.
- 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)[source] [edit on github]¶
Gradient of the extinction law.
- Parameters
- theta: numpy.ndarray
Array with values of Av and Rv.
- plot(theta, ax=None, plottype=None, **kwargs) [edit on github]¶
Plot the model for a given set of parameters.