Index: /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.config
===================================================================
--- /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.config	(revision 38306)
+++ /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.config	(revision 38306)
@@ -0,0 +1,73 @@
+
+# location of DVO database tables
+MOSAICNAME              GPC1
+
+# 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	20.7070999146
+OBSERVATORY-LONGITUDE	10.4170608521
+
+SUBPIX_DATAFILE		NONE
+
+IMAGE-ID-KEYWORD        IMAGEID
+SOURCE-ID-KEYWORD       SOURCEID
+
+# 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              2     # mark star FEW if N(good) < STAR_TOOFEW
+GRID_TOOFEW             10     # keep grid FROZEN if N(good) < GRID_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 4
+RELPHOT_GRID_Y 4
+
+PM_DT_MIN               0.25
+PM_TOOFEW               4
+POS_TOOFEW              1
+RELASTRO_SIGMA_LIM      0.01  # select measurements with dM < SIGMA_LIM for relphot analysis
+PAR_FACTOR_MIN          0.2
Index: /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.layout
===================================================================
--- /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.layout	(revision 38306)
+++ /branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/dvo.layout	(revision 38306)
@@ -0,0 +1,88 @@
+# this file defines the layout of the mosaic imager:
+
+NCCD 60
+NAXIS1 4846
+NAXIS2 4868
+
+MOSAIC_X 8
+MOSAIC_Y 8
+
+## XXX is this a good place for this, or is ptolemy.rc better?
+REFCELL.X 16
+REFCELL.Y 16
+
+# lines need to contain:
+
+CHIPID_KEYWORD EXTNAME
+
+# ID     CHIPID xoffset yoffset xflip yflip datasec         biassec            Xo      Yo      theta
+CCD.0      XY01       0       1     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.1      XY02       0       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.2      XY03       0       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.3      XY04       0       4     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.4      XY05       0       5     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.5      XY06       0       6     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.6      XY10       1       0     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.7      XY11       1       1     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.8      XY12       1       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.9      XY13       1       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.10     XY14       1       4     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.11     XY15       1       5     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.12     XY16       1       6     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.13     XY17       1       7     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.14     XY20       2       0     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.15     XY21       2       1     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.16     XY22       2       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.17     XY23       2       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.18     XY24       2       4     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.19     XY25       2       5     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.20     XY26       2       6     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.21     XY27       2       7     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.22     XY30       3       0     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.23     XY31       3       1     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.24     XY32       3       2     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.25     XY33       3       3     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.26     XY34       3       4     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.27     XY35       3       5     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.28     XY36       3       6     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.29     XY37       3       7     1     1 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.30     XY40       4       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.31     XY41       4       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.32     XY42       4       2     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.33     XY43       4       3     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.34     XY44       4       4     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.35     XY45       4       5     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.36     XY46       4       6     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.37     XY47       4       7     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.38     XY50       5       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.39     XY51       5       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.40     XY52       5       2     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.41     XY53       5       3     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.42     XY54       5       4     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.43     XY55       5       5     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.44     XY56       5       6     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.45     XY57       5       7     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.46     XY60       6       0     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.47     XY61       6       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.48     XY62       6       2     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.49     XY63       6       3     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.50     XY64       6       4     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.51     XY65       6       5     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.52     XY66       6       6     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.53     XY67       6       7     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.54     XY71       7       1     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.55     XY72       7       2     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.56     XY73       7       3     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.57     XY74       7       4     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.58     XY75       7       5     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+CCD.59     XY76       7       6     0     0 [6:2049,5:4100] [2085:2110,2:4400] 0       0       0
+
+# can we use header to find biassec
+USE_BIASSEC 1
+
+# header format lines : these are added to the PHU to specify the format to IPP tools
+NFORMAT 4
+FORMAT  TELESCOP  PS1
+FORMAT  DETECTOR  GPC1
+FORMAT  CONTROLR  STARGRASP
+FORMAT  PSFORMAT  RELPHOT
