generate_speclite_filters

macauff.generate_speclite_filters(group_name, filter_names, wavelength_list, response_list, wavelength_unit)[source]

Convenience function to create a new set of speclite filters, if bandpasses other than those provided in the module already are required. Currently, this generates a temporary speclite.filters.FilterResponse object that can be loaded using the standard speclite syntax of group_name-band_name.

Parameters:
group_namestring

The overall name to be given to the set of filters being generated. For example, speclite currently provide sdss2010.

filter_nameslist of string

The individual names of each filter to be generated. For the above example of sdss2010, filter_names would be [u, g, r, i, z].

wavelength_listlist of numpy.ndarray

The wavelengths of the filter response curves being loaded, corresponding to each entry in filter_names.

response_listlist of numpy.ndarray

The response curve values of the filters, for each wavelength_list item. Each element in the list should also match an entry in filter_names.

wavelength_unitastropy.units.Unit object

The relevant astropy unit (e.g., u.micron, u.angstrom) for the units all wavelength_list entries are given in. All response curves currently have to be in common units.