Index: branches/simmosaic_branches/ippconfig/mosaic2/psphot.config
===================================================================
--- branches/simmosaic_branches/ippconfig/mosaic2/psphot.config	(revision 24860)
+++ branches/simmosaic_branches/ippconfig/mosaic2/psphot.config	(revision 27837)
@@ -1,44 +1,32 @@
 	
-# turn these on to see specific outputs
-SAVE.RESID	BOOL 	TRUE
+IMSTATS_NPIX                         S32   10000    	 # number of pixels to use for sky estimate boxes:
 
-IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
+# 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
 
-PSF_SN_LIM          F32  20             # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
+PSF_MODEL                            STR   PS_MODEL_QGAUSS
+PSF_MAX_NSTARS                       S32   300              # limit number of stars used for PSF model
 
-# PSF model parameters : choose the PSF model
-# list as many PSF_MODEL options as desired
-# if you want to list multiple entries, uncomment 'MULTI' here
-# PSF_MODEL           MULTI
-PSF_MODEL           STR  PS_MODEL_QGAUSS
-# PSF_MODEL           STR  PS_MODEL_GAUSS
-# PSF_MODEL           STR  PS_MODEL_PGAUSS
-# PSF_MODEL           STR  PS_MODEL_TGAUSS  ## not well tested, not very successful
+# Mosaic 2 has substantial IQ variations in the y-direction
+PSF_CLUMP_NX                         S32   1               # subdivide image in to NX x NY regions for 
+PSF_CLUMP_NY                         S32   3               # selecting PSF stars
 
-MOMENTS_SN_MIN       F32  10.0           # min S/N to measure moments
-EXT_MIN_SN           F32  20.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  20.0
-AP_MIN_SN            F32  25.0
+# Mosaic 2 has substantial IQ variations in the y-direction
+PSF.TREND.NX                         S32   1
+PSF.TREND.NY                         S32   3
 
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
+PEAKS_NSIGMA_LIMIT                   F32   15.0            # peak significance threshold
+FOOTPRINT_NSIGMA_LIMIT               F32   14.0      	  # threshold for bright pmFootprint detection
 
-## gene's overrides for testing:
-PEAKS_NSIGMA_LIMIT_2 F32  10.0 	   	 # peak significance threshold
+PSF_SN_LIM                           F32   20.0            # minimum S/N for stars used for PSF model
+FULL_FIT_SN_LIM                      F32   10.0
+EXT_MIN_SN                           F32   10.0           # fit galaxies above this S/N limit
 
-EXT_MODEL           STR  PS_MODEL_QGAUSS
+EXT_MODEL                            STR   PS_MODEL_QGAUSS
 
-TEST_FIT            BOOL FALSE
-TEST_FIT_X          F32  781
-TEST_FIT_Y          F32  830
+EXTENDED_SOURCE_SN_LIM               F32   3.0
+#EXTENDED_SOURCE_ANALYSIS            BOOL  TRUE  # perform any of the aperture-like measurements?
+#EXTENDED_SOURCE_PETROSIAN           BOOL  TRUE
 
-TEST_FIT_MODE       STR  CONV
-#TEST_FIT_MODE       STR PSF
-#TEST_FIT_MODE       STR  EXT
-
-#TEST_FIT_MODEL      STR  PS_MODEL_SERSIC
-TEST_FIT_MODEL      STR  PS_MODEL_QGAUSS
-TEST_MOMENTS_RADIUS F32 9.0
-OUTPUT.FORMAT       STR PS1_DEV_1
-
-PSF_MOMENTS_RADIUS  F32    7               # calculate initial source moments with this radius
+# 3 to match PSF and Moments 2D variations
+APTREND.ORDER.MAX                    S32   3
