flux_fraction_contaminant¶
- tessilator.contaminants.flux_fraction_contaminant(ang_sep, s, d_th=5e-06)[source]¶
Quantify the flux contamination from a neighbouring source.
Calculates the fraction of flux from a neighbouring contaminating source that gets scattered into the aperture. The analytic function uses equation 3b-10 from Biser & Millman (1965), which is a double converging sum with infinite limits, given by
\[f_{\rm bg} = e^{-t} \sum_{n=0}^{n\to{\infty}} {\Bigg\{\frac{t^{n}}{n!}\bigg[1-e^{-s}\sum_{k=0}^{n}{\frac{s^{k}}{k!}}} \bigg]\Bigg\}\]To solve the equation computationally, the summation terminates once the difference from the nth iteration is less than a given threshold value.
- Parameters:
- Returns:
- frac_flux_in_aperture
float Fraction of contaminant flux that gets scattered into the aperture.
- frac_flux_in_aperture