Index: /branches/eam_branches/ipp-20130904/psphot/src/psphotPetroFlux.c
===================================================================
--- /branches/eam_branches/ipp-20130904/psphot/src/psphotPetroFlux.c	(revision 36211)
+++ /branches/eam_branches/ipp-20130904/psphot/src/psphotPetroFlux.c	(revision 36212)
@@ -19,4 +19,6 @@
     int chisqNum = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.CHISQ.NUM");
     if (!status) chisqNum = -1;
+
+    psMetadataAddBool (recipe, PS_LIST_TAIL, "EXTENDED_SOURCE_ANALYSIS", PS_META_REPLACE, "we measured this, save to disk", true);
 
     // loop over the available readouts
@@ -149,4 +151,5 @@
 	pmSource *source = sources->data[i];
 	if (!source->peak) continue; // XXX how can we have a peak-less source?
+	if (!source->extpars) continue; // if this is not set, we did not have a valid petRadius
 
 	// check status of this source's moments
@@ -251,6 +254,6 @@
     source->extpars->petrosianFill = nPetroPix / (M_PI * radPetro2);
 
-    fprintf (stderr, "petro flux: %f +/- %f\n", Sum, sqrt(Var));
-
-    return true;
-}
+    // fprintf (stderr, "petro flux: %f +/- %f\n", Sum, sqrt(Var));
+
+    return true;
+}
