Index: /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25394)
+++ /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25395)
@@ -3,8 +3,8 @@
 SAVE.RESID	BOOL 	TRUE
 
-IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
+IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
 
-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
+# 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 model parameters : choose the PSF model
@@ -12,4 +12,5 @@
 # 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
@@ -17,30 +18,26 @@
 # PSF_MODEL           STR  PS_MODEL_TGAUSS  ## not well tested, not very successful
 
-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
+PSF_CLUMP_NX        S32   1               # subdivide image in to NX x NY regions for 
+PSF_CLUMP_NY        S32   3               # selecting PSF stars
 
+PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
 USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
 
+PEAKS_NSIGMA_LIMIT   F32  15.0            # peak significance threshold
+MOMENTS_SN_MIN       F32  10.0           # min S/N to measure moments
+PSF_SN_LIM           F32  20.0            # minimum S/N for stars used for PSF model
+FULL_FIT_SN_LIM      F32  20.0
+EXT_MIN_SN           F32  20.0           # fit galaxies above this S/N limit
+AP_MIN_SN            F32  10.0
+
 ## gene's overrides for testing:
-PEAKS_NSIGMA_LIMIT_2 F32  10.0 	   	 # peak significance threshold
+PEAKS_NSIGMA_LIMIT_2 F32  5.0 	   	 # peak significance threshold
 
 EXT_MODEL           STR  PS_MODEL_QGAUSS
 
-TEST_FIT            BOOL FALSE
-TEST_FIT_X          F32  781
-TEST_FIT_Y          F32  830
+PSF_MOMENTS_RADIUS   F32    7               # calculate initial source moments with this radius
+MOMENTS_MIN_PIXEL_SN F32  0.0		  # XXX caution on this: too high and we will excessively clip
+MOMENTS_GAUSS_SIGMA  F32  2.0		  # XXX TEST THIS: sigma in pixels (should be >> seeing equiv)
 
-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
-MOMENTS_MIN_PIXEL_SN F32    0.0
-MOMENTS_GAUSS_SIGMA  F32    2.0
+PSPHOT.EXT.NSIGMA.LIMIT             F32   3.0  # sources with extNsigma greater that this get tagged as likely extended sources
+PSPHOT.EXT.NSIGMA.MOMENTS           F32   2.0  # sources with extNsigma greater that this get tagged as likely extended sources
