aesthetics

pydl.pydlspec2d.spec2d.aesthetics(flux, invvar, method='traditional')[source]

Add nice values to a spectrum where it is masked.

Parameters
fluxnumpy.ndarray

The spectrum to clean up.

invvarnumpy.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
numpy.ndarray

A cleaned-up spectrum.