Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.hdrKeys.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.hdrKeys.bk	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.hdrKeys.bk	(revision 42060)
@@ -0,0 +1,139 @@
+
+## keys listed in thie file should be ignored if they differ
+## (for now we do not enforce an allowed range)
+
+# definition of the pages:
+# ACTION : what behavior for this keyword (IGNORE : currently the only allowed option)
+# SIZE   : example scale of fractional difference seen
+#          D100 : > 100% difference
+#          D010 : 10% - 100% difference
+#          D001 : 1% - 10% difference
+#          D000 : < 1% difference
+
+LAYOUT                             ACTION   SIZE
+
+# general metadata
+IMAGEID                            IGNORE   D100  # IMAGEID could be any value for two analyses of the same data
+PHOT_V				   IGNORE   D100
+IMAGE_V			   	   IGNORE   D100
+PSLIB_V			   	   IGNORE   D100
+MODULE_V			   IGNORE   D100
+STATS_V			   	   IGNORE   D100
+ASTRO_V			   	   IGNORE   D100
+	  			      
+# astrometric quality checks:
+AST_CDX                            IGNORE   D000
+AST_CDY                            IGNORE   D000
+AST_CRX                            IGNORE   D001
+AST_CRY                            IGNORE   D000
+AST_CSX                            IGNORE   D001
+AST_CSY                            IGNORE   D000
+AST_MDX                            IGNORE   D001
+AST_MDY                            IGNORE   D000
+AST_MRX                            IGNORE   D000
+AST_MRY                            IGNORE   D001
+AST_MSX                            IGNORE   D001
+AST_MSY                            IGNORE   D000
+CERROR                             IGNORE   D001
+PERROR                             IGNORE   D001
+CPRECISE                           IGNORE   D001
+
+# astromety calibration 
+CRVAL1                             IGNORE   D000
+CRVAL2                             IGNORE   D000
+CDELT1                             IGNORE   D000
+CDELT2                             IGNORE   D000
+PC001001                           IGNORE   D000
+PC001002                           IGNORE   D010
+PC002001                           IGNORE   D001
+PC002002                           IGNORE   D000
+PCA1X0Y2                           IGNORE   D010
+PCA1X0Y3                           IGNORE   D010
+PCA1X1Y1                           IGNORE   D001
+PCA1X1Y2                           IGNORE   D001
+PCA1X2Y0                           IGNORE   D010
+PCA1X2Y1                           IGNORE   D010
+PCA1X3Y0                           IGNORE   D010
+PCA2X0Y2                           IGNORE   D000
+PCA2X0Y3                           IGNORE   D001
+PCA2X1Y1                           IGNORE   D100
+PCA2X1Y2                           IGNORE   D010
+PCA2X2Y0                           IGNORE   D010
+PCA2X2Y1                           IGNORE   D010
+PCA2X3Y0                           IGNORE   D001
+
+# detection limit
+DETEFF.MAGREF                      IGNORE   D000
+
+# timing:
+DT_ASTR                            IGNORE   D010
+DT_PHOT                            IGNORE   D010
+
+# PSF & IQ information
+FWHM_MAJ                           IGNORE   D000
+FWHM_MIN                           IGNORE   D001
+FW_MJ_LQ                           IGNORE   D001
+FW_MJ_SG                           IGNORE   D010
+FW_MJ_UQ                           IGNORE   D001
+FW_MN_LQ                           IGNORE   D001
+FW_MN_SG                           IGNORE   D010
+FW_MN_UQ                           IGNORE   D000
+IQ_FW1                             IGNORE   D000
+IQ_FW1_E                           IGNORE   D000
+IQ_FW2                             IGNORE   D000
+IQ_FW2_E                           IGNORE   D000
+IQ_M2                              IGNORE   D000
+IQ_M2C                             IGNORE   D001
+IQ_M2C_E                           IGNORE   D000
+IQ_M2C_L                           IGNORE   D001
+IQ_M2C_U                           IGNORE   D000
+IQ_M2S                             IGNORE   D001
+IQ_M2S_E                           IGNORE   D000
+IQ_M2S_L                           IGNORE   D000
+IQ_M2S_U                           IGNORE   D000
+IQ_M2_ER                           IGNORE   D001
+IQ_M2_LQ                           IGNORE   D000
+IQ_M2_UQ                           IGNORE   D000
+IQ_M3                              IGNORE   D000
+IQ_M3_ER                           IGNORE   D000
+IQ_M3_LQ                           IGNORE   D000
+IQ_M3_UQ                           IGNORE   D000
+IQ_M4                              IGNORE   D000
+IQ_M4_ER                           IGNORE   D000
+IQ_M4_LQ                           IGNORE   D000
+IQ_M4_UQ                           IGNORE   D000
+IQ_NSTAR                           IGNORE   D000
+SIGNIFICANCE_SCALE_FACTOR          IGNORE   D001
+EFFECTIVE_AREA			   IGNORE   D001
+ANGLE				   IGNORE   D100
+
+# aperture correction
+APLOSS                             IGNORE   D001
+APMIFIT                            IGNORE   D010
+APREFOFF                           IGNORE   D001
+DAPMIFIT                           IGNORE   D001
+PSPHOT.PSF.APRESID                 IGNORE   D001
+PSPHOT.PSF.APRESID.SYSERR          IGNORE   D010
+
+# background model stats
+MSKY_DEV                           IGNORE   D000
+MSKY_DQ                            IGNORE   D010
+MSKY_MAX                           IGNORE   D000
+MSKY_MIN                           IGNORE   D000
+MSKY_MN                            IGNORE   D000
+MSKY_SIG                           IGNORE   D000
+
+# numbers of stars / detections
+NAPMIFIT                           IGNORE   D000
+NASTRO                             IGNORE   D001
+NDET                               IGNORE   D000
+NDET_CR                            IGNORE   D001
+NDET_EXT                           IGNORE   D001
+NPSFSTAR                           IGNORE   D001
+NSTARS                             IGNORE   D000
+
+# photometry zero points:
+ZPT_ERR                            IGNORE   D001
+ZPT_NREF                           IGNORE   D000
+ZPT_OBS                            IGNORE   D000
+ZPT_OFF                            IGNORE   D000
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfFields.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfFields.bk	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfFields.bk	(revision 42060)
@@ -0,0 +1,66 @@
+
+# definition of the pages:
+# STAT: what statistic to use to compare (VALUE, RVALUE, RATIO)
+# SCALE : multiply the stat by this value before comparing to MIN,MAX
+# MIN_GOOD: 
+# MAX_GOOD:
+# MAG_MAX : clip values fainter than this PSF_INST_MAG
+LAYOUT                   STAT   MIN_GOOD MAX_GOOD SCALE  MIN_MAG MAX_MAG MIN_SN  MAX_SN  
+								          
+                 AP_FLUX RVALUE -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01
+             AP_FLUX_SIG RVALUE -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01
+                  AP_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01
+           AP_MAG_RADIUS NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+              AP_MAG_RAW VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                 AP_NPIX IVALUE -5.0     +5.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+             CAL_PSF_MAG VALUE  -0.04    +0.04	 1.0	   -15.0    -9.0  0.001	   0.01
+         CAL_PSF_MAG_SIG VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # field has only a single value (estimate of systematic error?)	  
+               CR_NSIGMA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # field is all NAN
+                 DEC_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec
+              EXT_NSIGMA VALUE  -2.0     +2.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # range seems quite large (nearly 1 sigma)
+                   FLAGS NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01
+                  FLAGS2 NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                IPP_IDET NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01	  
+               KRON_FLUX RVALUE -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+           KRON_FLUX_ERR RVALUE -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+         KRON_FLUX_INNER RVALUE -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous (but scatter is large compared to KRON_FLUX)
+         KRON_FLUX_OUTER NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # most objects have a NAN value
+             MOMENTS_M3C VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01	  
+             MOMENTS_M3S VALUE  -1e-2    +1e-2 	 1.0	   -15.0    -9.0  0.001	   0.01	  
+             MOMENTS_M4C VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01	  
+             MOMENTS_M4S VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01	  
+              MOMENTS_R1 VALUE  -0.10    +0.10 	 1.0	   -15.0    -9.0  0.001	   0.01 # R1 dispersion is surprisingly high given low value for RH
+              MOMENTS_RH VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # R1 dispersion is surprisingly high given low value for RH
+              MOMENTS_XX VALUE  -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+              MOMENTS_XY VALUE  -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+              MOMENTS_YY VALUE  -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+                N_FRAMES NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                 PADDING NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01      
+        PEAK_FLUX_AS_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # this scatter must come from the background model
+                PLTSCALE VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 # differences should be due to different astrometry solutions
+                POSANGLE VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution has a strange cutoff at small positive value?
+               PSF_CHISQ RVALUE -0.05    +0.06 	 1.0	   -15.0    -9.0  0.001	   0.01 # 0.05 is a bit generous
+                PSF_CORE VALUE  -0.1     +0.1  	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a good prior on what this value should be
+            PSF_FWHM_MAJ VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a good prior on what this value should be
+            PSF_FWHM_MIN VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a good prior on what this value should be
+           PSF_INST_FLUX RVALUE -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01
+       PSF_INST_FLUX_SIG RVALUE -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01
+            PSF_INST_MAG VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01
+        PSF_INST_MAG_SIG VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               PSF_MAJOR VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a good prior on what this value should be
+               PSF_MINOR VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a good prior on what this value should be
+                PSF_NDOF NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                PSF_NPIX NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                  PSF_QF VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+          PSF_QF_PERFECT VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+               PSF_THETA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # a small difference in the PSF model could make a bit diff here; not well constrained
+                  RA_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec, but NOT cos-dec corrected
+                     SKY RVALUE -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # this value probably depends on the sky level?
+          SKY_LIMIT_FLUX NONE   -1.0     +1.0  	 3.0	   -15.0    -9.0  0.001	   0.01 # 
+           SKY_LIMIT_RAD NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution is odd
+         SKY_LIMIT_SLOPE NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # many values are NAN
+               SKY_SIGMA VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # probably depends on the sky level?	  
+                   X_PSF VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # the bright objects are more scattered than I expect
+               X_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+                   Y_PSF VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               Y_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfKeys.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfKeys.bk	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/cam.psfKeys.bk	(revision 42060)
@@ -0,0 +1,17 @@
+
+## keys listed in thie file should be ignored if they differ
+## (for now we do not enforce an allowed range)
+
+# definition of the pages:
+# ACTION : what behavior for this keyword (IGNORE : currently the only allowed option)
+# SIZE   : example scale of fractional difference seen
+#          D100 : > 100% difference
+#          D010 : 10% - 100% difference
+#          D001 : 1% - 10% difference
+#          D000 : < 1% difference
+
+LAYOUT                             ACTION   SIZE
+
+# general metadata
+NAXIS2                             IGNORE   D001
+	  			      
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.default
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.default	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.default	(revision 42060)
@@ -0,0 +1,21 @@
+
+echo "loading class default"
+
+macro init.camera
+  $PSF_FIELDS = $CONFDIR/cam.psfFields.bk
+  $PSF_KEYS   = $CONFDIR/cam.psfKeys.bk
+  $HDR_KEYS   = $CONFDIR/cam.hdrKeys.bk
+  $NCHIPS     = 60; # this needs to be camera-dependent
+end
+macro init.warp
+  $PSF_FIELDS = $CONFDIR/warp.psfFields.bk
+  $PSF_KEYS   = $CONFDIR/warp.psfKeys.bk
+  $HDR_KEYS   = $CONFDIR/warp.hdrKeys.bk
+  $NCHIPS     = 1; # this needs to be camera-dependent
+end
+macro init.diff
+  $PSF_FIELDS = $CONFDIR/diff.psfFields.bk
+  $PSF_KEYS   = $CONFDIR/diff.psfKeys.bk
+  $HDR_KEYS   = $CONFDIR/diff.hdrKeys.bk
+   $NCHIPS     = 1; # this needs to be camera-dependent
+end
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.t0
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.t0	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/class.t0	(revision 42060)
@@ -0,0 +1,21 @@
+
+echo "loading class t0"
+
+macro init.camera
+  $PSF_FIELDS = $CONFDIR/cam.psfFields.bk
+  $PSF_KEYS   = $CONFDIR/cam.psfKeys.bk
+  $HDR_KEYS   = $CONFDIR/cam.hdrKeys.bk
+  $NCHIPS     = 60; # this needs to be camera-dependent
+end
+macro init.warp
+   $PSF_FIELDS = $CONFDIR/warp.psfFields.bk
+   $PSF_KEYS   = $CONFDIR/warp.psfKeys.t0.bk
+   $HDR_KEYS   = $CONFDIR/warp.hdrKeys.t0.bk
+   $NCHIPS     = 1; # this needs to be camera-dependent
+end
+macro init.diff
+  $PSF_FIELDS = $CONFDIR/diff.psfFields.bk
+  $PSF_KEYS   = $CONFDIR/diff.psfKeys.t0.bk
+  $HDR_KEYS   = $CONFDIR/diff.hdrKeys.t0.bk
+  $NCHIPS     = 1; # this needs to be camera-dependent
+end
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/classes.pro
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/classes.pro	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/classes.pro	(revision 42060)
@@ -0,0 +1,9 @@
+
+macro ippcheck.class.default 
+  input $CONFDIR/class.default
+end
+
+macro ippcheck.class.t0
+  input $CONFDIR/class.t0
+end
+
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.bk	(revision 42059)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.bk	(revision 42060)
@@ -22,6 +22,10 @@
 ASTRO_V			   	   IGNORE   STR
 WARP_V			   	   IGNORE   STR
