Index: /trunk/ippconfig/Makefile.am
===================================================================
--- /trunk/ippconfig/Makefile.am	(revision 15043)
+++ /trunk/ippconfig/Makefile.am	(revision 15044)
@@ -2,4 +2,5 @@
 	recipes \
 	isp \
+	gpc1 \
 	cfh12k \
 	ctio_mosaic2 \
Index: /trunk/ippconfig/cfh12k/psphot.config
===================================================================
--- /trunk/ippconfig/cfh12k/psphot.config	(revision 15043)
+++ /trunk/ippconfig/cfh12k/psphot.config	(revision 15044)
@@ -3,23 +3,14 @@
 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
 
-BACKGROUND.XBIN	    S32   64            # size of background superpixels
-BACKGROUND.YBIN	    S32   64            # size of background superpixels
+BACKGROUND.XBIN	    S32   128           # size of background superpixels
+BACKGROUND.YBIN	    S32   128           # size of background superpixels
 
 # image background parameters
-IMSTATS_NPIX        S32  5000    	 # number of pixels to use for sky estimate boxes:
-SKY_STAT            STR  FITTED_MEAN_V3  # statistic used to measure background
-SKY_CLIP_SIGMA    F32  2.0             # statistic used to measure background
+IMSTATS_NPIX        S32  10000    	 # number of pixels to use for sky estimate boxes:
 
-# SAMPLE_MEAN, SAMPLE_MEDIAN, CLIPPED_MEAN, ROBUST_MEAN, ROBUST_QUARTILE, FITTED_MEAN
-# FITTED_MEAN_V2, FITTED_MEAN_V3
-
-PSF_SN_LIM          F32  100             # minimum S/N for stars used for PSF model
+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
 
@@ -27,5 +18,5 @@
 PSF_MODEL           STR  PS_MODEL_QGAUSS
 
-MOMENTS_SN_MIN      F32  20.0           # min S/N to measure moments
+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
@@ -35,6 +26,5 @@
 # BREAK_POINT         STR ENSEMBLE
 
-# OUTPUT.FORMAT       STR SMPDATA
-OUTPUT.FORMAT       STR PS1_DEV_0
+OUTPUT.FORMAT       STR PS1_DEV_1
 
 # masking parameters (XXX EAM : rework this to use psRegion like ANALYSIS_REGION)
@@ -43,15 +33,2 @@
 YMIN                F32   +10        	 # minimum valid y-coord
 YMAX                F32   -10        	 # maximum valid y-coord
-
-PSPHOT.FIXED.PSF METADATA
-  # 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       0                # number of x orders
-     NORDER_Y         S32       0                # number of y orders
-     VAL_X00_Y00      F64       1                # polynomial coefficient
-     NELEMENTS        S32       1                # number of unmasked components
-  END  # folder for 2D polynomial
-  
-  PSF_SN_LIM          F32  20              # minimum S/N for stars used for PSF model
-END
Index: /trunk/ippconfig/configure.ac
===================================================================
--- /trunk/ippconfig/configure.ac	(revision 15043)
+++ /trunk/ippconfig/configure.ac	(revision 15044)
@@ -13,4 +13,5 @@
   recipes/Makefile
   isp/Makefile
+  gpc1/Makefile
   ctio_mosaic2/Makefile
   cfh12k/Makefile
