Index: /branches/eam_branches/20090715/ippconfig/cfh12k/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/cfh12k/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/cfh12k/psphot.config	(revision 25727)
@@ -1,36 +1,10 @@
 
 # turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS	BOOL 	TRUE
-
-BACKGROUND.XBIN	    S32   128           # size of background superpixels
-BACKGROUND.YBIN	    S32   128           # size of background superpixels
-
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-
-PSF_SN_LIM          F32  50              # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
-
-PEAKS_NSIGMA_LIMIT     F32   25.0            # peak significance threshold
-PEAKS_NSIGMA_LIMIT_2   F32   10.0            # peak significance threshold
 
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_QGAUSS
 
-MOMENTS_SN_MIN       F32  20.0           # min S/N to measure moments
-EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  50.0
-AP_MIN_SN            F32  25.0
-MEASURE.APTREND	                    BOOL  FALSE
-
-# BREAK_POINT may be one of (PEAKS, MOMENTS, PSFMODEL, ENSEMBLE)
-# BREAK_POINT         STR ENSEMBLE
-
-OUTPUT.FORMAT       STR PS1_DEV_1
-
-# masking parameters (XXX EAM : rework this to use psRegion like ANALYSIS_REGION)
+# XXX are these needed?
 XMIN                F32   +10        	 # minimum valid x-coord
 XMAX                F32   -10        	 # maximum valid x-coord
@@ -38,3 +12,2 @@
 YMAX                F32   -10        	 # maximum valid y-coord
 
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
Index: /branches/eam_branches/20090715/ippconfig/esowfi/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/esowfi/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/esowfi/psphot.config	(revision 25727)
@@ -1,30 +1,3 @@
 
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.BACKMDL.STDEV BOOL 	TRUE
-SAVE.BACKGND	BOOL 	TRUE
-SAVE.BACKSUB	BOOL 	TRUE
-SAVE.PLOTS      BOOL    FALSE
-SAVE.RESID	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-LOAD.PSF	BOOL 	FALSE
-
-IMSTATS_NPIX        S32  3000    	 # number of pixels to use for sky estimate boxes:
-
-#PSPHOT_TEST METADATA
-# SAVE.BACKSUB	BOOL 	FALSE
-# SAVE.RESID	BOOL 	TRUE
-#END
-#
-#PEAKS_OUTPUT_FILE   STR  peaks.dat
-#MOMENTS_OUTPUT_FILE STR  moments.dat
-
-#PSF_SN_LIM          F32  20.0            # minimum S/N for stars used for PSF model
-MOMENTS_SN_MIN      F32  20.0            # min S/N to measure moments
-FULL_FIT_SN_LIM     F32  100.0
-EXT_MIN_SN          F32  100.0           # fit galaxies above this S/N limit
-
-PEAKS_NSIGMA_LIMIT  F32  10.0 	   	 # peak significance threshold
-BREAK_POINT         STR  ENSEMBLE        # limit total processing for now (for speed)
-
-
-SKY_STAT            STR  ROBUST_MEDIAN   # statistic used to measure background
+# choose the PSF model
+PSF_MODEL                           STR   PS_MODEL_QGAUSS
Index: /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/gpc1/psphot.config	(revision 25727)
@@ -1,5 +1,5 @@
 
-BACKGROUND.XBIN	                    S32  256            # size of background superpixels
-BACKGROUND.YBIN	                    S32  256            # size of background superpixels
+BACKGROUND.XBIN	                    S32   256           # size of background superpixels
+BACKGROUND.YBIN	                    S32   256           # size of background superpixels
 
 SOFTEN.VARIANCE                     BOOL  TRUE          # XXX drop? soften the errors for bright pixels
@@ -12,10 +12,10 @@
 PSF_CLUMP_GRID_SCALE                F32   2.5		# XXX too large? size of Sx,Sy image pixel
 
-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.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 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
+PSPHOT.CR.NSIGMA.SOFTEN             F32   0.0025        # Softening parameter for weights in CR stat
 
 PSF.TREND.NX                        S32   3
@@ -25,7 +25,7 @@
 FULL_FIT_SN_LIM      		    F32   25.0
 
