extinction.Fitzpatrick99

class extinction.Fitzpatrick99

Fitzpatrick (1999) dust extinction function for arbitrary R_V.

An instance of this class is a callable that can be used as f(wave, a_v) where wave is a 1-d array of wavelengths and a_v is a scalar value.

Parameters:
r_v : float, optional

R_V value. Default is 3.1.

Examples

Create a callable that gives the extinction law for a given r_v and use it:

>>> f = Fitzpatrick99(3.1)
>>> f(np.array([3000., 4000.]), 1.)
array([ 1.79939955,  1.42338583])
__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

Attributes

r_v