Index: trunk/ippconfig/isp/psphot.config
===================================================================
--- trunk/ippconfig/isp/psphot.config	(revision 9530)
+++ trunk/ippconfig/isp/psphot.config	(revision 9629)
@@ -1,8 +1,10 @@
 
+#SAVE.OUTPUT	BOOL 	TRUE
 #SAVE.BACKMDL	BOOL 	TRUE
-#SAVE.BACKGND	BOOL 	TRUE
-#SAVE.BACKSUB	BOOL 	TRUE
+SAVE.BACKGND	BOOL 	TRUE
+SAVE.BACKSUB	BOOL 	TRUE
 SAVE.RESID	BOOL 	TRUE
-#SAVE.PSF	BOOL 	TRUE
+SAVE.PSF	BOOL 	TRUE
+
 #LOAD.PSF	BOOL 	FALSE
 
@@ -30,5 +32,5 @@
 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  5.0 	   	 # peak significance threshold
+PEAKS_NSIGMA_LIMIT  F32  25.0 	   	 # peak significance threshold
 
 # basic object statistics
@@ -79,5 +81,7 @@
 # APTREND 	     STR  SKYSAT
 # APTREND 	     STR  SKYBIAS
-FULL_FIT_SN_LIM      F32  20.0
+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
@@ -86,6 +90,8 @@
 
 # test options
-# BREAK_POINT         STR  PEAKS
+
+# 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
@@ -93,2 +99,29 @@
 # POISSON_ERRORS      BOOL TRUE
 # SKY_BIAS            F32  0.0
+
+# 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       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 4D polynomial
+
+# APTREND must be a 4D polynomial
+# the specified values are ignored but define the active components of the polynomial
+AP.TREND.MASK  METADATA  
+   NORDER_X         	S32   2                # number of x orders
+   NORDER_Y         	S32   2                # number of y orders
+   NORDER_Z         	S32   1                # number of z orders
+   NORDER_T         	S32   1                # number of t orders
+   VAL_X00_Y00_Z00_T00  F64   1                # polynomial coefficient
+   VAL_X00_Y00_Z01_T00  F64   0                # polynomial coefficient
+   NELEMENTS            S32   2                # number of unmasked components
+END  # folder for 4D polynomial
+