-APTREND.ORDER.MAX    		    S32  3
+APTREND.ORDER.MAX    		    S32   3
 
-DIAGNOSTIC.PLOTS                    METADATA
+DIAGNOSTIC.PLOTS METADATA
   IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL  FALSE
   IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32   32
@@ -33,5 +33,5 @@
 END
 
-DIFF	METADATA
+DIFF METADATA
   BACKGROUND.XBIN		    S32  32            # size of background superpixels
   BACKGROUND.YBIN	    	    S32  32            # size of background superpixels
Index: /branches/eam_branches/20090715/ippconfig/isp/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/isp/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/isp/psphot.config	(revision 25727)
@@ -1,76 +1,13 @@
 
 # turn these on to see specific outputs
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.BACKGND	BOOL 	TRUE
-SAVE.BACKSUB	BOOL 	TRUE
-SAVE.RESID	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS      BOOL    TRUE
 
-# image statistics parameters
-IMSTATS_NPIX        S32  5000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-
-PSF_SN_LIM          F32  30              # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
-
+# PSF model parameters : choose the PSF model
 PSF_MODEL           STR  PS_MODEL_PGAUSS
 
-MOMENTS_SN_MIN      F32   30.0
-MOMENTS_AR_MAX      F32   2.0		 # maximum axial ratio: 1 / AR < (sx / sy) < AR
-
-#EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-#FULL_FIT_SN_LIM      F32  50.0
-#AP_MIN_SN            F32  20.0
+# xxx check this:
 PSF_CLUMP_NSIGMA   F32  3.5             # region of Sx,Sy plane to use for selecting PSF stars
 
-# PSFTREND must be a 2D polynomial
-# the specified values are ignored but define the active components of the polynomial
-PSF.TREND.MASK  METADATA  
-   NORDER_X         S32       3                # number of x orders
-   NORDER_Y         S32       3                # number of y orders
-   VAL_X00_Y00      F64       1                # polynomial coefficient
-
-   VAL_X01_Y00      F64       1                # polynomial coefficient
-   VAL_X00_Y01      F64       1                # polynomial coefficient
-
-   VAL_X02_Y00      F64       1                # polynomial coefficient
-   VAL_X01_Y01      F64       1                # polynomial coefficient
-   VAL_X00_Y02      F64       1                # polynomial coefficient
-
-   VAL_X03_Y00      F64       1                # polynomial coefficient
-   VAL_X02_Y01      F64       1                # polynomial coefficient
-   VAL_X01_Y02      F64       1                # polynomial coefficient
-   VAL_X00_Y03      F64       1                # polynomial coefficient
-   NELEMENTS        S32       10               # number of unmasked components
-END  # folder for 4D polynomial
-
+# XXX set other 2D trends
 PSF.TREND.NX S32 4
 PSF.TREND.NY S32 4
-
-XMIN F32 15
-
-PSF.RESIDUALS       BOOL true
-PSF.RESIDUALS.SPATIAL_ORDER S32 1
-
-BREAK_POINT         STR  ENSEMBLE
-OUTPUT.FORMAT       STR  PS1_DEV_0
-
-PSPHOT.SUMMIT METADATA
- PEAKS_SMOOTH_SIGMA  F32  0.8 	   	 # peak significance threshold
- PEAKS_NSIGMA_LIMIT  F32  50.0 	   	 # peak significance threshold
- PEAKS_NMAX          S32  1000
- SAVE.RESID	BOOL 	FALSE
- PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
- MOMENTS_SN_MIN      F32   25.0
- PSF_MODEL         STR  PS_MODEL_PGAUSS
-END
-
-DIAGNOSTIC.PLOTS		METADATA
-  IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL FALSE
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32  4
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32  7
-END
-
-SKY_BIAS F32 0.5
-AP_MIN_SN            F32  30.0
Index: /branches/eam_branches/20090715/ippconfig/lbc_red/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/lbc_red/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/lbc_red/psphot.config	(revision 25727)
@@ -1,42 +1,6 @@
 
 # turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS     	BOOL    TRUE
