Methods for generating a customized spectral profile, which can be used to
generate a corresponding filter. A trial source spectrum is generated. An
uncorrected lamp source spectrum is determined. One or more optical
indices are calculated using the trial source spectrum or the uncorrected
lamp source spectrum, and one or more of the optical indices are
optimized by varying the trial source spectrum to generate the customized
spectral profile.