+PPSUB_V			   	   IGNORE   STR
 MD5_SkyChip_SkyCell_0		   IGNORE   STR
 	  			      
+PPSUB.INPUT                        IGNORE   STR # the file names will differ
+PPSUB.REFERENCE			   IGNORE   STR # the file names will differ
+
 # astrometric quality checks:
 AST_CDX                            IGNORE   D000
@@ -158,2 +162,17 @@
 ZPT_OFF                            IGNORE   D000
 FPA.ZP                             IGNORE   D000 # make this a test?
+
+# convolution terms:
+PPSUB.KERNEL			   IGNORE   STR # the kernel terms can be slightly different
+SUBTRACTION.MODE		   IGNORE   D010
+SUBTRACTION.CONVOL.MAX		   IGNORE   D010
+SUBTRACTION.DEV.MEAN		   IGNORE   D010
+SUBTRACTION.DEV.RMS		   IGNORE   D010
+SUBTRACTION.MX			   IGNORE   D010
+SUBTRACTION.MXX			   IGNORE   D010
+SUBTRACTION.MXY			   IGNORE   D010
+SUBTRACTION.MY			   IGNORE   D010
+SUBTRACTION.MYY			   IGNORE   D010
+SUBTRACTION.NORM		   IGNORE   D010
+SUBTRACTION.REGION		   IGNORE   D010
+SUBTRACTION.STAMPS                 IGNORE   D010
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.t0.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.t0.bk	(revision 42059)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.hdrKeys.t0.bk	(revision 42060)
@@ -22,6 +22,10 @@
 ASTRO_V			   	   IGNORE   STR
 WARP_V			   	   IGNORE   STR