-
-BACKGROUND.XBIN	    S32  128            # size of background superpixels
-BACKGROUND.YBIN	    S32  128            # size of background superpixels
-
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-SKY_CLIP_SIGMA      F32  2.0             # statistic used to measure background
-
-PSF_SN_LIM          F32  100             # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
 
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_QGAUSS
-
-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
-
-# OUTPUT.FORMAT       STR SMPDATA
-OUTPUT.FORMAT       STR PS1_DEV_1
-
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
-#PSF.TREND.MODE STR MAP
-#PSF.TREND.NX   S32 1
-#PSF.TREND.NY   S32 1
-
-DIAGNOSTIC.PLOTS		METADATA
-  IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL FALSE
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32 -1
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32 12
-END
-
Index: /branches/eam_branches/20090715/ippconfig/lulin/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/lulin/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/lulin/psphot.config	(revision 25727)
@@ -1,43 +1,6 @@
 
 # turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS     	BOOL    TRUE
-
-BACKGROUND.XBIN	    S32  128            # size of background superpixels
-BACKGROUND.YBIN	    S32  128            # size of background superpixels
-
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-SKY_CLIP_SIGMA      F32  2.0             # statistic used to measure background
-
-PSF_SN_LIM          F32  100             # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
 
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_QGAUSS
-
-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
-
-# OUTPUT.FORMAT       STR SMPDATA
-OUTPUT.FORMAT       STR PS1_DEV_1
-
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
-#PSF.TREND.MODE STR MAP
-#PSF.TREND.NX   S32 1
-#PSF.TREND.NY   S32 1
-
-DIAGNOSTIC.PLOTS		METADATA
-  IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL FALSE
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32 -1
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32 12
-END
-
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
Index: /branches/eam_branches/20090715/ippconfig/megacam/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/megacam/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/megacam/psphot.config	(revision 25727)
@@ -1,44 +1,10 @@
 
 # turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
 SAVE.PLOTS     	BOOL    TRUE
-
-BACKGROUND.XBIN	    S32  128            # size of background superpixels
-BACKGROUND.YBIN	    S32  128            # size of background superpixels
-
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-SKY_CLIP_SIGMA      F32  2.0             # 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 parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_QGAUSS
 
-PSF_MOMENTS_RADIUS  F32   10.0           # calculate initial source moments with this radius
-
-MOMENTS_SN_MIN      F32    2.0
-EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  10.0
-AP_MIN_SN            F32   2.0
-
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
 PSF.TREND.MODE STR MAP
 PSF.TREND.NX   S32 1
 PSF.TREND.NY   S32 1
-
-DIAGNOSTIC.PLOTS		METADATA
-  IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL FALSE
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32 -1
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32 12
-END
-
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
-
-PEAKS_NSIGMA_LIMIT	F32	10.0
Index: /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/mosaic2/psphot.config	(revision 25727)
@@ -1,58 +1,32 @@
 	
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
+IMSTATS_NPIX                         S32   10000    	 # 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
+SKY_STAT                             STR   ROBUST_MEDIAN    # statistic used to measure background
 
-# 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_MAX_NSTARS                       S32   300              # limit number of stars used for PSF model
 
-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
 
-PSF_CLUMP_NX        S32   1               # subdivide image in to NX x NY regions for 
-PSF_CLUMP_NY        S32   3               # selecting PSF stars
+# Mosaic 2 has substantial IQ variations in the y-direction
+PSF.TREND.NX                         S32   1
+PSF.TREND.NY                         S32   3
 
-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
+FOOTPRINT_NSIGMA_LIMIT               F32   14.0      	  # threshold for bright pmFootprint detection
 
-PSF.TREND.MODE                      STR   MAP
-PSF.TREND.NX                        S32   1
-PSF.TREND.NY                        S32   3
+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
 
-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  10.0
-EXT_MIN_SN           F32  10.0           # fit galaxies above this S/N limit
-AP_MIN_SN            F32  10.0
+EXT_MODEL                            STR   PS_MODEL_QGAUSS
 
