BaseExtAveModel¶
-
class
dust_extinction.baseclasses.
BaseExtAveModel
(*args, meta=None, name=None, **kwargs)[source]¶ Bases:
astropy.modeling.Model
Base Extinction Average. Do not use.
Attributes Summary
Methods Summary
__call__
(self, *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
(self, x[, Av, Ebv])Calculate the extinction as a fraction
Attributes Documentation
-
n_inputs
= 1¶
-
n_outputs
= 1¶
Methods Documentation
-
__call__
(self, *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
(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
-