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

The number of inputs.

n_outputs

The number of outputs.

Methods Summary

__call__(*inputs[, model_set_axis, ...])

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

The number of inputs.

n_outputs = 1

The number of outputs.

Methods Documentation

__call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

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