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
speclitefilters, if bandpasses other than those provided in the module already are required. Currently, this generates a temporaryspeclite.filters.FilterResponseobject that can be loaded using the standardspeclitesyntax ofgroup_name-band_name.- Parameters:
- group_namestring
The overall name to be given to the set of filters being generated. For example,
speclitecurrently providesdss2010.- filter_nameslist of string
The individual names of each filter to be generated. For the above example of
sdss2010,filter_nameswould 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_listitem. Each element in the list should also match an entry infilter_names.- wavelength_unit
astropy.units.Unitobject The relevant
astropyunit (e.g.,u.micron,u.angstrom) for the units allwavelength_listentries are given in. All response curves currently have to be in common units.