Index: /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config	(revision 25622)
+++ /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config	(revision 25623)
@@ -3,9 +3,8 @@
 SAVE.OUTPUT	BOOL 	TRUE
 SAVE.BACKMDL	BOOL 	TRUE
+SAVE.BACKGND	BOOL 	TRUE 
+SAVE.BACKSUB	BOOL 	TRUE 
 SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS     	BOOL    TRUE
-
-# for testing:
-# BREAK_POINT STR BACKMDL
 
 BACKGROUND.XBIN	    S32  256            # size of background superpixels
@@ -16,4 +15,8 @@
 SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
 SKY_CLIP_SIGMA      F32  2.0             # statistic used to measure background
+
+# soften the errors for bright pixels:
+SOFTEN.VARIANCE                     BOOL  TRUE
+SOFTEN.VARIANCE.FRACTION            F32   0.005
 
 PEAKS_SMOOTH_SIGMA  F32   2.5            # smoothing kernel sigma in pixels
@@ -29,5 +32,9 @@
 PSF_CLUMP_GRID_SCALE F32 2.5		# size of Sx,Sy image pixel
 
-PSF.RESIDUALS       BOOL  TRUE            # generate the residuals?
+PSF.RESIDUALS         BOOL  TRUE            # generate the residuals?
+PSF.RESIDUALS.PIX.SN   F32   0.0             # keep this pixel if residual is more significant than this
+PSF.RESIDUALS.RADIUS   F32   9.0             # keep this pixel if residual is more significant than this
+PSF.RESIDUALS.SPATIAL_ORDER S32  1               # fit spatial variations of the residuals at this order (0,1)
+# PSF.RESIDUALS       BOOL  FALSE            # generate the residuals?
 
 # PSF model parameters : choose the PSF model desired
@@ -38,4 +45,7 @@
 PSF.TREND.NX                        S32   3
 PSF.TREND.NY                        S32   3
+
+PSF_FIT_RADIUS_SCALE                F32   7.0            # fitting radius for test PSF model
+PSF_APERTURE_SCALE                  F32   4.0            # fitting radius for test PSF model
 
 EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
Index: /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25622)
+++ /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25623)
@@ -1,6 +1,3 @@
 	
-# turn these on to see specific outputs
-SAVE.RESID	BOOL 	TRUE
-
 IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
 
@@ -48,6 +45,6 @@
 
 EXTENDED_SOURCE_SN_LIM              F32   3.0
-EXTENDED_SOURCE_ANALYSIS            BOOL  TRUE  # perform any of the aperture-like measurements?
-EXTENDED_SOURCE_PETROSIAN           BOOL  TRUE
+#EXTENDED_SOURCE_ANALYSIS            BOOL  TRUE  # perform any of the aperture-like measurements?
+#EXTENDED_SOURCE_PETROSIAN           BOOL  TRUE
 
 PSF.RESIDUALS.NSIGMA                F32   3.0             # clip input stack of NSIGMA outliers
@@ -55,2 +52,7 @@
 PSF.RESIDUALS.PIX.SN                F32   0.0             # keep this pixel if residual is more significant than this
 PSF.RESIDUALS.RADIUS                F32   8.0             # keep this pixel if residual is more significant than this
+
+MEASURE.APTREND	                    BOOL  TRUE
+APTREND.ORDER.MAX    S32  3
+
+PSF_FIT_RADIUS                      F32   9.0            # fitting radius for test PSF model
Index: /branches/eam_branches/20090715/ippconfig/simtest/camera.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/simtest/camera.config	(revision 25622)
+++ /branches/eam_branches/20090715/ippconfig/simtest/camera.config	(revision 25623)
@@ -64,4 +64,5 @@
   CMF.XSRC STR {CHIP.NAME}.xsrc # use .PSF and .EXT?
   CMF.XFIT STR {CHIP.NAME}.xfit # use .PSF and .EXT?
+  CMF.DETEFF STR {CHIP.NAME}.deteff
 
   PSF.HEAD  STR	{CHIP.NAME}.hdr
Index: /branches/eam_branches/20090715/ippconfig/simtest/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/simtest/psphot.config	(revision 25622)
+++ /branches/eam_branches/20090715/ippconfig/simtest/psphot.config	(revision 25623)
@@ -4,8 +4,8 @@
 SAVE.BACKGND	BOOL 	TRUE
 SAVE.BACKSUB	BOOL 	TRUE
-SAVE.RESID	BOOL 	TRUE
+SAVE.RESID	BOOL 	TRUE 
 SAVE.PLOTS      BOOL    TRUE
-SAVE.PSF	BOOL 	TRUE
-LOAD.PSF	BOOL 	FALSE
+SAVE.PSF	BOOL 	TRUE 
+# LOAD.PSF	BOOL 	FALSE
 
 # smaller than gpc1 or default... (test on GPC1...)
@@ -18,8 +18,11 @@
 PSF_SN_LIM          F32  20.0            # minimum S/N for stars used for PSF model
 
+USE_FOOTPRINTS                      BOOL  T       	  # use new pmFootprint peak packaging
+FOOTPRINT_NSIGMA_LIMIT              F32   14.0      	  # threshold for bright pmFootprint detection
+
 # smaller than gpc1 (12), but larger than default (3) test this
 PSF_MOMENTS_RADIUS     F32  16.0 # calculate initial source moments with this radius
 MOMENTS_GAUSS_SIGMA    F32   4.0 # XXX TEST THIS: sigma in pixels (should be >> seeing equiv)
-MOMENTS_SN_MIN         F32  10.0 # min S/N to measure moments
+MOMENTS_SN_MIN         F32   1.0 # min S/N to measure moments
 MOMENTS_MIN_PIXEL_SN   F32   0.0 # ---> this should be fixed to 0.0
 
@@ -29,8 +32,16 @@
 
 # robust vs fitted??  gpc1 uses fitted...  robust median gives better background stdev --> test with flat-field photometry
-SKY_STAT            STR  ROBUST_MEDIAN   # statistic used to measure background
-SKY_BIAS            F32   0.0             # offset applied to measured sky (FOR TESTING)
-# SKY_STAT            STR  FITTED_MEAN_V4   # statistic used to measure background
+# SKY_STAT            STR  ROBUST_MEDIAN   # statistic used to measure background
+# SKY_BIAS            F32   -3.             # offset applied to measured sky (FOR TESTING)
+SKY_BIAS            F32  0.0             # offset applied to measured sky (FOR TESTING)
+SKY_STAT            STR  FITTED_MEAN_V4   # statistic used to measure background
 
 # turn off for the moment 
-PSF.RESIDUALS                       BOOL  FALSE            # generate the residuals?
+PSF.RESIDUALS                       BOOL  TRUE            # generate the residuals?
+MEASURE.APTREND	                    BOOL  TRUE		### Gene says there's bugs in this part
+
+IGNORE_GROWTH                       BOOL  TRUE
+INTERPOLATE_AP                      BOOL  TRUE
+AP_MIN_SN                           F32   1.0
+
+PSF_FIT_RADIUS                      F32   5.0            # fitting radius for test PSF model
