Working with Filters

Python-FSPS provides simple access to FSPS’s filter set. To find what filters are available, use fsps.find_filter() or fsps.list_filters() (see also Table of FSPS Filters). fsps.get_filter() is used to get a fsps.filters.Filter instance, which in turn provides properties such as the filter’s transmission curve, Solar absolute magnitude, and effective wavelength.


>>> import fsps
>>> fsps.find_filter('sdss')
['sdss_u', 'sdss_g', 'sdss_i', 'sdss_r', 'sdss_z']
>>> g = fsps.get_filter('sdss_g')
>>> g.msun_ab
>>> g.lambda_eff

API Reference