-## gene's overrides for testing:
-PEAKS_NSIGMA_LIMIT_2 F32  5.0 	   	 # peak significance threshold
-
-EXT_MODEL           STR  PS_MODEL_QGAUSS
-
-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)
-
-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
-
-EXTENDED_SOURCE_SN_LIM              F32   3.0
+EXTENDED_SOURCE_SN_LIM               F32   3.0
 #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
-PSF.RESIDUALS.SPATIAL_ORDER         S32   0               # fit spatial variations of the residuals at this order (0,1)
-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
+# 3 to match PSF and Moments 2D variations
+APTREND.ORDER.MAX                    S32   3
Index: /branches/eam_branches/20090715/ippconfig/sdss/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/sdss/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/sdss/psphot.config	(revision 25727)
@@ -1,61 +1,8 @@
-
-# turn these on to see specific outputs
-SAVE.BACKMDL	BOOL 	TRUE
-#SAVE.BACKGND	BOOL 	TRUE
-#SAVE.BACKSUB	BOOL 	TRUE
-#SAVE.RESID	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-SAVE.PLOTS      BOOL    TRUE
-
-# image statistics parameters
-IMSTATS_NPIX        S32  3000    	 # number of pixels to use for sky estimate boxes:
-
-PSF_SN_LIM          F32  10              # 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
 
-MOMENTS_SN_MIN      F32   10.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  20.0
+# check:
 PSF_CLUMP_NSIGMA   F32  2.5             # region of Sx,Sy plane to use for selecting PSF stars
 
-# PSFTREND must be a 2D polynomial
-# the specified values are ignored but define the active components of the polynomial
-PSF.TREND.MASK  METADATA  
-   NORDER_X         S32       3                # number of x orders
-   NORDER_Y         S32       3                # number of y orders
-   VAL_X00_Y00      F64       1                # polynomial coefficient
-
-   VAL_X01_Y00      F64       1                # polynomial coefficient
-   VAL_X00_Y01      F64       1                # polynomial coefficient
-
-   VAL_X02_Y00      F64       1                # polynomial coefficient
-   VAL_X01_Y01      F64       1                # polynomial coefficient
-   VAL_X00_Y02      F64       1                # polynomial coefficient
-
-   VAL_X03_Y00      F64       1                # polynomial coefficient
-   VAL_X02_Y01      F64       1                # polynomial coefficient
-   VAL_X01_Y02      F64       1                # polynomial coefficient
-   VAL_X00_Y03      F64       1                # polynomial coefficient
-   NELEMENTS        S32       10               # number of unmasked components
-END  # folder for 4D polynomial
-
+# is this needed to mask bad regions?
 XMIN F32 15
-
-PSF.RESIDUALS       BOOL true
-PSF.RESIDUALS.SPATIAL_ORDER S32 1
-
-# BREAK_POINT         STR  ENSEMBLE
-OUTPUT.FORMAT       STR  PS1_DEV_0
-
-PSPHOT.SUMMIT METADATA
- PEAKS_SMOOTH_SIGMA  F32  0.8 	   	 # peak significance threshold
- PEAKS_NSIGMA_LIMIT  F32  50.0 	   	 # peak significance threshold
- PEAKS_NMAX          S32  1000
- SAVE.RESID	BOOL 	FALSE
- PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
- MOMENTS_SN_MIN      F32   25.0
- PSF_MODEL         STR  PS_MODEL_PGAUSS
-END
Index: /branches/eam_branches/20090715/ippconfig/sdssmosaic/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/sdssmosaic/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/sdssmosaic/psphot.config	(revision 25727)
@@ -1,42 +1,15 @@
-
-# turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-#SAVE.RESID	BOOL 	TRUE
-#SAVE.BACKGND	BOOL 	TRUE
-SAVE.BACKSUB	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-#LOAD.PSF	BOOL 	FALSE
-#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
 
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-SKY_CLIP_SIGMA      F32  2.0             # statistic used to measure background
-
-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   5.0           # peak significance threshold
-
-PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
+# what is the 2D variation of the SDSS PSF?
 PSF_CLUMP_NX        S32   3               # subdivide image in to NX x NY regions for 
 PSF_CLUMP_NY        S32   3               # selecting PSF stars
