Index: /trunk/ippconfig/ctio_mosaic2/psphot.config
===================================================================
--- /trunk/ippconfig/ctio_mosaic2/psphot.config	(revision 12375)
+++ /trunk/ippconfig/ctio_mosaic2/psphot.config	(revision 12376)
@@ -1,116 +1,27 @@
 
-# these options turn on different inputs and/or outputs
-SAVE.BACKMDL	BOOL 	FALSE
-SAVE.BACKGND	BOOL 	FALSE
-SAVE.BACKSUB	BOOL 	FALSE
+# 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 	FALSE
-LOAD.PSF	BOOL 	FALSE
-SAVE.PLOTS      BOOL    TRUE
+#SAVE.PSF	BOOL 	TRUE
+#LOAD.PSF	BOOL 	FALSE
 
-# the zero point is used to set a basic scale for DVO
-# XXX it may not currently be read : double check this (EAM)
-ZERO_POINT          F32  25.000          # zero point used by DVO
+IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
 
-# these parameter govern how the background is measured
-BACKGROUND_XBIN	    S32   128            # size of background superpixels
-BACKGROUND_YBIN	    S32   128            # size of background superpixels
-IMSTATS_NPIX        S32  2000    	 # number of pixels to use for sky estimate boxes:
-
-SKY_BIAS            F32  0.0             # offset applied to measured sky (FOR TESTING)
-SKY_FIT_ORDER       S32  0
-SKY_FIT_LINEAR      BOOL FALSE
-SKY_STAT            STR  FITTED_MEAN     # statistic used to measure background
-# allowed values for SKY_STAT: 
-# SAMPLE_MEAN, SAMPLE_MEDIAN, CLIPPED_MEAN, ROBUST_MEAN, ROBUST_QUARTILE, FITTED_MEAN
-
-# masking parameters (XXX EAM : rework this to use psRegion like ANALYSIS_REGION)
-XMIN                F32   0        	 # minimum valid x-coord
-XMAX                F32   0        	 # maximum valid x-coord
-YMIN                F32   0        	 # minimum valid y-coord
-YMAX                F32   0        	 # maximum valid y-coord
-SATURATION          F32   64000     	 # saturation level on this chip
-
-# peak finding 
-PEAKS_SMOOTH_SIGMA  F32  1.0       	 # smoothing kernel sigma in pixels
-PEAKS_SMOOTH_NSIGMA F32  2.0   	   	 # smoothing kernel width in sigmas
-PEAKS_NSIGMA_LIMIT  F32  50.0 	   	 # peak significance threshold
-
-# parameters to control the selection of the peak in the Sx,Sy plane
-MOMENTS_SCALE       F32   0.1
-MOMENTS_SN_MIN      F32   10.0
-MOMENTS_SX_MAX      F32   3.0
-MOMENTS_SY_MAX      F32   3.0
-MOMENTS_AR_MAX      F32   1.5		 # maximum axial ratio: 1 / AR < (sx / sy) < AR
-
-# basic object statistics
-SKY_INNER_RADIUS    F32  15		 # square annulus for local sky measurement
-SKY_OUTER_RADIUS    F32  25		 # square annulus for local sky measurement
-PSF_MOMENTS_RADIUS  F32  3               # calculate initial source moments with this radius
-PSF_SN_LIM          F32  50              # minimum S/N for stars used for PSF model
+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_GAUSS
+PSF_MODEL           STR  PS_MODEL_QGAUSS
+# PSF_MODEL           STR  PS_MODEL_GAUSS
 # PSF_MODEL           STR  PS_MODEL_PGAUSS
-# PSF_MODEL           STR  PS_MODEL_QGAUSS
 # PSF_MODEL           STR  PS_MODEL_TGAUSS  ## not well tested, not very successful
 
