CCM89

class paintbox.CCM89(wave, unit=None)[source] [edit on github]

Bases: paintbox.sed.PaintboxBase

Cardelli, Clayton and Mathis (1989) 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 (a(x) + b(x) / R_V\right )} \end{equation}

where \(x=1/\lambda\), \(a(x)\) and \(b(x)\) are fixed polynomials, \(A_V\) is the total extinction, and \(R_V\) is the total-to-selective extinction ratio.

Parameters
wave: numpy.ndarray, astropy.quantities.Quantity

Wavelength array

unit: str, optional

Units can be specified in the form of a string. Default is Angstrom. This parameter is only used if the input wavelength array is not an astropy.quantities.Quantity.

Attributes
parnames: list

Name of the free parameters (Av, Rv) of the extinction law.

Attributes Summary

parnames

List with names of the parameters of the model.

Methods Summary

__call__(theta)

Returns the dust screen model attenuation.

constrain_duplicates()

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.