Extinction¶
- class sedfitter.extinction.Extinction¶
Bases:
object
Attributes Summary
Methods Summary
from_file
(filename[, columns, wav_unit, ...])Read an extinction law from an ASCII file.
from_table
(table)get_av
(wav)Interpolate the Av at given wavelengths
to_table
()Attributes Documentation
- chi¶
- wav¶
Methods Documentation
- classmethod from_file(filename, columns=(0, 1), wav_unit=Unit('micron'), chi_unit=Unit('cm2 / g'))¶
Read an extinction law from an ASCII file.
This reads in two columns: the wavelength, and the opacity (in units of area per unit mass).
- classmethod from_table(table)¶
- get_av(wav)¶
Interpolate the Av at given wavelengths
- Parameters:
- wav
Quantity
The wavelengths at which to interpolate the visual extinction.
- wav
- to_table()¶