-# PSF.TREND.MASK 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       2                # number of x orders
-   NORDER_Y         S32       2                # 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
-   NELEMENTS        S32       6                # number of unmasked components
-END  # folder for 2D polynomial
-
-PSF_FIT_RADIUS      F32  15.0	         # fitting radius for test PSF model
-PSF_REF_RADIUS      F32  25.0            # aperture magnitudes are scaled via 
-					 # curve-of-growth to this radius
-# PSF-like source model parameters
-PSF_FIT_NSIGMA       F32  1.0		 # significance for pixel included in fit
-PSF_FIT_PADDING      F32  2.0            # extra annulus to use for fit 
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MIN_SN           F32  2.0		 # reject objects below this significance
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-FULL_FIT_SN_LIM      F32  10.0
-
-# EXTended source model parameters
-EXT_MODEL            STR  PS_MODEL_PGAUSS
+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
-EXT_FIT_NSIGMA       F32  1		 # significance for pixel included in fit
-EXT_FIT_PADDING      F32  5              # extra annulus to use for fit 
-EXT_MOMENTS_RADIUS   F32  9
-
-FITMODE              STR  BLEND
-DEBLEND_PEAK_FRACTION   F32 0.1
-DEBLEND_SKY_NSIGMA      F32 10.0
-
-# APTREND 	     STR  NONE, CONSTANT, SKYBIAS, SKYSAT, XY_LIN, SKY_XY_LIN, SKYSAT_XY_LIN, ALL
-APTREND 	     STR  CONSTANT
+FULL_FIT_SN_LIM      F32  50.0
 AP_MIN_SN            F32  25.0
-
-# test options
-# BREAK_POINT may be one of (PEAKS, MOMENTS, PSFMODEL, ENSEMBLE)
-# BREAK_POINT           STR  MOMENTS
-# PEAKS_OUTPUT_FILE   STR  peaks.dat
-# MOMENTS_OUTPUT_FILE STR  moments.dat
-# ANALYSIS_REGION     STR  [1000:1600,2800:3400]
-# POISSON_ERRORS      BOOL TRUE
-
-# optional parameter to limit the actual analysis to a fraction of the image
-# do not uncomment this in the master psphot.config file
-# ANALYSIS_REGION     STR  [1000:1600,2800:3400]
-
-IGNORE_GROWTH BOOL FALSE
-CONSTANT_PHOTOMETRIC_WEIGHTS BOOL TRUE # Should the photometric code [currently only ensemblePSF] refuse to weight each pixel by it's significance?
-INTERPOLATE_AP BOOL TRUE
-POISSON_ERRORS BOOL TRUE
Index: /trunk/ippconfig/isp/psphot.config
===================================================================
--- /trunk/ippconfig/isp/psphot.config	(revision 12375)
+++ /trunk/ippconfig/isp/psphot.config	(revision 12376)
@@ -1,4 +1,4 @@
 
-SAVE.OUTPUT	BOOL 	TRUE
+# turn these on to see specific outputs
 #SAVE.BACKMDL	BOOL 	TRUE
 #SAVE.BACKGND	BOOL 	TRUE
@@ -7,38 +7,8 @@
 #SAVE.PSF	BOOL 	TRUE
 
-#LOAD.PSF	BOOL 	FALSE
-
-# image noise parameters
-RDNOISE             STR  HD:RDNOISE      # read-noise in electrons
-GAIN                STR  HD:GAIN         # electrons / DN
-ZERO_POINT          F32  25.000          # zero point used by DVO
-
-# background model : 
-BACKGROUND.XBIN	    S32   128
-BACKGROUND.YBIN	    S32   128
-
-# masking parameters
-XMIN                F32   2        	 # minimum valid x-coord
-XMAX                F32   -2        	 # maximum valid x-coord
-YMIN                F32   2        	 # minimum valid y-coord
-YMAX                F32   -2        	 # maximum valid y-coord
-SATURATION          F32  50000     	 # saturation level on this chip
-MIN_VALID_PIXEL     F32      1     	 # saturation level on this chip
-
 # image statistics parameters
 IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
 