-PSF_MOMENTS_RADIUS  F32  12               # calculate initial source moments with this radius
+
+# test this:
 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)
@@ -45,32 +18,8 @@
 PSF.TREND.NY                        S32   0
 
-EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  25.0
-MOMENTS_SN_MIN      F32    5.0
-AP_MIN_SN            F32   5.0
-
-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
-
-MEASURE.APTREND      BOOL TRUE           ### XXX for now, skip this (too many errors)
-APTREND.ORDER.MAX    S32  3
-
-# BREAK_POINT STR PASS1
-
+# match the SDSS radius:
 PSF_REF_RADIUS      F32  18.7            # aperture magnitudes are scaled via 
 					 # curve-of-growth to this radius
-
-DIAGNOSTIC.PLOTS                    METADATA
-  IMAGE.BACKGROUND.CELL.HISTOGRAM   BOOL  FALSE
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.X S32   32
-  IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32   15
-END
-
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
-
-# Default is noap, nopsf; following recipes turn on one or both of these
-
+# for tests: Default is noap, nopsf; following recipes turn on one or both of these
 PSPHOT_NOAP_PSF METADATA
  PSF.TREND.MODE		STR	MAP
@@ -96,4 +45,5 @@
 END
 
+# put these values in the master?
 DIFF	METADATA
 	BACKGROUND.XBIN	    S32  32            # size of background superpixels
Index: /branches/eam_branches/20090715/ippconfig/simmosaic/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/simmosaic/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/simmosaic/psphot.config	(revision 25727)
@@ -1,40 +1,3 @@
 
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.BACKGND	BOOL 	TRUE
-SAVE.BACKSUB	BOOL 	TRUE
-SAVE.PLOTS      BOOL    FALSE
-SAVE.RESID	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-LOAD.PSF	BOOL 	FALSE
-
-IMSTATS_NPIX        S32  3000    	 # number of pixels to use for sky estimate boxes:
-SKY_INNER_RADIUS    F32    10            # square annulus for local sky measurement
-
-PSF_MOMENTS_RADIUS  F32    7               # calculate initial source moments with this radius
-
-
-
-#PSPHOT_TEST METADATA
-# SAVE.BACKSUB	BOOL 	FALSE
-# SAVE.RESID	BOOL 	TRUE
-#END
-#
-#PEAKS_OUTPUT_FILE   STR  peaks.dat
-#MOMENTS_OUTPUT_FILE STR  moments.dat
-
-#PSF_SN_LIM          F32  20.0            # minimum S/N for stars used for PSF model
-MOMENTS_SN_MIN      F32  10.0            # min S/N to measure moments
-FULL_FIT_SN_LIM     F32  100.0
-EXT_MIN_SN          F32  100.0           # fit galaxies above this S/N limit
-
-MOMENTS_SX_MAX                      F32   25.0
-MOMENTS_SY_MAX                      F32   25.0
-
-
-PEAKS_NSIGMA_LIMIT  F32  25.0 	   	 # peak significance threshold
-PEAKS_NSIGMA_LIMIT_2 F32  10.0 	   	 # peak significance threshold
-
-BREAK_POINT         STR  ENSEMBLE        # limit total processing for now (for speed)
-
-
-SKY_STAT            STR  ROBUST_MEDIAN   # statistic used to measure background
+# ppSim currently uses PS_MODEL_GAUSS
+PSF_MODEL                           STR   PS_MODEL_PGAUSS
Index: /branches/eam_branches/20090715/ippconfig/simple/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/simple/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/simple/psphot.config	(revision 25727)
@@ -1,17 +1,2 @@
 
-SAVE.BACKMDL	BOOL 	FALSE
-SAVE.BACKGND	BOOL 	FALSE
-SAVE.BACKSUB	BOOL 	FALSE
-SAVE.PLOTS      BOOL    TRUE
 SAVE.RESID	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-LOAD.PSF	BOOL 	FALSE
