rieke_unred

sofia_redux.spectroscopy.rieke_unred.rieke_unred(wave, flux, ebv, r_v=3.09, **kwargs)[source]

De-redden a flux vector.

The default reddening curve is that of Rieke & Lebofsky (1985 ApJ., 288, 618); see also the paper by Rieke, Rieke, & Paul (1989 ApJ, 336, 752) and is valid from 0.365 to 13 microns.

The reddening curve is output from extinction_model.ExtinctionModel. Please consult extinction_model documentation for additional models and optional keyword arguments.

Parameters:
wavefloat or array_like of float (shape)

Wavelength in Angstroms, for consistency with ccm_unred.

fluxfloat or array_like of float (shape)

Calibrated flux

ebvfloat, optional

Color excess E(B-V), scalar. If a negative EBV is supplied then fluxes will be reddened rather than de-reddened.

r_vfloat, optional

The ratio of total selective extinction R(V) = A(V) / E(B-V)

kwargsdict, optional

Optional keyword/values to pass into Extinction Model. Note That care must be taken to change ebv and r_v depending on the model used. The default is to use the ‘rieke1989` model.

Returns:
unred_fluxfloat or numpy.ndarray of float (shape)

The de-reddened flux.

Notes

For the ‘rieke1989’ model, r_v = 3.09 is recommended by Rieke et al. If r_v = 3.07, the Rieke curve will smoothly match the CCM curve at 3.3 microns.