Index: /branches/eam_branches/ipp-20120627/ippconfig/gpc1/psastro.config
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/gpc1/psastro.config	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/gpc1/psastro.config	(revision 34248)
@@ -375,2 +375,42 @@
    PSASTRO.CATDIR		STR /data/ipp064.0/ipp/ippRefs/catdir.refcat.20120524.v0
 END
+
+STATICSKY_TESTCAL   METADATA
+   REFSTAR_MASK                BOOL FALSE
+   PSASTRO.SAVE.REFMATCH       BOOL FALSE
+   PSASTRO.FIX.CHIPS           BOOL FALSE
+   PSASTRO.USE.MODEL           BOOL FALSE
+   PSASTRO.MOSAIC.MODE         BOOL FALSE
+
+   PSASTRO.CATDIR               	STR     PS1.REF.20120524
+   ZERO.POINT.USE.MEAN          	BOOL    TRUE
+   PSASTRO.MAX.NRAW 			S32	0 
+   PSASTRO.GRID.NRAW.MAX 		S32	50000 
+   PSASTRO.MIN.INST.MAG.RAW 		F32	-21.0
+   PSASTRO.MAX.INST.MAG.RAW 		F32	-15.0 
+   PSASTRO.GRID.MIN.INST.MAG.RAW 	F32	-21.0 
+   PSASTRO.GRID.MAX.INST.MAG.RAW 	F32	-15.0  
+   DVO.GETSTAR.MIN.MAG.INST 		F32	-14.0
+END
+
+# initial setup for MD@100 inputs, should work for 50-500 input
+STATICSKY_DEEPCAL   METADATA
+   REFSTAR_MASK                BOOL FALSE
+   PSASTRO.SAVE.REFMATCH       BOOL FALSE
+   PSASTRO.FIX.CHIPS           BOOL FALSE
+   PSASTRO.USE.MODEL           BOOL FALSE
+   PSASTRO.MOSAIC.MODE         BOOL FALSE
+
+   PSASTRO.CATDIR                       STR     PS1.REF.20120524
+   ZERO.POINT.USE.MEAN                  BOOL    TRUE
+   PSASTRO.MAX.NRAW                     S32     0
+   PSASTRO.MAX.NREF            		S32     10000
+   PSASTRO.GRID.NRAW.MAX                S32     2000
+   PSASTRO.GRID.NREF.MAX  		S32     2000
+   PSASTRO.MIN.INST.MAG.RAW             F32     -20.0
+   PSASTRO.MAX.INST.MAG.RAW             F32     -15.0
+   PSASTRO.GRID.MIN.INST.MAG.RAW        F32     -20.0
+   PSASTRO.GRID.MAX.INST.MAG.RAW        F32     -15.0
+   DVO.GETSTAR.MIN.MAG.INST             F32     -13.0
+END
+
Index: /branches/eam_branches/ipp-20120627/ippconfig/recipes/Makefile.am
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/recipes/Makefile.am	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/recipes/Makefile.am	(revision 34248)
@@ -32,5 +32,6 @@
 	ppVizPSF.mdc \
 	nightly_science.config \
-	ppBackground.mdc
+	ppBackground.mdc \
+	pstamp.config
 
 install_DATA = $(install_files)
Index: /branches/eam_branches/ipp-20120627/ippconfig/recipes/psastro.config
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/recipes/psastro.config	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/recipes/psastro.config	(revision 34248)
@@ -270,2 +270,9 @@
     PSASTRO.MOSAIC.MODE         BOOL FALSE
 END
+
+STATICSKY_TESTCAL   METADATA
+END
+
+STATICSKY_DEEPCAL   METADATA
+END
+
Index: /branches/eam_branches/ipp-20120627/ippconfig/recipes/psphot.config
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/recipes/psphot.config	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/recipes/psphot.config	(revision 34248)
@@ -69,4 +69,5 @@
 FOOTPRINT_CULL_NSIGMA_PAD           F32   0.01       	  # Fractional Padding for stdev
 FOOTPRINT_USE_UNSUBTRACTED          BOOL  TRUE            # find footprints without sources subtracted
+FOOTPRINT_SET_NANS_TO_ZERO          BOOL  FALSE           # set nan pixels in smoothed image to zero when culling peaks
 
 # parameter for the simple deblending
@@ -233,4 +234,11 @@
 @RADIAL.ANNULAR.BINS.UPPER           F32      0.96 2.72 4.16 7.04 12.0 18.56 29.76 45.68 72.80 112.80 176.88 # perl parser fails without a comment ticket #1476 still?
 
+# In very dense fields it doesn't make sense to measure out to large radial apertures.
+# If the number of sources is above RADIAL.CUT.RADIUS.NUM.SOURCES.LIMIT 
+# bins with     RADIAL.ANNULAR.BINS.UPPER > RADIAL.SOURCES.OVER.LIMIT.RADIUS
+# will be removed from the recipe. (Note this is currently only used in psphotStack).
+RADIAL.NUM.SOURCES.LIMIT            S32         50000
+RAIDAL.SOURCES.OVER.LIMIT.RADIUS    F32         20.0    # pixels
+
 # Extended source fit parameters
 EXTENDED_TEST                       METADATA
@@ -275,5 +283,5 @@
 
 # psphotFitSourcesLinear has 3 options for the weighting: CONSTANT,
