Adding new filters - GabrielaCR/AGNfitter GitHub Wiki

To manually add new filters, please follow these steps:

  1. Add the transmission curve file of the filter to models/FILTERS/(telescope)/(bandfiles).

  2. In DICTIONARIES_AGNfitter.py you go to after line 238, filter_dictionaries(filterset, path, filters). There you add the new filters following this format. Example:

    UK1band_file = path + 'models/FILTERS/UKIDDS/filter1.txt' UK1band_lambda, UK1band_factor = np.loadtxt(UK1band_file, usecols=(0,1),unpack= True)

And then go to after line 436 (if filter set=='BANDSET_settings') and create a dictionary key for you filter. Example:

if filters['UKIDSS_key1']:
        files.append(UK1band_file)
        lambdas.append(UK1band_lambda)
        factors.append(UK1band_factor)
  1. Then finally, in your SETTINGS_AGNfitter.py file you can add your new filters with the respective keys to the function 'def FILTERS_settings()'. Example:

    filters['UKIDSS_key1']= True

We are currently working on functions to add new filters from the settings file alone. This will be soon available in the next version of the code.