milespy.filter.Filter

class milespy.filter.Filter(fname)

Bases: object

Filter information

wave

Wavelength range of the filter

Type:

array

trans

Transmissivity for each wavelength

Type:

array

name

Name of the filter

Type:

str

Methods

plot(ax)

Plot the filter transmissivity

__init__(fname)

Create a filter from the name in the database.

This reads the information from the configuration files, so the name should match with a given existing file. This can be easily accomplished with milespy.filter.search().

Parameters:

fname (str) – Name of the filter to be loaded

plot(ax)

Plot the filter transmissivity

Parameters:

ax (matplotlib.Axes) – Axes where the plot is drawn

Return type:

None