The signal to noise ratio is defined as:
Where, Ns is the total no. of source counts, Nb is the background flux per unit area, r is the box radius and FRAC(r) is the fraction of source counts which are contained within a circle of radius r. FRAC(r) is a function of the detector involved e.g. WFC, XRT and the distance of the source from the optical axis.S/N = Ns * FRAC(r) / SQRT( Ns * FRAC(r) + Nb * 2 * PI * r**2 )
RADOPT finds the maximum of this function by trying a series of increasing radii until a maximum is found.