extinction.apply(extinction, flux, inplace=False)

Apply extinction to flux values.

This is a convenience function to perform “reddening” of flux values. It simply performs flux * 10**(-0.4 * extinction): flux is decreased (for positive extinction values).

extinction : numpy.ndarray (1-d)

Extinction in magnitudes. (Positive extinction values decrease flux values.)

flux : numpy.ndarray

Flux values.

inplace : bool, optional

Whether to perform the operation in-place on the flux array. If True, the return value is a reference to the input flux array.

new_flux : numpy.ndarray (1-d)

Flux values with extinction applied.