-
-IMSTATS_NPIX        S32  3000    	 # number of pixels to use for sky estimate boxes:
-
-MOMENTS_SN_MIN      F32  20.0           # min S/N to measure moments
-FULL_FIT_SN_LIM     F32  100.0
-EXT_MIN_SN          F32  100.0           # fit galaxies above this S/N limit
-
-PEAKS_NSIGMA_LIMIT  F32  10.0 	   	 # peak significance threshold
-USE_FOOTPRINTS      BOOL  T       	  # use new pmFootprint peak packaging
Index: /branches/eam_branches/20090715/ippconfig/tek/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/tek/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/tek/psphot.config	(revision 25727)
@@ -1,57 +1,3 @@
-
-# turn these on to see specific outputs
-#SAVE.BACKMDL	BOOL 	TRUE
-#SAVE.BACKGND	BOOL 	TRUE
-#SAVE.BACKSUB	BOOL 	TRUE
-SAVE.RESID	BOOL 	TRUE
-#SAVE.PSF	BOOL 	TRUE
-
-# image statistics parameters
-IMSTATS_NPIX        S32  3000    	 # number of pixels to use for sky estimate boxes:
-
-PSF_SN_LIM          F32  10              # 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
 
-MOMENTS_SN_MIN      F32   10.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  20.0
-PSF_CLUMP_NSIGMA   F32  2.5             # region of Sx,Sy plane to use for selecting PSF stars
-
-# PSFTREND must be a 2D polynomial
-# the specified values are ignored but define the active components of the polynomial
-PSF.TREND.MASK  METADATA  
-   NORDER_X         S32       3                # number of x orders
-   NORDER_Y         S32       3                # number of y orders
-   VAL_X00_Y00      F64       1                # polynomial coefficient
-
-   VAL_X01_Y00      F64       1                # polynomial coefficient
-   VAL_X00_Y01      F64       1                # polynomial coefficient
-
-   VAL_X02_Y00      F64       1                # polynomial coefficient
-   VAL_X01_Y01      F64       1                # polynomial coefficient
-   VAL_X00_Y02      F64       1                # polynomial coefficient
-
-   VAL_X03_Y00      F64       1                # polynomial coefficient
-   VAL_X02_Y01      F64       1                # polynomial coefficient
-   VAL_X01_Y02      F64       1                # polynomial coefficient
-   VAL_X00_Y03      F64       1                # polynomial coefficient
-   NELEMENTS        S32       10               # number of unmasked components
-END  # folder for 4D polynomial
-
-XMIN F32 15
-PSF.RESIDUALS       BOOL false
-BREAK_POINT         STR  ENSEMBLE
-OUTPUT.FORMAT       STR  PS1_DEV_0
-
-PSPHOT.SUMMIT METADATA
- PEAKS_SMOOTH_SIGMA  F32  0.8 	   	 # peak significance threshold
- PEAKS_NSIGMA_LIMIT  F32  50.0 	   	 # peak significance threshold
- PEAKS_NMAX          S32  1000
- SAVE.RESID	BOOL 	FALSE
- PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
- MOMENTS_SN_MIN      F32   25.0
- PSF_MODEL         STR  PS_MODEL_PGAUSS
-END
Index: /branches/eam_branches/20090715/ippconfig/ucam/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/ucam/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/ucam/psphot.config	(revision 25727)
@@ -1,27 +1,2 @@
 
-# turn these on to see specific outputs
-#SAVE.BACKMDL	BOOL 	TRUE
-#SAVE.BACKGND	BOOL 	TRUE
-#SAVE.BACKSUB	BOOL 	TRUE
-SAVE.RESID	BOOL 	TRUE
-#SAVE.PSF	BOOL 	TRUE
-#LOAD.PSF	BOOL 	FALSE
-
-IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
-
-PSF_SN_LIM          F32  100             # minimum S/N for stars used for PSF model
-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
-
-MOMENTS_SN_MIN      F32  20.0           # min S/N to measure moments
-EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-FULL_FIT_SN_LIM      F32  50.0
-AP_MIN_SN            F32  25.0
Index: /branches/eam_branches/20090715/ippconfig/uh8k/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/uh8k/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/uh8k/psphot.config	(revision 25727)
@@ -1,37 +1,5 @@
-
-# turn these on to see specific outputs
-SAVE.OUTPUT	BOOL 	TRUE
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.PSF	BOOL 	TRUE
-SAVE.PLOTS     	BOOL    TRUE
-
-BACKGROUND.XBIN	    S32  128            # size of background superpixels
-BACKGROUND.YBIN	    S32  128            # size of background superpixels
-
-# image background parameters
-IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
-SKY_CLIP_SIGMA      F32  2.0             # statistic used to measure background
-
-PSF_SN_LIM          F32  100             # minimum S/N for stars used for PSF model
-PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
 
 # PSF model parameters : choose the PSF model desired
 PSF_MODEL           STR  PS_MODEL_QGAUSS
