ExtinctionLaw

class beast.physicsmodel.dust.extinction.ExtinctionLaw[source]

Bases: object

Extinction Law Template Class

Attributes:
name : string

Name identifying the extinction law

Methods Summary

__call__(self, \*args, \*\*kwargs) Call self as a function.
function(self, lamb, \*arg, \*\*kwargs) function to provide extinction curve given wavelength(s)
inFilter(self, names[, filterLib]) Calculates the extinction for a given filter band or filter color colors (e.g.
isvalid(self, \*args, \*\*kwargs) Check if the current arguments are in the validity domain of the law Must be redefined if any restriction applies to the law

Methods Documentation

__call__(self, *args, **kwargs)[source]

Call self as a function.

function(self, lamb, *arg, **kwargs)[source]

function to provide extinction curve given wavelength(s)

inFilter(self, names, filterLib=None, *args, **kwargs)[source]

Calculates the extinction for a given filter band or filter color colors (e.g. U, U-B …)

Parameters:
names: str or list(str) or list(filters)

filter names or filter instances to evaluate. a name can be a color such as ‘U-B’

filterLib: filepath

path to the filter library hd5 file (default is the internal library)

Returns:
r: float or ndarray(dtype=float)

attenuation value or array of values

isvalid(self, *args, **kwargs)[source]

Check if the current arguments are in the validity domain of the law Must be redefined if any restriction applies to the law