Index: /branches/eam_branches/ipp-20120805/ippconfig/gpc1/psphot.config
===================================================================
--- /branches/eam_branches/ipp-20120805/ippconfig/gpc1/psphot.config	(revision 34396)
+++ /branches/eam_branches/ipp-20120805/ippconfig/gpc1/psphot.config	(revision 34397)
@@ -19,6 +19,9 @@
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL              	 	    STR   PS_MODEL_PS1_V1
+# vector of simga values to use in when setting the moments window (this is shorter for gpc1 than
+# the psphot default)
+@PSF.SIGMA.VALUES                   F32   1.0  2.0  3.0  4.5  6.0  9.0 # comment due to ticket #1476
+
 PSPHOT.CR.NSIGMA.SOFTEN             F32   0.0025        # Softening parameter for weights in CR stat
-
 PSPHOT.CR.MAX.SIZE                  F32   0.8             # guess for limit on M_minor in pix^2
 PSPHOT.CR.MAX.MAG                   F32  -8.0             # guess for limit on Kron Mag
Index: /branches/eam_branches/ipp-20120805/ippconfig/recipes/psastro.config
===================================================================
--- /branches/eam_branches/ipp-20120805/ippconfig/recipes/psastro.config	(revision 34396)
+++ /branches/eam_branches/ipp-20120805/ippconfig/recipes/psastro.config	(revision 34397)
@@ -167,4 +167,8 @@
 CROSSTALK_MASK       BOOL FALSE
 
+# report and reject stars with reported magnitudes less than this value. These non physical
+# magnitudes are errors in the reference catalog (this value is sky magnitude, not instrumental)
+REFSTAR_CLAMP_MAG_MIN           F32 -3.0
+
 EXTRACT_MAX_MAG                 F32 -15.0
 
Index: /branches/eam_branches/ipp-20120805/ippconfig/recipes/psphot.config
===================================================================
--- /branches/eam_branches/ipp-20120805/ippconfig/recipes/psphot.config	(revision 34396)
+++ /branches/eam_branches/ipp-20120805/ippconfig/recipes/psphot.config	(revision 34397)
@@ -122,4 +122,6 @@
 PSF_MODEL                           STR   PS_MODEL_GAUSS
 # PSF_MODEL                         STR   PS_MODEL_PGAUSS
+# sigma values used by psphotSetMomentsWindow. Maximum length of this array is 8
+@PSF.SIGMA.VALUES                   F32   1.0  2.0  3.0  4.5  6.0  9.0  12.0  18.0 # comment due to ticket #1476
 
 # PSF.TREND.MASK must be a 2D polynomial
@@ -364,4 +366,30 @@
 PSPHOT.STACK.SPLIT.LINEAR.FIT       BOOL  T    # require positive flux for pass 3 linear fit then fit matched sources separately
 
+# psphotStack source matching parameters
+PSPHOT.STACK.MIN.DETECT.FOR.FORCED  S32   2   # number of bands that an object must be detected in before creating
+                                              # sources in undetected bands
+                                              
+# PSPHOT.STACK.MATCH.FILTER
+# list of metadata to control how source matching is performed for each band
+# FILTER.ID is used to match to the FPA's concept value FPA.FILTERID
+# ORDER controls the order in which the bands are processed. Lower numbers are processed first.
+#       The intent is to process in order of sensitivity
+# MATCH.ALL if true causes forced photometry sources for objects detected in that band but don't meet 
+#       the minimum number of detections cut
+# TYPE is used in the recipe bookkeeping and has no semantic (but must be unique)
+# Note: if an input has a filter not in this list it will be processed after all of the others with MATCH.ALL = FALSE
+PSPHOT.STACK.MATCH.FILTERS   METADATA
+    TYPE        PSPHOT_STACK.MATCH.FILTER FILTER.ID ORDER MATCH.ALL
+    gband       PSPHOT_STACK.MATCH.FILTER   g        4       FALSE
+    rband       PSPHOT_STACK.MATCH.FILTER   r        2       FALSE
+    iband       PSPHOT_STACK.MATCH.FILTER   i        1       FALSE
+    zband       PSPHOT_STACK.MATCH.FILTER   z        3       FALSE
+    yband       PSPHOT_STACK.MATCH.FILTER   y        5       TRUE
+    wband       PSPHOT_STACK.MATCH.FILTER   w        0       FALSE
+END
+
+# if true keep all matched sources, even if we get a non-finite aperture flux measurement
+PSPHOT.STACK.KEEP.BAD.MATCHES  BOOL     F
+
 RADIAL_APERTURES                    BOOL  F    # calculate flux in circular radial apertures?
 RADIAL_APERTURES_SN_LIM             F32   0.0  # S/N limit for radial aperture calculation
@@ -537,6 +565,16 @@
   DIFF_STATS			    BOOL TRUE	       # Calculate diff-specific stats
   OUTPUT.FORMAT		            STR  PS1_DV2       # Format of output file
-END
-
+
+  # Extended source fit parameters
+  # these models are used for high-quality shape analysis after all sources have been removed
+  EXTENDED_SOURCE_FITS                BOOL  TRUE  # perform the detailed extended sourc fits?
+  EXT_MODEL                           STR   PS_MODEL_TRAIL
+
+  # extended source models applied to sources
+  EXTENDED_SOURCE_MODELS METADATA 
+    TYPE      EXTENDED_SOURCE_MODEL  MODEL            SNLIM   PSF_CONVOLVED
+    TRAIL_RAW EXTENDED_SOURCE_MODEL  PS_MODEL_TRAIL    10.0   FALSE
+  END
+END
 
 # Recipe overrides for PR reduction
Index: /branches/eam_branches/ipp-20120805/ippconfig/recipes/pstamp.config
===================================================================
--- /branches/eam_branches/ipp-20120805/ippconfig/recipes/pstamp.config	(revision 34396)
+++ /branches/eam_branches/ipp-20120805/ippconfig/recipes/pstamp.config	(revision 34397)
@@ -14,6 +14,5 @@
 DATA_GROUP  STR	 czw.SAS2.20120718
 
-DATA_GROUP  STR	 MD01.refstack.20110820
-DATA_GROUP  STR	 MD01.GR0%
+DATA_GROUP  STR	 MD01.refstack.20120803
 
 DATA_GROUP  STR	 MD02.refstack.20110907
