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