Index: /trunk/ippconfig/sdssmosaic/psphot.config
===================================================================
--- /trunk/ippconfig/sdssmosaic/psphot.config	(revision 24066)
+++ /trunk/ippconfig/sdssmosaic/psphot.config	(revision 24067)
@@ -10,4 +10,8 @@
 #SAVE.PLOTS     	BOOL    TRUE
 
+# for testing:
+# BREAK_POINT STR BACKMDL
+
+
 BACKGROUND.XBIN	    S32  256            # size of background superpixels
 BACKGROUND.YBIN	    S32  256            # size of background superpixels
@@ -20,6 +24,6 @@
 PEAKS_SMOOTH_SIGMA  F32   2.5            # smoothing kernel sigma in pixels
 PEAKS_NMAX          S32   5000           # on first pass, only keep NMAX peaks (0 == all)
-PEAKS_NSIGMA_LIMIT  F32   25.0            # peak significance threshold
-PEAKS_NSIGMA_LIMIT_2 F32  10.0             # peak significance threshold
+PEAKS_NSIGMA_LIMIT  F32   25.0           # peak significance threshold
+PEAKS_NSIGMA_LIMIT_2 F32   5.0           # peak significance threshold
 
 PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
@@ -28,7 +32,11 @@
 PSF_CLUMP_NY        S32   3               # selecting PSF stars
 PSF_MOMENTS_RADIUS  F32  12               # calculate initial source moments with this radius
+PSF_CLUMP_GRID_SCALE F32 2.5		# size of Sx,Sy image pixel
+
+PSF.RESIDUALS       BOOL  TRUE            # generate the residuals?
 
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_PS1_V1
+PSPHOT.CR.NSIGMA.SOFTEN             F32   0.0025            # Softening parameter for weights
 
 # Use same default setting as in 2.6.1 (MAP is now global default)
@@ -37,16 +45,17 @@
 PSF.TREND.NY                        S32   0
 
-MOMENTS_SN_MIN      F32   30.0
 EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  50.0
-AP_MIN_SN            F32  50.0
+FULL_FIT_SN_LIM      F32  25.0
+MOMENTS_SN_MIN      F32    5.0
+AP_MIN_SN            F32   5.0
 
-OUTPUT.FORMAT       STR PS1_DEV_1
+OUTPUT.FORMAT        STR  PS1_V1
 
 PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
 PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-APTREND.ORDER.MAX    S32  1
 
 MEASURE.APTREND      BOOL TRUE           ### XXX for now, skip this (too many errors)
+APTREND.ORDER.MAX    S32  3
+
 # BREAK_POINT STR PASS1
 
@@ -76,4 +85,5 @@
  PSF.TREND.NY		S32	0
  MEASURE.APTREND        BOOL  TRUE
+ APTREND.ORDER.MAX    	S32   3 # used to be 1
 END
 
@@ -83,3 +93,9 @@
  PSF.TREND.NY		S32	3
  MEASURE.APTREND        BOOL  TRUE
+ APTREND.ORDER.MAX    	S32   3 # used to be 1
 END
+
+DIFF	METADATA
+	BACKGROUND.XBIN	    S32  32            # size of background superpixels
+	BACKGROUND.YBIN	    S32  32            # size of background superpixels
+END
