Index: /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c
===================================================================
--- /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c	(revision 29488)
+++ /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c	(revision 29489)
@@ -76,4 +76,5 @@
 
 // XXX masked region should be (optionally) elliptical
+// if mode is PM_SOURCE_PHOT_PSFONLY, we skip all other magnitudes
 bool pmSourceMagnitudes (pmSource *source, pmPSF *psf, pmSourcePhotometryMode mode, psImageMaskType maskVal, psImageMaskType markVal)
 {
@@ -117,4 +118,5 @@
     // measure PSF model photometry
     // XXX TEST: do not use flux scale
+    // XXX NOTE: turn this back on?
     if (0 && psf->FluxScale) {
         // the source peak pixel is guaranteed to be on the image, and only minimally different from the source center
@@ -128,4 +130,8 @@
         status = pmSourcePhotometryModel (&source->psfMag, &source->psfFlux, source->modelPSF);
         source->psfFluxErr = source->psfFlux * (source->modelPSF->dparams->data.F32[PM_PAR_I0] / source->modelPSF->params->data.F32[PM_PAR_I0]);
+    }
+
+    if (mode == PM_SOURCE_PHOT_PSFONLY) {
+	return true;
     }
 
Index: /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.h
===================================================================
--- /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.h	(revision 29488)
+++ /branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.h	(revision 29489)
@@ -35,4 +35,5 @@
     PM_SOURCE_PHOT_INTERP    = 0x0008,
     PM_SOURCE_PHOT_DIFFSTATS = 0x0010,
+    PM_SOURCE_PHOT_PSFONLY   = 0x0020,
 } pmSourcePhotometryMode;
 
