Extinction

class sedfitter.extinction.Extinction

Bases: object

Attributes Summary

chi

wav

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).

Parameters:
filenamestr, optional

The name of the file to read the extinction law from

columnstuple or list, optional

The columns to use for the wavelength and opacity respectively

wav_unitUnit

The units to assume for the wavelength

chi_unitUnit

The units to assume for the opacity

classmethod from_table(table)
get_av(wav)

Interpolate the Av at given wavelengths

Parameters:
wavQuantity

The wavelengths at which to interpolate the visual extinction.

to_table()