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

Remove extinction from flux values.

This is a convenience function to “deredden” fluxes. It simply performs flux * 10**(0.4 * extinction): flux is increased (for positive extinction values).

extinction : numpy.ndarray (1-d)

Extinction in magnitudes.

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 removed.