BaseExtModel

class dust_extinction.baseclasses.BaseExtModel(*args, meta=None, name=None, **kwargs)[source]

Bases: astropy.modeling.Model

Base Extinction Model. Do not use.

Attributes Summary

inputs
outputs

Methods Summary

__call__(self, x[, model_set_axis, …]) Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.
extinguish(self, x[, Av, Ebv]) Calculate the extinction as a fraction

Attributes Documentation

inputs = ('x',)
outputs = ('axav',)

Methods Documentation

__call__(self, x, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None)

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

extinguish(self, x, Av=None, Ebv=None)[source]

Calculate the extinction as a fraction

Parameters:
x: float

expects either x in units of wavelengths or frequency or assumes wavelengths in wavenumbers [1/micron]

internally wavenumbers are used

Av: float

A(V) value of dust column Av or Ebv must be set

Ebv: float

E(B-V) value of dust column Av or Ebv must be set

Returns:
frac_ext: np array (float)

fractional extinction as a function of x