LOSVDConv

class paintbox.LOSVDConv(obj, losvdpars=None, vunit='km/s')[source] [edit on github]

Bases: paintbox.sed.PaintboxBase

Convolution of a SED model with the LOS Velocity Distribution.

This class allows the convolution of a SED model with the line–of-sight velocity distribution. This class requires that the input SED model has a logarithmic-scaled wavelength dispersion. Currently, this operation only supports LOSVDs with two moments (velocity and velocity dispersion).

Attributes
velscale: Quantity

Velocity scale of the wavelength array.

parnames: list

Updated list of parameters, including the input SED object parameter names and the LOSVD parameters.

wave: numpy.ndarray, astropy.quantities.Quantity

Wavelength array.

Parameters
obj: SED model

Input paintbox SED model to be convolved with the LOSVD.

losvdpars: list

Name of the LOSVD parameters appended to the input paranames. Defaults to [V, sigma].

vunit: str

Units used for velocity variables. Defaults to km/s.

Attributes Summary

parnames

List with names of the parameters of the model.

Methods Summary

__call__(theta)

Performs convolution of input model with LOSVD.

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 convolved model.

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]

Performs convolution of input model with LOSVD.

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 convolved model.

plot(theta, ax=None, plottype=None, **kwargs) [edit on github]

Plot the model for a given set of parameters.