-# peak finding 
-PEAKS_SMOOTH_SIGMA   F32  1.0       	 # smoothing kernel sigma in pixels
-PEAKS_SMOOTH_NSIGMA  F32  3.0      	 # smoothing kernel width in sigmas
-PEAKS_NSIGMA_LIMIT   F32 25.0 	   	 # peak significance threshold
-PEAKS_NSIGMA_LIMIT_2 F32  5.0 	   	 # peak significance threshold
-
-# basic object statistics
-SKY_INNER_RADIUS    F32  15		 # square annulus for local sky measurement
-SKY_OUTER_RADIUS    F32  25		 # square annulus for local sky measurement
-PSF_MOMENTS_RADIUS  F32  3               # calculate initial source moments with this radius
 PSF_SN_LIM          F32  25              # minimum S/N for stars used for PSF model
-PSF_CLUMP_NSIGMA    F32  3               # size of PSF clump in image (use a larger number for images with large PSF variations)
 PSF_MAX_NSTARS      S32  300             # limit number of stars used for PSF model
 
@@ -51,54 +21,8 @@
 # PSF_MODEL           STR  PS_MODEL_TEST1
 
-MOMENTS_SCALE       F32   0.1
 MOMENTS_SN_MIN      F32   10.0
-MOMENTS_SX_MAX      F32   3.0
-MOMENTS_SY_MAX      F32   3.0
-MOMENTS_AR_MAX      F32   5.0		 # maximum axial ratio: 1 / AR < (sx / sy) < AR
-
-PSF_FIT_RADIUS      F32   9.0	         # fitting radius for test PSF model
-PSF_REF_RADIUS      F32  11.0            # aperture magnitudes are scaled via 
-					 # curve-of-growth to this radius
-# PSF-like source model parameters
-PSF_FIT_NSIGMA       F32  1.0		 # significance for pixel included in fit
-PSF_FIT_PADDING      F32  2.0            # extra annulus to use for fit 
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MIN_SN           F32  2.0		 # reject objects below this significance
-PSF_MAX_CHI          F32  50.0		 # reject objects worse than this
-
-# EXTended source model parameters
-EXT_MODEL            STR  PS_MODEL_PGAUSS
 EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-EXT_FIT_NSIGMA       F32  1		 # significance for pixel included in fit
-EXT_FIT_PADDING      F32  10             # extra annulus to use for fit 
-EXT_MOMENTS_RADIUS   F32  9
-
-FITMODE              STR  BLEND
-DEBLEND_PEAK_FRACTION   F32 0.1
-DEBLEND_SKY_NSIGMA      F32 10.0
-
-# APTREND 	     STR CONSTANT
-APTREND 	     STR  ALL
-# APTREND 	     STR  SKYSAT_XY_LIN
-# APTREND 	     STR  SKYSAT
-# APTREND 	     STR  SKYBIAS
-APTREND.XORDER       S32  2
-APTREND.YORDER       S32  2
 FULL_FIT_SN_LIM      F32  50.0
 AP_MIN_SN            F32  20.0
-MAX_AP_OFFSET        F32  0.5
-CONSTANT_PHOTOMETRIC_WEIGHTS BOOL TRUE	# Should the photometric code [currently only ensemblePSF]
-					# refuse to weight each pixel by it's significance?
-
-# test options
-
-# BREAK_POINT may be one of (PEAKS, MOMENTS, PSFMODEL, ENSEMBLE)
-BREAK_POINT         STR  ENSEMBLE
-
-# PEAKS_OUTPUT_FILE   STR  peaks.dat
-# MOMENTS_OUTPUT_FILE STR  moments.dat
-# ANALYSIS_REGION     STR  [1000:1600,2800:3400]
-# POISSON_ERRORS      BOOL TRUE
-# SKY_BIAS            F32  0.0
 
 # PSFTREND must be a 2D polynomial
Index: /trunk/ippconfig/megacam/psphot.config
===================================================================
--- /trunk/ippconfig/megacam/psphot.config	(revision 12375)
+++ /trunk/ippconfig/megacam/psphot.config	(revision 12376)
@@ -7,13 +7,4 @@
 #LOAD.PSF	BOOL 	FALSE
 
