BaseExtModel

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

Bases: Model

Base Extinction Model. Do not use directly.

Attributes Summary

n_inputs

n_outputs

Methods Summary

__call__

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

extinguish(x[, Av, Ebv])

Calculate the extinction as a fraction

Attributes Documentation

n_inputs = 1
n_outputs = 1

Methods Documentation

__call__()

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

extinguish(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