Index: /branches/eam_branches/20100225/psphot/src/psphotSourceSize.c
===================================================================
--- /branches/eam_branches/20100225/psphot/src/psphotSourceSize.c	(revision 27506)
+++ /branches/eam_branches/20100225/psphot/src/psphotSourceSize.c	(revision 27507)
@@ -14,4 +14,5 @@
     int grow;
     int xtest, ytest;
+    bool apply; // apply CR mask?
 } psphotSourceSizeOptions;
 
@@ -118,4 +119,10 @@
         psWarning("PSPHOT.CR.NSIGMA.SOFTEN not set; defaulting to zero.");
         options.soft = 0.0;
+    }
+
+    options.apply = psMetadataLookupBool(&status, recipe, "PSPHOT.CRMASK.APPLY"); // Growth size for CRs
+    if (!status) {
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "PSPHOT.CRMASK.APPLY is not defined.");
+        return false;
     }
 
@@ -463,5 +470,9 @@
 	// XXX this is running slowly and is too agressive, but it more-or-less works
 	psTrace("psphot", 6, "mask cosmic ray at %f, %f\n", source->peak->xf, source->peak->yf);
-	psphotMaskCosmicRay(readout, source, options->crMask);
+	if (options->apply) {
+	    psphotMaskCosmicRay(readout, source, options->crMask);
+	} else {
+	    source->mode |= PM_SOURCE_MODE_CR_LIMIT;
+	}
 	nMasked ++;
 