-# image noise parameters
-RDNOISE             STR  HD:RDNOISE      # read-noise in electrons
-GAIN                STR  HD:GAIN         # electrons / DN
-ZERO_POINT          F32  25.000          # zero point used by DVO
-
-# background model : 
-BACKGROUND.XBIN	    S32   128
-BACKGROUND.YBIN	    S32   128
-
 # masking parameters
 XMIN                F32   2        	 # minimum valid x-coord
@@ -21,20 +12,8 @@
 YMIN                F32   2        	 # minimum valid y-coord
 YMAX                F32   -2        	 # maximum valid y-coord
-SATURATION          F32  50000     	 # saturation level on this chip
-MIN_VALID_PIXEL     F32      1     	 # saturation level on this chip
 
 # image statistics parameters
 IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
 
-# peak finding 
-PEAKS_SMOOTH_SIGMA  F32  1.0       	 # smoothing kernel sigma in pixels
-PEAKS_SMOOTH_NSIGMA F32  3.0   	   	 # smoothing kernel width in sigmas
-# PEAKS_NSIGMA_LIMIT  F32  10.0 	   	 # peak significance threshold
-PEAKS_NSIGMA_LIMIT  F32  25.0 	   	 # peak significance threshold
-
-# basic object statistics
-SKY_INNER_RADIUS    F32  15		 # square annulus for local sky measurement
-SKY_OUTER_RADIUS    F32  25		 # square annulus for local sky measurement
-PSF_MOMENTS_RADIUS  F32  3               # calculate initial source moments with this radius
 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
@@ -42,4 +21,5 @@
 # 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
@@ -48,37 +28,7 @@
 # PSF_MODEL           STR  PS_MODEL_TGAUSS  ## not well tested, not very successful
 
-MOMENTS_SCALE       F32   0.1
 MOMENTS_SN_MIN      F32   30.0
-MOMENTS_SX_MAX      F32   3.0
-MOMENTS_SY_MAX      F32   3.0
-MOMENTS_AR_MAX      F32   1.5		 # maximum axial ratio: 1 / AR < (sx / sy) < AR
-
-PSF_FIT_RADIUS      F32  15.0	         # fitting radius for test PSF model
-PSF_REF_RADIUS      F32  25.0            # aperture magnitudes are scaled via 
-
-# PSF-like source model parameters
-PSF_FIT_NSIGMA       F32  1.0		 # significance for pixel included in fit
-PSF_FIT_PADDING      F32  5.0            # extra annulus to use for fit 
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MIN_SN           F32  2.0		 # reject objects below this significance
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
-# EXTended source model parameters
-EXT_MODEL            STR  PS_MODEL_PGAUSS
 EXT_MIN_SN           F32  50.0           # fit galaxies above this S/N limit
-EXT_FIT_NSIGMA       F32  1		 # significance for pixel included in fit
-EXT_FIT_PADDING      F32  5              # extra annulus to use for fit 
-EXT_MOMENTS_RADIUS   F32  9
-
-FITMODE              STR  BLEND
-DEBLEND_PEAK_FRACTION   F32 0.1
-DEBLEND_SKY_NSIGMA      F32 10.0
-
-APTREND 	     STR SKYSAT
 FULL_FIT_SN_LIM      F32  50.0
 AP_MIN_SN            F32  50.0
 
-# BREAK_POINT STR PEAKS
-# PEAKS_OUTPUT_FILE STR peaks.dat
-# MOMENTS_OUTPUT_FILE STR moments.dat
-# ANALYSIS_REGION     STR  [1000:1600,2800:3400]
Index: /trunk/ippconfig/ucam/psphot.config
===================================================================
--- /trunk/ippconfig/ucam/psphot.config	(revision 12375)
+++ /trunk/ippconfig/ucam/psphot.config	(revision 12376)
@@ -1,40 +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.RESID	BOOL 	TRUE
 #SAVE.PSF	BOOL 	TRUE
 #LOAD.PSF	BOOL 	FALSE
 
