ExtinctionModel

class sofia_redux.spectroscopy.extinction_model.ExtinctionModel(model='rieke1989', cval=nan, sigma=10.0, extrapolate=False)[source]

Bases: object

Extinction model for de-reddening spectra.

Set extinction model.

Parameters:
model{‘rieke1989’, ‘nishiyama2009’}

Model to use. Options are rieke1989_table and nishiyama2009_table.

cvalfloat, optional

Value to fill for missing data.

sigmafloat, optional

Spline fit tension.

extrapolatebool, optional

If set, missing values will be extrapolated. If not, they will be set to cval.

Methods Summary

__call__(wave)

Generate an extinction model for the given wavelength range.

nishiyama2009_table()

Nishiyama et al. 2009.

rieke1989_table()

Rieke, Rieke, & Paul (1989 ApJ, 336, 752)

Methods Documentation

__call__(wave)[source]

Generate an extinction model for the given wavelength range.

The extinction table is fit onto the wavelength range with a spline interpolation.

Parameters:
wavearray_like of float or float

Wavelength values to interpolate onto.

Returns:
array_like of float or float

Matches wave dimension and type.

static nishiyama2009_table()[source]

Nishiyama et al. 2009

static rieke1989_table()[source]

Rieke, Rieke, & Paul (1989 ApJ, 336, 752)