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.
Methods Summary
__call__(theta)Performs the resampling.
gradient(theta)Calculation the the gradient of the resampled model.
Methods Documentation
- __call__(theta)[source] [edit on github]¶
Performs the resampling.
- gradient(theta)[source] [edit on github]¶
Calculation the the gradient of the resampled model.