-# image noise parameters
-RDNOISE             STR  HD:RDNOISE      # read-noise in electrons
-GAIN                STR  HD:GAIN         # electrons / DN
-ZERO_POINT          F32  25.000          # zero point used by DVO
-
-# background model : 
-BACKGROUND.XBIN	    S32   128
-BACKGROUND.YBIN	    S32   128
-
-# masking parameters
-XMIN                F32   2        	 # minimum valid x-coord
-XMAX                F32   -2        	 # maximum valid x-coord
-YMIN                F32   2        	 # minimum valid y-coord
-YMAX                F32   -2        	 # maximum valid y-coord
-SATURATION          F32  50000     	 # saturation level on this chip
-MIN_VALID_PIXEL     F32      1     	 # saturation level on this chip
-
-# image statistics parameters
 IMSTATS_NPIX        S32  1000    	 # number of pixels to use for sky estimate boxes:
 
-# peak finding 
-PEAKS_SMOOTH_SIGMA  F32  1.0       	 # smoothing kernel sigma in pixels
-PEAKS_SMOOTH_NSIGMA F32  3.0   	   	 # smoothing kernel width in sigmas
-# PEAKS_NSIGMA_LIMIT  F32  10.0 	   	 # peak significance threshold
-PEAKS_NSIGMA_LIMIT  F32  25.0 	   	 # peak significance threshold
-
-# basic object statistics
-SKY_INNER_RADIUS    F32  15		 # square annulus for local sky measurement
-SKY_OUTER_RADIUS    F32  25		 # square annulus for local sky measurement
-PSF_MOMENTS_RADIUS  F32  3               # calculate initial source moments with this radius
 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
@@ -42,4 +15,5 @@
 # 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
@@ -48,37 +22,6 @@
 # PSF_MODEL           STR  PS_MODEL_TGAUSS  ## not well tested, not very successful
 
-MOMENTS_SCALE       F32   0.1
-MOMENTS_SN_MIN      F32   30.0
-MOMENTS_SX_MAX      F32   3.0
-MOMENTS_SY_MAX      F32   3.0
-MOMENTS_AR_MAX      F32   1.5		 # maximum axial ratio: 1 / AR < (sx / sy) < AR
-
-PSF_FIT_RADIUS      F32  15.0	         # fitting radius for test PSF model
-PSF_REF_RADIUS      F32  25.0            # aperture magnitudes are scaled via 
-
-# PSF-like source model parameters
-PSF_FIT_NSIGMA       F32  1.0		 # significance for pixel included in fit
-PSF_FIT_PADDING      F32  5.0            # extra annulus to use for fit 
-PSF_SHAPE_NSIGMA     F32  3.0		 # max significance for shape variation
-PSF_MIN_SN           F32  2.0		 # reject objects below this significance
-PSF_MAX_CHI          F32  50.0		 # reject objects worse that this
-
-# EXTended source model parameters
-EXT_MODEL            STR  PS_MODEL_PGAUSS
+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
-EXT_FIT_NSIGMA       F32  1		 # significance for pixel included in fit
-EXT_FIT_PADDING      F32  5              # extra annulus to use for fit 
-EXT_MOMENTS_RADIUS   F32  9
-
-FITMODE              STR  BLEND
-DEBLEND_PEAK_FRACTION   F32 0.1
-DEBLEND_SKY_NSIGMA      F32 10.0
-
-APTREND 	     STR SKYSAT
 FULL_FIT_SN_LIM      F32  50.0
-AP_MIN_SN            F32  50.0
-
-# BREAK_POINT STR PEAKS
-# PEAKS_OUTPUT_FILE STR peaks.dat
-# MOMENTS_OUTPUT_FILE STR moments.dat
-# ANALYSIS_REGION     STR  [1000:1600,2800:3400]
+AP_MIN_SN            F32  25.0