+WARP_V			   	   IGNORE   STR
 MD5_SkyChip_SkyCell_0		   IGNORE   STR
 	  			      
+PPSUB.INPUT                        IGNORE   STR # the file names will differ
+PPSUB.REFERENCE			   IGNORE   STR # the file names will differ
+
 ### For this comparison, the mask values have been changed:
 MSKNAM13                           IGNORE   STR
@@ -171,2 +175,17 @@
 ZPT_OFF                            IGNORE   D000
 FPA.ZP                             IGNORE   D000 # make this a test?
+
+# convolution terms:
+PPSUB.KERNEL			   IGNORE   STR # the kernel terms can be slightly different
+SUBTRACTION.CONVOL.MAX		   IGNORE   D010
+SUBTRACTION.DEV.MEAN		   IGNORE   D010
+SUBTRACTION.DEV.RMS		   IGNORE   D010
+SUBTRACTION.MODE		   IGNORE   D010
+SUBTRACTION.MX			   IGNORE   D010
+SUBTRACTION.MXX			   IGNORE   D010
+SUBTRACTION.MXY			   IGNORE   D010
+SUBTRACTION.MY			   IGNORE   D010
+SUBTRACTION.MYY			   IGNORE   D010
+SUBTRACTION.NORM		   IGNORE   D010
+SUBTRACTION.REGION		   IGNORE   D010
+SUBTRACTION.STAMPS                 IGNORE   D010
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.psfFields.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.psfFields.bk	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/diff.psfFields.bk	(revision 42060)
@@ -0,0 +1,66 @@
+
+# definition of the pages:
+# STAT: what statistic to use to compare (VALUE, RVALUE, RATIO)
+# SCALE : multiply the stat by this value before comparing to MIN,MAX
+# MIN_GOOD: 
+# MAX_GOOD:
+# MAG_MAX : clip values fainter than this PSF_INST_MAG
+LAYOUT                   STAT   MIN_GOOD MAX_GOOD SCALE  MIN_MAG MAX_MAG MIN_SN  MAX_SN  
+								          
+                 AP_FLUX NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             AP_FLUX_SIG NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                  AP_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01	
+           AP_MAG_RADIUS VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+              AP_MAG_RAW NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                 AP_NPIX IVALUE -5.0     +5.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+             CAL_PSF_MAG VALUE  -0.04    +0.04	 1.0	   -15.0    -9.0  0.001	   0.01	
+         CAL_PSF_MAG_SIG VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # field has only a single value (estimate of systematic error?)	  
+               CR_NSIGMA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                 DEC_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec
+              EXT_NSIGMA VALUE  -2.0     +2.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # range seems quite large (nearly 1 sigma)
+                   FLAGS NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # diffcult to compare statistically
+                  FLAGS2 NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # diffcult to compare statistically
+                IPP_IDET NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01 # detection ID sequence is not critical
+               KRON_FLUX NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+           KRON_FLUX_ERR NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+         KRON_FLUX_INNER NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+         KRON_FLUX_OUTER NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+             MOMENTS_M3C NONE   -0.03    +0.03   1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+             MOMENTS_M3S NONE   -0.30    +0.30 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             MOMENTS_M4C NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             MOMENTS_M4S NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_R1 NONE   -0.10    +0.10 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_RH NONE   -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_XX NONE   -0.10    +0.10 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_XY NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_YY NONE   -0.20    +0.20 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                N_FRAMES IVALUE -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+                 PADDING NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01 # comparison does not make sense
+        PEAK_FLUX_AS_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # this scatter must come from the background model
+                PLTSCALE VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 # differences should be due to different astrometry solutions
+                POSANGLE VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution has a strange cutoff at small positive value?
+               PSF_CHISQ RVALUE -0.50    +0.50 	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a great prior on this
+                PSF_CORE NONE   -0.1     +0.1  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+            PSF_FWHM_MAJ NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # POPULATED VALUES ARE BOGUS
+            PSF_FWHM_MIN NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # POPULATED VALUES ARE BOGUS
+           PSF_INST_FLUX NONE   -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+       PSF_INST_FLUX_SIG NONE   -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+            PSF_INST_MAG VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01	
+        PSF_INST_MAG_SIG VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               PSF_MAJOR NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+               PSF_MINOR NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                PSF_NDOF NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	
+                PSF_NPIX NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 	  
+                  PSF_QF VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+          PSF_QF_PERFECT VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+               PSF_THETA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                  RA_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec, but NOT cos-dec corrected
+                     SKY RVALUE -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # this value probably depends on the sky level?
+          SKY_LIMIT_FLUX NONE   -1.0     +1.0  	 3.0	   -15.0    -9.0  0.001	   0.01 # 
+           SKY_LIMIT_RAD NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution is odd
+         SKY_LIMIT_SLOPE NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # many values are NAN
+               SKY_SIGMA VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # probably depends on the sky level?	  
+                   X_PSF VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # the bright objects are more scattered than I expect
+               X_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+                   Y_PSF VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               Y_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/warp.psfFields.bk
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/warp.psfFields.bk	(revision 42060)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippconfig/warp.psfFields.bk	(revision 42060)
@@ -0,0 +1,66 @@
+
+# definition of the pages:
+# STAT: what statistic to use to compare (VALUE, RVALUE, RATIO)
+# SCALE : multiply the stat by this value before comparing to MIN,MAX
+# MIN_GOOD: 
+# MAX_GOOD:
+# MAG_MAX : clip values fainter than this PSF_INST_MAG
+LAYOUT                   STAT   MIN_GOOD MAX_GOOD SCALE  MIN_MAG MAX_MAG MIN_SN  MAX_SN  
+								          
+                 AP_FLUX NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             AP_FLUX_SIG NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                  AP_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01
+           AP_MAG_RADIUS VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+              AP_MAG_RAW NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                 AP_NPIX IVALUE -5.0     +5.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+             CAL_PSF_MAG VALUE  -0.04    +0.04	 1.0	   -15.0    -9.0  0.001	   0.01
+         CAL_PSF_MAG_SIG VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # field has only a single value (estimate of systematic error?)	  
+               CR_NSIGMA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                 DEC_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec
+              EXT_NSIGMA VALUE  -2.0     +2.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # range seems quite large (nearly 1 sigma)
+                   FLAGS NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # diffcult to compare statistically
+                  FLAGS2 NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # diffcult to compare statistically
+                IPP_IDET NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01 # detection ID sequence is not critical
+               KRON_FLUX NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+           KRON_FLUX_ERR NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+         KRON_FLUX_INNER NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+         KRON_FLUX_OUTER NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+             MOMENTS_M3C NONE   -0.03    +0.03   1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED	  
+             MOMENTS_M3S NONE   -0.30    +0.30 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             MOMENTS_M4C NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+             MOMENTS_M4S NONE   -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_R1 NONE   -0.10    +0.10 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_RH NONE   -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_XX NONE   -0.10    +0.10 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_XY NONE   -0.05    +0.05 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+              MOMENTS_YY NONE   -0.20    +0.20 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                N_FRAMES IVALUE -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # largely good agreement
+                 PADDING NONE   -1.0     +1.0    1.0       -15.0    -9.0  0.001	   0.01 # comparison does not make sense
+        PEAK_FLUX_AS_MAG VALUE  -0.02    +0.02 	 1.0	   -15.0    -9.0  0.001	   0.01 # this scatter must come from the background model
+                PLTSCALE VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 # differences should be due to different astrometry solutions
+                POSANGLE VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution has a strange cutoff at small positive value?
+               PSF_CHISQ RVALUE -0.50    +0.50 	 1.0	   -15.0    -9.0  0.001	   0.01 # I do not have a great prior on this
+                PSF_CORE NONE   -0.1     +0.1  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+            PSF_FWHM_MAJ NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # POPULATED VALUES ARE BOGUS
+            PSF_FWHM_MIN NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # POPULATED VALUES ARE BOGUS
+           PSF_INST_FLUX NONE   -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+       PSF_INST_FLUX_SIG NONE   -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+            PSF_INST_MAG VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01
+        PSF_INST_MAG_SIG VALUE  -1e-3    +1e-3 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               PSF_MAJOR NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+               PSF_MINOR NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                PSF_NDOF NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 
+                PSF_NPIX NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01	  
+                  PSF_QF VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+          PSF_QF_PERFECT VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+               PSF_THETA NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # NOT CURRENTLY POPULATED
+                  RA_PSF VALUE  -0.1     +0.1  	 3600.0	   -15.0    -9.0  0.001	   0.01 # delta is in arcsec, but NOT cos-dec corrected
+                     SKY RVALUE -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # this value probably depends on the sky level?
+          SKY_LIMIT_FLUX NONE   -1.0     +1.0  	 3.0	   -15.0    -9.0  0.001	   0.01 # 
+           SKY_LIMIT_RAD NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # distribution is odd
+         SKY_LIMIT_SLOPE NONE   -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # many values are NAN
+               SKY_SIGMA VALUE  -1.0     +1.0  	 1.0	   -15.0    -9.0  0.001	   0.01 # probably depends on the sky level?	  
+                   X_PSF VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 # the bright objects are more scattered than I expect
+               X_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
+                   Y_PSF VALUE  -0.04    +0.04 	 1.0	   -15.0    -9.0  0.001	   0.01 
+               Y_PSF_SIG VALUE  -0.01    +0.01 	 1.0	   -15.0    -9.0  0.001	   0.01 # too generous?
