If you are going to be using the optimal extraction features of PHOTOM then it is recommended that you should read the MNRAS paper “An optimal extraction algorithm for imaging photometry” (MNRAS, 1998, 296, 339) which discusses this algorithm in depth. However, a brief discussion of the algorithim is given later in appendix C.