-
-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
-
-# OUTPUT.FORMAT       STR SMPDATA
-OUTPUT.FORMAT       STR PS1_DEV_1
-
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
-#PSF.TREND.MODE STR MAP
-#PSF.TREND.NX   S32 1
-#PSF.TREND.NY   S32 1
 
 DIAGNOSTIC.PLOTS		METADATA
@@ -40,4 +8,2 @@
   IMAGE.BACKGROUND.CELL.HISTOGRAM.Y S32 12
 END
-
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
Index: /branches/eam_branches/20090715/ippconfig/vysos5/psphot.config
===================================================================
--- /branches/eam_branches/20090715/ippconfig/vysos5/psphot.config	(revision 25726)
+++ /branches/eam_branches/20090715/ippconfig/vysos5/psphot.config	(revision 25727)
@@ -1,31 +1,16 @@
 
-SAVE.BACKMDL	BOOL 	TRUE
-SAVE.BACKGND	BOOL 	FALSE
-SAVE.BACKSUB	BOOL 	FALSE
-SAVE.PLOTS      BOOL    TRUE
-SAVE.RESID	BOOL 	FALSE
-SAVE.PSF	BOOL 	TRUE
-LOAD.PSF	BOOL 	FALSE
+# XXX check on this value
+PSF_CLUMP_NSIGMA                    F32   3.5             # region of Sx,Sy plane to use for selecting PSF stars
 
-PEAKS_NSIGMA_LIMIT                  F32   20.0            # peak significance threshold
-PEAKS_NSIGMA_LIMIT_2                F32   10.0             # peak significance threshold
-PSF_MOMENTS_RADIUS  		    F32    7               # calculate initial source moments with this radius
-PSF_CLUMP_NSIGMA                    F32   3.5             # region of Sx,Sy plane to use for selecting PSF stars
-PSF_MAX_NSTARS                      S32   400             # limit number of stars used for PSF model
-MEASURE.APTREND	                    BOOL  TRUE
-
+# do we want to do 2-pass analysis?
 BREAK_POINT                         STR   PASS1     
 
+# keep these large since psfs are so undersampled
 PSPHOT.CR.NSIGMA.LIMIT              F32   5.0  # sources with crNsigma greater that this get tagged as likely cosmic rays
 PSPHOT.EXT.NSIGMA.LIMIT             F32   5.0  # sources with extNsigma greater that this get tagged as likely extended sources
 
-USE_FOOTPRINTS                      BOOL  TRUE       	  # use new pmFootprint peak packaging
-FOOTPRINT_NPIXMIN                   S32   5       	  # Minimum size of a pmFootprint
-FOOTPRINT_NSIGMA_LIMIT              F32   10      	  # threshold for bright pmFootprint detection
-FOOTPRINT_NSIGMA_LIMIT_2            F32   10       	  # threshold for faint pmFootprint detection
+# small psfs so small grow radius
 FOOTPRINT_GROW_RADIUS               S32   1       	  # How much to grow bright footprints
 FOOTPRINT_GROW_RADIUS_2             S32   2       	  # How much to grow faint footprints
-FOOTPRINT_CULL_NSIGMA_DELTA         F32   4       	  # Cull peaks that aren't nsigma above coll to neighbour
-FOOTPRINT_CULL_NSIGMA_MIN           F32   1       	  # Minimum height of colls in units of skyStdev
 
 PSF_MODEL                           STR   PS_MODEL_PGAUSS
