FilterDefinition

class eazy.filters.FilterDefinition(name=None, wave=None, throughput=None, bp=None, photon_counter=True)[source]

Bases: object

Bandpass object

Parameters:
namestr

Label name

wavearray

Wavelength array, in astropy.units.Angstrom.

throughputarray

Throughput, arbitrary normalization

bpoptional, pysynphot.obsbandpass object

pysynphot filter bandpass

photon_counterbool

Filter is associated with a photon-counting detector (e.g. CCDs). Often FIR devices are energy-counting, e.g., MIPS, Herschel.

Attributes Summary

ABVega

Compute AB-Vega conversion

ctw95

95% cumulative throughput width

equivwidth

Filter equivalent width

pivot

Pivot wavelength

rectwidth

Filter rectangular width

Methods Summary

extinction_correction(EBV[, Rv, mag, ...])

Get the MW extinction correction within the filter.

for_filter_file([row_str])

Return a string that can be put in the EAZY filter file

get_extinction([EBV, Rv])

Extinction factor

set_throughput()

Set throughput accounting for photon_counter attribute

Attributes Documentation

ABVega

Compute AB-Vega conversion

ctw95

95% cumulative throughput width

http://www.stsci.edu/hst/acs/analysis/bandwidths/#keywords

equivwidth

Filter equivalent width

http://pysynphot.readthedocs.io/en/latest/properties.html

pivot

Pivot wavelength

http://pysynphot.readthedocs.io/en/latest/properties.html

rectwidth

Filter rectangular width

http://pysynphot.readthedocs.io/en/latest/properties.html

Methods Documentation

extinction_correction(EBV, Rv=3.1, mag=True, source_lam=None, source_flux=None)[source]

Get the MW extinction correction within the filter.

Optionally supply a source spectrum.

for_filter_file(row_str='{i:6} {wave:.5e} {thru:.5e}')[source]

Return a string that can be put in the EAZY filter file

get_extinction(EBV=0, Rv=3.1)[source]

Extinction factor

set_throughput()[source]

Set throughput accounting for photon_counter attribute