aesthetics¶
-
pydl.pydlspec2d.spec2d.
aesthetics
(flux, invvar, method='traditional')[source]¶ Add nice values to a spectrum where it is masked.
Parameters: - flux :
numpy.ndarray
The spectrum to clean up.
- invvar :
numpy.ndarray
Inverse variance of the spectrum.
- method : { ‘traditional’, ‘noconst’, ‘mean’, ‘damp’, ‘nothing’ }, optional
Apply this method to clean up the spectrum. Default is ‘traditional’.
Returns: - :class:`numpy.ndarray`
A cleaned-up spectrum.
- flux :