-# IMAGE_VAR, MODEL_VA the first of these used to be folded into the
+# IMAGE_VAR, MODEL_VAR the first of these used to be folded into the
 # boolean CONSTANT_PHOTOMETRIC_WEIGHTS above.
 LINEAR_FIT_VARIANCE_MODE	    STR  CONSTANT
@@ -341,4 +349,5 @@
 PSPHOT.CR.MAX.MAG		    F32   0		  # guess for limit on Kron Mag
 PSPHOT.CR.AUTOSCALE		    BOOL  FALSE
+PSPHOT.CR.MAX.WINDOW                S32   50              # maximum window to seach for cosmic rays
 
 # Detection efficiency
@@ -353,4 +362,5 @@
 @PSPHOT.STACK.TARGET.PSF.FWHM       F32   6.0 8.0 # FWHM of target PSF (if NOT AUTO sized; pixels)
 PSPHOT.STACK.USE.RAW                BOOL  T
+PSPHOT.STACK.SPLIT.LINEAR.FIT       BOOL  T    # require positive flux for pass 3 sources then fit matched sources 
 
 RADIAL_APERTURES                    BOOL  F    # calculate flux in circular radial apertures?
@@ -382,5 +392,5 @@
   PSF_MODEL                           STR   PS_MODEL_PS1_V1 
   EXT_MODEL                           STR   PS_MODEL_QGAUSS
-  PEAKS_NMAX_TOTAL                    S32   50000 # maximum allowed number of peaks - To avoid memory explosion
+  PEAKS_NMAX_TOTAL                    S32   0 # set this to limit the allowed number of peaks - Yields fault instead of avoid memory explosion
 END
 
@@ -518,6 +528,6 @@
   # 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
+    TYPE      EXTENDED_SOURCE_MODEL  MODEL            SNLIM   PSF_CONVOLVED
+    TRAIL_RAW EXTENDED_SOURCE_MODEL  PS_MODEL_TRAIL    10.0   FALSE
   END
 END
Index: /branches/eam_branches/ipp-20120627/ippconfig/recipes/pstamp.config
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/recipes/pstamp.config	(revision 34248)
+++ /branches/eam_branches/ipp-20120627/ippconfig/recipes/pstamp.config	(revision 34248)
@@ -0,0 +1,46 @@
+# pstamp.config
+# List of data groups to use for bycoord and byskycell requests that
+# do not specify a data_group.
+# Notable for their absence are the data_groups for MD nightly science,
+# M31, and STS. Due to the nature of those surveys too much data is
+# returned.
+
+DATA_GROUP  MULTI
+
+DATA_GROUP  STR	 LAP.ThreePi.20%
+DATA_GROUP  STR	 ThreePi.20%            # ThreePi nightly science
+
+# this is SAS_v8
+DATA_GROUP  STR	 czw.SAS2.20120718
+
+DATA_GROUP  STR	 MD01.refstack.20110820
+DATA_GROUP  STR	 MD01.GR0%
+
+DATA_GROUP  STR	 MD02.refstack.20110907
+DATA_GROUP  STR	 MD02.GR0%
+
+DATA_GROUP  STR	 MD03.refstack.20111010
+DATA_GROUP  STR	 MD03.GR0%
+
+DATA_GROUP  STR	 MD04.refstack.20111012
+DATA_GROUP  STR	 MD04.GR0%
+
+DATA_GROUP  STR	 MD05.refstack.20111014
+DATA_GROUP  STR	 MD05.GR0%
+
+DATA_GROUP  STR	 MD06.refstack.20111122
+DATA_GROUP  STR	 condor_MD06.V3_01_dg
+
+DATA_GROUP  STR	 MD07.refstack.20111106
+DATA_GROUP  STR	 condor_MD07.V3_01_dg
+
+DATA_GROUP  STR	 MD08.refstack.20120422
+DATA_GROUP  STR	 MD08.GR0%
+
+DATA_GROUP  STR	 MD09.refstack.20120603
+DATA_GROUP  STR	 MD09.GR0%
+
+DATA_GROUP  STR	 MD10.refstack.20120705
+
+DATA_GROUP  STR  %SS.20%                # Sweet Spot nightly science
+
Index: /branches/eam_branches/ipp-20120627/ippconfig/recipes/reductionClasses.mdc
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/recipes/reductionClasses.mdc	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/recipes/reductionClasses.mdc	(revision 34248)
@@ -498,7 +498,9 @@
 # deep stacks
 DEEP_STACK            METADATA
-      STACK_PPSTACK   STR      STACK_DEEP
-      STACK_PPSUB     STR      STACK
-      STACK_PSPHOT    STR      STACK
+      STACK_PPSTACK   	      STR     STACK_DEEP
+      STACK_PPSUB     	      STR     STACK
+      STACK_PSPHOT    	      STR     STACK
+      STACKPHOT_PSPHOT        STR     STACKPHOT
+      STATICSKY_CALIBRATION   STR     STATICSKY_DEEPCAL	
 END
 
Index: /branches/eam_branches/ipp-20120627/ippconfig/system.config
===================================================================
--- /branches/eam_branches/ipp-20120627/ippconfig/system.config	(revision 34247)
+++ /branches/eam_branches/ipp-20120627/ippconfig/system.config	(revision 34248)
@@ -63,3 +63,4 @@
 	PPBACKGROUND	STR		recipes/ppBackground.mdc       # Background restoration
         PSVIDEOPHOT	STR		recipes/psvideophot.config # video cell photometry
+        PSTAMP          STR             recipes/pstamp.config       # postage stamp server
 END