Index: /trunk/ippconfig/gpc1/.cvsignore
===================================================================
--- /trunk/ippconfig/gpc1/.cvsignore	(revision 15044)
+++ /trunk/ippconfig/gpc1/.cvsignore	(revision 15044)
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
Index: /trunk/ippconfig/gpc1/Makefile.am
===================================================================
--- /trunk/ippconfig/gpc1/Makefile.am	(revision 15044)
+++ /trunk/ippconfig/gpc1/Makefile.am	(revision 15044)
@@ -0,0 +1,18 @@
+
+installdir = $(datadir)/ippconfig/gpc1
+
+install_files = \
+	dvo.config \
+	dvo.layout \
+	camera.config \
+	format_raw.config \
+	ppImage.config
+
+install_DATA = $(install_files)
+
+install-data-hook:
+	chmod 0755 $(installdir)
+
+EXTRA_DIST = $(install_files)
+
+ACLOCAL_AMFLAGS = -I m4
Index: /trunk/ippconfig/gpc1/dvo.config
===================================================================
--- /trunk/ippconfig/gpc1/dvo.config	(revision 15044)
+++ /trunk/ippconfig/gpc1/dvo.config	(revision 15044)
@@ -0,0 +1,67 @@
+
+# location of DVO database tables
+CATDIR			/data/alala.0/eugene/isp/catdir
+
+# keywords used by DVO to interpret the headers
+
+# keyword abstractions:
+#DATE-KEYWORD		DATE-OBS
+#DATE-MODE		yyyy-mm-dd
+#UT-KEYWORD		UTC-OBS
+JD-KEYWORD		NONE
+MJD-KEYWORD		MJD-OBS
+
+# other keyword abstractions
+EXPTIME-KEYWORD		EXPTIME
+AIRMASS-KEYWORD		AIRMASS
+CCDNUM-KEYWORD		EXTNAME
+ST-KEYWORD		NONE
+OBSERVATORY-LATITUDE	NONE
+OBSERVATORY-LONGITUDE	NONE
+SUBPIX_DATAFILE		NONE
+
+# instrumental magnitude range for calibration mode 
+CAL_INSTMAG_MAX		0
+CAL_INSTMAG_MIN		0
+
+# exclude overscan region from the dB image boundaries
+XOVERSCAN		0
+YOVERSCAN		0
+
+# only upload stars within region; a value of 0 means ignore the limit
+ADDSTAR_XMIN		0
+ADDSTAR_XMAX		0
+ADDSTAR_YMIN		0
+ADDSTAR_YMAX		0
+
+# exclude stars with SN > SNLIMIT (ADDSTAR_SNLIMIT overrides old name MIN_SN_FSTAT)
+ADDSTAR_SNLIMIT		0
+
+# correlation radius (arcseconds)
+ADDSTAR_RADIUS		1.0
+
+# scaled correlation radius 
+ADDSTAR_NSIGMA		0
+
+IMAGE_SCATTER           0.075  # mark images POOR if stdev(Mcal) > IMAGE_SCATTER
+STAR_SCATTER            0.005  # mark stars POOR if stdev(Mrel) > STAR_SCATTER
+IMAGE_OFFSET            0.100  # mark images POOR if abs(delta(Mcal)) > IMAGE_OFFSET
+STAR_CHISQ              10.0   # mark stars POOR if Xm > STAR_CHISQ
+STAR_TOOFEW              3     # mark star FEW if N(good) < STAR_TOOFEW
+IMAGE_TOOFEW            10     # mark image FEW if N(good) < IMAGE_TOOFEW
+IMAGE_GOOD_FRACTION     0.05   # mark image FEW if N(good) < IMAGE_GOOD_FRACTION * Nstars
+
+SCATTER_LIM             15.0
+MAG_LIM                 20.0   # select stars brighter than this for relphot analysis
+SIGMA_LIM               0.015  # select measurements with dM < SIGMA_LIM for relphot analysis
+# INST_MAG_MIN         -17     # optional constraints on magnitude ranges
+# INST_MAG_MAX         -13     # optional constraints on magnitude ranges
+
+RELPHOT_GRID_BINNING    256
+RELPHOT_GRID_X 6
+RELPHOT_GRID_Y 14
+
+PM_DT_MIN               0.25
+PM_TOOFEW               4
+POS_TOOFEW              1
+
Index: /trunk/ippconfig/gpc1/dvo.layout
===================================================================
--- /trunk/ippconfig/gpc1/dvo.layout	(revision 15044)
+++ /trunk/ippconfig/gpc1/dvo.layout	(revision 15044)
@@ -0,0 +1,58 @@
+# this file defines the layout of the mosaic imager:
+
+# NCCD 40  # this needs work: sometimes 36, sometimes 40
+NCCD 36
+NAXIS1 2112
+NAXIS2 4644
+
+MOSAIC_X 11
+MOSAIC_Y  4
+
+# lines need to contain:
+
+CHIPID_KEYWORD EXTNAME
+
+# ID     CHIPID xoffset yoffset xflip yflip datasec         biassec            Xo      Yo      theta
+CCD.0     ccd00       1       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.1     ccd01       2       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.2     ccd02       3       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.3     ccd03       4       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.4     ccd04       5       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.5     ccd05       6       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.6     ccd06       7       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.7     ccd07       8       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.8     ccd08       9       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.9     ccd09       1       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.10    ccd10       2       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.11    ccd11       3       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.12    ccd12       4       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.13    ccd13       5       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.14    ccd14       6       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.15    ccd15       7       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.16    ccd16       8       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.17    ccd17       9       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.18    ccd18       1       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.19    ccd19       2       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.20    ccd20       3       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.21    ccd21       4       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.22    ccd22       5       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.23    ccd23       6       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.24    ccd24       7       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.25    ccd25       8       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.26    ccd26       9       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.27    ccd27       1       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.28    ccd28       2       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.29    ccd29       3       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.30    ccd30       4       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.31    ccd31       5       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.32    ccd32       6       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.33    ccd33       7       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.34    ccd34       8       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.35    ccd35       9       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.36    ccd36       0       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.37    ccd37      10       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.38    ccd38       0       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.39    ccd39      10       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+
+# can we use header to find biassec
+USE_BIASSEC 1
Index: /trunk/ippconfig/isp/psphot.config
===================================================================
--- /trunk/ippconfig/isp/psphot.config	(revision 15043)
+++ /trunk/ippconfig/isp/psphot.config	(revision 15044)
@@ -12,14 +12,16 @@
 SKY_STAT            STR  FITTED_MEAN_V4  # statistic used to measure background
 
-PSF_SN_LIM          F32  10              # minimum S/N for stars used for PSF model
+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         STR  PS_MODEL_PGAUSS
+PSF_MODEL           STR  PS_MODEL_PGAUSS
 
-MOMENTS_SN_MIN      F32   10.0
+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
-PSF_CLUMP_NSIGMA   F32  2.5             # region of Sx,Sy plane to use for selecting PSF stars
+PSF_CLUMP_NSIGMA   F32  3.5             # region of Sx,Sy plane to use for selecting PSF stars
 
 # PSFTREND must be a 2D polynomial
@@ -44,6 +46,6 @@
 END  # folder for 4D polynomial
 
-PSF.TREND.NX S32 3
-PSF.TREND.NY S32 3
+PSF.TREND.NX S32 4
+PSF.TREND.NY S32 4
 
 XMIN F32 15
@@ -72,3 +74,3 @@
 
 SKY_BIAS F32 0.5
-AP_MIN_SN            F32  100.0
+AP_MIN_SN            F32  30.0
