BaseAttModel

class dust_attenuation.baseclasses.BaseAttModel[source]

Bases: astropy.modeling.Fittable1DModel

Base Attenuation Model. Do not use.

Attributes Summary

inputs
outputs

Methods Summary

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

Attributes Documentation

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

Methods Documentation

__call__(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.

attenuate(x)[source]

Calculate the attenuation as a fraction

Parameters:
x: float

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

internally microns are used

Returns:
frac_att: np array (float)

fractional attenuation as a function of x