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__
(…) <==> x(…)function
(lamb, *arg, **kwargs)function to provide extinction curve given wavelength(s) inFilter
(names[, filterLib])Calculates the extinction for a given filter band or filter color colors (e.g. isvalid
(*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
-
inFilter
(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
-