Filter

class kelp.Filter(wavelength, transmittance, name=None)[source] [edit on github]

Bases: object

Astronomical filter object.

Parameters:
wavelengthndarray

Wavelength array

transmittancendarray

Transmittance array

Methods Summary

bin_down([bins])

Bin down the filter bandpass wavelengths and transmittances (shortcut for faster integration over the bandpass).

from_name(name)

Initialize a Filter instance from the filter name.

plot([ax])

Plot the filter transmittance curve.

Methods Documentation

bin_down(bins=10)[source] [edit on github]

Bin down the filter bandpass wavelengths and transmittances (shortcut for faster integration over the bandpass).

Parameters:
binsint

Number of bins in the binned transmittance curve.

classmethod from_name(name)[source] [edit on github]

Initialize a Filter instance from the filter name.

Parameters:
namestr

Name of the filter. Examples include “IRAC 1”, “IRAC 2”, “Kepler”, “TESS”, and “CHEOPS”.

plot(ax=None, **kwargs)[source] [edit on github]

Plot the filter transmittance curve.

Parameters:
axAxes

Matplotlib axis object

kwargsdict

Dictionary passed to the plot command

Returns:
axAxes

Updated axis object