Resample¶
- class paintbox.Resample(wave, obj)[source] [edit on github]¶
Bases:
paintbox.sed.PaintboxBaseResampling of SED model to a new wavelength dispersion.
The resample can be performed to arbitrary dispersions based on the ‘spectres <https://spectres.readthedocs.io/en/latest/>’_ package.
- Attributes
- parnames: list
List of parameter names.
- wave: numpy.ndarray, astropy.quantities.Quantity
Wavelength array.
- Parameters
- wave: ndarray, Quantity
New wavelength array of the SED model.
- obj: SED model
SED model to be resampled.
Attributes Summary
List with names of the parameters of the model.
Methods Summary
__call__(theta)Performs the resampling.
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)Calculation the the gradient of the resampled 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 the resampling.
- 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]¶
Calculation the the gradient of the resampled model.
- plot(theta, ax=None, plottype=None, **kwargs) [edit on github]¶
Plot the model for a given set of parameters.