Index: /trunk/ippScripts/scripts/camera_exp.pl
===================================================================
--- /trunk/ippScripts/scripts/camera_exp.pl	(revision 12351)
+++ /trunk/ippScripts/scripts/camera_exp.pl	(revision 12352)
@@ -174,4 +174,5 @@
 my $jpeg2 = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2
 my $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT", $outputRoot); # MEF psastro output
+# my $dvo_camera = $ipprc->dvocamera();
 
 unless ($no_op) {
Index: /trunk/ippconfig/dvo.cameras/megacam.config
===================================================================
--- /trunk/ippconfig/dvo.cameras/megacam.config	(revision 12351)
+++ /trunk/ippconfig/dvo.cameras/megacam.config	(revision 12352)
@@ -43,2 +43,21 @@
 # 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
+
Index: /trunk/ippconfig/dvo.photcodes
===================================================================
--- /trunk/ippconfig/dvo.photcodes	(revision 12351)
+++ /trunk/ippconfig/dvo.photcodes	(revision 12352)
@@ -65,208 +65,208 @@
 
 ### megacam photcodes:
-  100  MEGACAM.u.00	dep   25.280  -0.35     -       -  -   -      -        1
-  101  MEGACAM.u.01	dep   25.280  -0.35     -       -  -   -      -        1
-  102  MEGACAM.u.02	dep   25.280  -0.35     -       -  -   -      -        1
-  103  MEGACAM.u.03	dep   25.280  -0.35     -       -  -   -      -        1
-  104  MEGACAM.u.04	dep   25.280  -0.35     -       -  -   -      -        1
-  105  MEGACAM.u.05	dep   25.280  -0.35     -       -  -   -      -        1
-  106  MEGACAM.u.06	dep   25.280  -0.35     -       -  -   -      -        1
-  107  MEGACAM.u.07	dep   25.280  -0.35     -       -  -   -      -        1
-  108  MEGACAM.u.08	dep   25.280  -0.35     -       -  -   -      -        1
-  109  MEGACAM.u.09	dep   25.280  -0.35     -       -  -   -      -        1
-  110  MEGACAM.u.10	dep   25.280  -0.35     -       -  -   -      -        1
-  111  MEGACAM.u.11	dep   25.280  -0.35     -       -  -   -      -        1
-  112  MEGACAM.u.12	dep   25.280  -0.35     -       -  -   -      -        1
-  113  MEGACAM.u.13	dep   25.280  -0.35     -       -  -   -      -        1
-  114  MEGACAM.u.14	dep   25.280  -0.35     -       -  -   -      -        1
-  115  MEGACAM.u.15	dep   25.280  -0.35     -       -  -   -      -        1
-  116  MEGACAM.u.16	dep   25.280  -0.35     -       -  -   -      -        1
-  117  MEGACAM.u.17	dep   25.280  -0.35     -       -  -   -      -        1
-  118  MEGACAM.u.18	dep   25.280  -0.35     -       -  -   -      -        1
-  119  MEGACAM.u.19	dep   25.280  -0.35     -       -  -   -      -        1
-  120  MEGACAM.u.20	dep   25.280  -0.35     -       -  -   -      -        1
-  121  MEGACAM.u.21	dep   25.280  -0.35     -       -  -   -      -        1
-  122  MEGACAM.u.22	dep   25.280  -0.35     -       -  -   -      -        1
-  123  MEGACAM.u.23	dep   25.280  -0.35     -       -  -   -      -        1
-  124  MEGACAM.u.24	dep   25.280  -0.35     -       -  -   -      -        1
-  125  MEGACAM.u.25	dep   25.280  -0.35     -       -  -   -      -        1
-  126  MEGACAM.u.26	dep   25.280  -0.35     -       -  -   -      -        1
-  127  MEGACAM.u.27	dep   25.280  -0.35     -       -  -   -      -        1
-  128  MEGACAM.u.28	dep   25.280  -0.35     -       -  -   -      -        1
-  129  MEGACAM.u.29	dep   25.280  -0.35     -       -  -   -      -        1
-  130  MEGACAM.u.30	dep   25.280  -0.35     -       -  -   -      -        1
-  131  MEGACAM.u.31	dep   25.280  -0.35     -       -  -   -      -        1
-  132  MEGACAM.u.32	dep   25.280  -0.35     -       -  -   -      -        1
-  133  MEGACAM.u.33	dep   25.280  -0.35     -       -  -   -      -        1
-  134  MEGACAM.u.34	dep   25.280  -0.35     -       -  -   -      -        1
-  135  MEGACAM.u.35	dep   25.280  -0.35     -       -  -   -      -        1
-  136  MEGACAM.u.36	dep   25.280  -0.35     -       -  -   -      -        1
-  137  MEGACAM.u.37	dep   25.280  -0.35     -       -  -   -      -        1
-  138  MEGACAM.u.38	dep   25.280  -0.35     -       -  -   -      -        1
-  139  MEGACAM.u.39	dep   25.280  -0.35     -       -  -   -      -        1
-
-  200  MEGACAM.g.00	dep   26.460  -0.15     -       -  -   -      -        2
-  201  MEGACAM.g.01	dep   26.460  -0.15     -       -  -   -      -        2
-  202  MEGACAM.g.02	dep   26.460  -0.15     -       -  -   -      -        2
-  203  MEGACAM.g.03	dep   26.460  -0.15     -       -  -   -      -        2
-  204  MEGACAM.g.04	dep   26.460  -0.15     -       -  -   -      -        2
-  205  MEGACAM.g.05	dep   26.460  -0.15     -       -  -   -      -        2
-  206  MEGACAM.g.06	dep   26.460  -0.15     -       -  -   -      -        2
-  207  MEGACAM.g.07	dep   26.460  -0.15     -       -  -   -      -        2
-  208  MEGACAM.g.08	dep   26.460  -0.15     -       -  -   -      -        2
-  209  MEGACAM.g.09	dep   26.460  -0.15     -       -  -   -      -        2
-  210  MEGACAM.g.10	dep   26.460  -0.15     -       -  -   -      -        2
-  211  MEGACAM.g.11	dep   26.460  -0.15     -       -  -   -      -        2
-  212  MEGACAM.g.12	dep   26.460  -0.15     -       -  -   -      -        2
-  213  MEGACAM.g.13	dep   26.460  -0.15     -       -  -   -      -        2
-  214  MEGACAM.g.14	dep   26.460  -0.15     -       -  -   -      -        2
-  215  MEGACAM.g.15	dep   26.460  -0.15     -       -  -   -      -        2
-  216  MEGACAM.g.16	dep   26.460  -0.15     -       -  -   -      -        2
-  217  MEGACAM.g.17	dep   26.460  -0.15     -       -  -   -      -        2
-  218  MEGACAM.g.18	dep   26.460  -0.15     -       -  -   -      -        2
-  219  MEGACAM.g.19	dep   26.460  -0.15     -       -  -   -      -        2
-  220  MEGACAM.g.20	dep   26.460  -0.15     -       -  -   -      -        2
-  221  MEGACAM.g.21	dep   26.460  -0.15     -       -  -   -      -        2
-  222  MEGACAM.g.22	dep   26.460  -0.15     -       -  -   -      -        2
-  223  MEGACAM.g.23	dep   26.460  -0.15     -       -  -   -      -        2
-  224  MEGACAM.g.24	dep   26.460  -0.15     -       -  -   -      -        2
-  225  MEGACAM.g.25	dep   26.460  -0.15     -       -  -   -      -        2
-  226  MEGACAM.g.26	dep   26.460  -0.15     -       -  -   -      -        2
-  227  MEGACAM.g.27	dep   26.460  -0.15     -       -  -   -      -        2
-  228  MEGACAM.g.28	dep   26.460  -0.15     -       -  -   -      -        2
-  229  MEGACAM.g.29	dep   26.460  -0.15     -       -  -   -      -        2
-  230  MEGACAM.g.30	dep   26.460  -0.15     -       -  -   -      -        2
-  231  MEGACAM.g.31	dep   26.460  -0.15     -       -  -   -      -        2
-  232  MEGACAM.g.32	dep   26.460  -0.15     -       -  -   -      -        2
-  233  MEGACAM.g.33	dep   26.460  -0.15     -       -  -   -      -        2
-  234  MEGACAM.g.34	dep   26.460  -0.15     -       -  -   -      -        2
-  235  MEGACAM.g.35	dep   26.460  -0.15     -       -  -   -      -        2
-  236  MEGACAM.g.36	dep   26.460  -0.15     -       -  -   -      -        2
-  237  MEGACAM.g.37	dep   26.460  -0.15     -       -  -   -      -        2
-  238  MEGACAM.g.38	dep   26.460  -0.15     -       -  -   -      -        2
-  239  MEGACAM.g.39	dep   26.460  -0.15     -       -  -   -      -        2
-
-  300  MEGACAM.r.00	dep   25.978  -0.10     -       -  -   -      -        3
-  301  MEGACAM.r.01	dep   25.978  -0.10     -       -  -   -      -        3
-  302  MEGACAM.r.02	dep   25.978  -0.10     -       -  -   -      -        3
-  303  MEGACAM.r.03	dep   25.978  -0.10     -       -  -   -      -        3
-  304  MEGACAM.r.04	dep   25.978  -0.10     -       -  -   -      -        3
-  305  MEGACAM.r.05	dep   25.978  -0.10     -       -  -   -      -        3
-  306  MEGACAM.r.06	dep   25.978  -0.10     -       -  -   -      -        3
-  307  MEGACAM.r.07	dep   25.978  -0.10     -       -  -   -      -        3
-  308  MEGACAM.r.08	dep   25.978  -0.10     -       -  -   -      -        3
-  309  MEGACAM.r.09	dep   25.978  -0.10     -       -  -   -      -        3
-  310  MEGACAM.r.10	dep   25.978  -0.10     -       -  -   -      -        3
-  311  MEGACAM.r.11	dep   25.978  -0.10     -       -  -   -      -        3
-  312  MEGACAM.r.12	dep   25.978  -0.10     -       -  -   -      -        3
-  313  MEGACAM.r.13	dep   25.978  -0.10     -       -  -   -      -        3
-  314  MEGACAM.r.14	dep   25.978  -0.10     -       -  -   -      -        3
-  315  MEGACAM.r.15	dep   25.978  -0.10     -       -  -   -      -        3
-  316  MEGACAM.r.16	dep   25.978  -0.10     -       -  -   -      -        3
-  317  MEGACAM.r.17	dep   25.978  -0.10     -       -  -   -      -        3
-  318  MEGACAM.r.18	dep   25.978  -0.10     -       -  -   -      -        3
-  319  MEGACAM.r.19	dep   25.978  -0.10     -       -  -   -      -        3
-  320  MEGACAM.r.20	dep   25.978  -0.10     -       -  -   -      -        3
-  321  MEGACAM.r.21	dep   25.978  -0.10     -       -  -   -      -        3
-  322  MEGACAM.r.22	dep   25.978  -0.10     -       -  -   -      -        3
-  323  MEGACAM.r.23	dep   25.978  -0.10     -       -  -   -      -        3
-  324  MEGACAM.r.24	dep   25.978  -0.10     -       -  -   -      -        3
-  325  MEGACAM.r.25	dep   25.978  -0.10     -       -  -   -      -        3
-  326  MEGACAM.r.26	dep   25.978  -0.10     -       -  -   -      -        3
-  327  MEGACAM.r.27	dep   25.978  -0.10     -       -  -   -      -        3
-  328  MEGACAM.r.28	dep   25.978  -0.10     -       -  -   -      -        3
-  329  MEGACAM.r.29	dep   25.978  -0.10     -       -  -   -      -        3
-  330  MEGACAM.r.30	dep   25.978  -0.10     -       -  -   -      -        3
-  331  MEGACAM.r.31	dep   25.978  -0.10     -       -  -   -      -        3
-  332  MEGACAM.r.32	dep   25.978  -0.10     -       -  -   -      -        3
-  333  MEGACAM.r.33	dep   25.978  -0.10     -       -  -   -      -        3
-  334  MEGACAM.r.34	dep   25.978  -0.10     -       -  -   -      -        3
-  335  MEGACAM.r.35	dep   25.978  -0.10     -       -  -   -      -        3
-  336  MEGACAM.r.36	dep   25.978  -0.10     -       -  -   -      -        3
-  337  MEGACAM.r.37	dep   25.978  -0.10     -       -  -   -      -        3
-  338  MEGACAM.r.38	dep   25.978  -0.10     -       -  -   -      -        3
-  339  MEGACAM.r.39	dep   25.978  -0.10     -       -  -   -      -        3
-
-  400  MEGACAM.i.00	dep   25.744  -0.04     -       -  -   -      -        4
-  401  MEGACAM.i.01	dep   25.744  -0.04     -       -  -   -      -        4
-  402  MEGACAM.i.02	dep   25.744  -0.04     -       -  -   -      -        4
-  403  MEGACAM.i.03	dep   25.744  -0.04     -       -  -   -      -        4
-  404  MEGACAM.i.04	dep   25.744  -0.04     -       -  -   -      -        4
-  405  MEGACAM.i.05	dep   25.744  -0.04     -       -  -   -      -        4
-  406  MEGACAM.i.06	dep   25.744  -0.04     -       -  -   -      -        4
-  407  MEGACAM.i.07	dep   25.744  -0.04     -       -  -   -      -        4
-  408  MEGACAM.i.08	dep   25.744  -0.04     -       -  -   -      -        4
-  409  MEGACAM.i.09	dep   25.744  -0.04     -       -  -   -      -        4
-  410  MEGACAM.i.10	dep   25.744  -0.04     -       -  -   -      -        4
-  411  MEGACAM.i.11	dep   25.744  -0.04     -       -  -   -      -        4
-  412  MEGACAM.i.12	dep   25.744  -0.04     -       -  -   -      -        4
-  413  MEGACAM.i.13	dep   25.744  -0.04     -       -  -   -      -        4
-  414  MEGACAM.i.14	dep   25.744  -0.04     -       -  -   -      -        4
-  415  MEGACAM.i.15	dep   25.744  -0.04     -       -  -   -      -        4
-  416  MEGACAM.i.16	dep   25.744  -0.04     -       -  -   -      -        4
-  417  MEGACAM.i.17	dep   25.744  -0.04     -       -  -   -      -        4
-  418  MEGACAM.i.18	dep   25.744  -0.04     -       -  -   -      -        4
-  419  MEGACAM.i.19	dep   25.744  -0.04     -       -  -   -      -        4
-  420  MEGACAM.i.20	dep   25.744  -0.04     -       -  -   -      -        4
-  421  MEGACAM.i.21	dep   25.744  -0.04     -       -  -   -      -        4
-  422  MEGACAM.i.22	dep   25.744  -0.04     -       -  -   -      -        4
-  423  MEGACAM.i.23	dep   25.744  -0.04     -       -  -   -      -        4
-  424  MEGACAM.i.24	dep   25.744  -0.04     -       -  -   -      -        4
-  425  MEGACAM.i.25	dep   25.744  -0.04     -       -  -   -      -        4
-  426  MEGACAM.i.26	dep   25.744  -0.04     -       -  -   -      -        4
-  427  MEGACAM.i.27	dep   25.744  -0.04     -       -  -   -      -        4
-  428  MEGACAM.i.28	dep   25.744  -0.04     -       -  -   -      -        4
-  429  MEGACAM.i.29	dep   25.744  -0.04     -       -  -   -      -        4
-  430  MEGACAM.i.30	dep   25.744  -0.04     -       -  -   -      -        4
-  431  MEGACAM.i.31	dep   25.744  -0.04     -       -  -   -      -        4
-  432  MEGACAM.i.32	dep   25.744  -0.04     -       -  -   -      -        4
-  433  MEGACAM.i.33	dep   25.744  -0.04     -       -  -   -      -        4
-  434  MEGACAM.i.34	dep   25.744  -0.04     -       -  -   -      -        4
-  435  MEGACAM.i.35	dep   25.744  -0.04     -       -  -   -      -        4
-  436  MEGACAM.i.36	dep   25.744  -0.04     -       -  -   -      -        4
-  437  MEGACAM.i.37	dep   25.744  -0.04     -       -  -   -      -        4
-  438  MEGACAM.i.38	dep   25.744  -0.04     -       -  -   -      -        4
-  439  MEGACAM.i.39	dep   25.744  -0.04     -       -  -   -      -        4
-
-  500  MEGACAM.z.00	dep   24.800  -0.03     -       -  -   -      -        5
-  501  MEGACAM.z.01	dep   24.800  -0.03     -       -  -   -      -        5
-  502  MEGACAM.z.02	dep   24.800  -0.03     -       -  -   -      -        5
-  503  MEGACAM.z.03	dep   24.800  -0.03     -       -  -   -      -        5
-  504  MEGACAM.z.04	dep   24.800  -0.03     -       -  -   -      -        5
-  505  MEGACAM.z.05	dep   24.800  -0.03     -       -  -   -      -        5
-  506  MEGACAM.z.06	dep   24.800  -0.03     -       -  -   -      -        5
-  507  MEGACAM.z.07	dep   24.800  -0.03     -       -  -   -      -        5
-  508  MEGACAM.z.08	dep   24.800  -0.03     -       -  -   -      -        5
-  509  MEGACAM.z.09	dep   24.800  -0.03     -       -  -   -      -        5
-  510  MEGACAM.z.10	dep   24.800  -0.03     -       -  -   -      -        5
-  511  MEGACAM.z.11	dep   24.800  -0.03     -       -  -   -      -        5
-  512  MEGACAM.z.12	dep   24.800  -0.03     -       -  -   -      -        5
-  513  MEGACAM.z.13	dep   24.800  -0.03     -       -  -   -      -        5
-  514  MEGACAM.z.14	dep   24.800  -0.03     -       -  -   -      -        5
-  515  MEGACAM.z.15	dep   24.800  -0.03     -       -  -   -      -        5
-  516  MEGACAM.z.16	dep   24.800  -0.03     -       -  -   -      -        5
-  517  MEGACAM.z.17	dep   24.800  -0.03     -       -  -   -      -        5
-  518  MEGACAM.z.18	dep   24.800  -0.03     -       -  -   -      -        5
-  519  MEGACAM.z.19	dep   24.800  -0.03     -       -  -   -      -        5
-  520  MEGACAM.z.20	dep   24.800  -0.03     -       -  -   -      -        5
-  521  MEGACAM.z.21	dep   24.800  -0.03     -       -  -   -      -        5
-  522  MEGACAM.z.22	dep   24.800  -0.03     -       -  -   -      -        5
-  523  MEGACAM.z.23	dep   24.800  -0.03     -       -  -   -      -        5
-  524  MEGACAM.z.24	dep   24.800  -0.03     -       -  -   -      -        5
-  525  MEGACAM.z.25	dep   24.800  -0.03     -       -  -   -      -        5
-  526  MEGACAM.z.26	dep   24.800  -0.03     -       -  -   -      -        5
-  527  MEGACAM.z.27	dep   24.800  -0.03     -       -  -   -      -        5
-  528  MEGACAM.z.28	dep   24.800  -0.03     -       -  -   -      -        5
-  529  MEGACAM.z.29	dep   24.800  -0.03     -       -  -   -      -        5
-  530  MEGACAM.z.30	dep   24.800  -0.03     -       -  -   -      -        5
-  531  MEGACAM.z.31	dep   24.800  -0.03     -       -  -   -      -        5
-  532  MEGACAM.z.32	dep   24.800  -0.03     -       -  -   -      -        5
-  533  MEGACAM.z.33	dep   24.800  -0.03     -       -  -   -      -        5
-  534  MEGACAM.z.34	dep   24.800  -0.03     -       -  -   -      -        5
-  535  MEGACAM.z.35	dep   24.800  -0.03     -       -  -   -      -        5
-  536  MEGACAM.z.36	dep   24.800  -0.03     -       -  -   -      -        5
-  537  MEGACAM.z.37	dep   24.800  -0.03     -       -  -   -      -        5
-  538  MEGACAM.z.38	dep   24.800  -0.03     -       -  -   -      -        5
-  539  MEGACAM.z.39	dep   24.800  -0.03     -       -  -   -      -        5
+  100  MEGACAM.u.00	dep   25.280  -0.35     -       -  -   -      -        0
+  101  MEGACAM.u.01	dep   25.280  -0.35     -       -  -   -      -        0
+  102  MEGACAM.u.02	dep   25.280  -0.35     -       -  -   -      -        0
+  103  MEGACAM.u.03	dep   25.280  -0.35     -       -  -   -      -        0
+  104  MEGACAM.u.04	dep   25.280  -0.35     -       -  -   -      -        0
+  105  MEGACAM.u.05	dep   25.280  -0.35     -       -  -   -      -        0
+  106  MEGACAM.u.06	dep   25.280  -0.35     -       -  -   -      -        0
+  107  MEGACAM.u.07	dep   25.280  -0.35     -       -  -   -      -        0
+  108  MEGACAM.u.08	dep   25.280  -0.35     -       -  -   -      -        0
+  109  MEGACAM.u.09	dep   25.280  -0.35     -       -  -   -      -        0
+  110  MEGACAM.u.10	dep   25.280  -0.35     -       -  -   -      -        0
+  111  MEGACAM.u.11	dep   25.280  -0.35     -       -  -   -      -        0
+  112  MEGACAM.u.12	dep   25.280  -0.35     -       -  -   -      -        0
+  113  MEGACAM.u.13	dep   25.280  -0.35     -       -  -   -      -        0
+  114  MEGACAM.u.14	dep   25.280  -0.35     -       -  -   -      -        0
+  115  MEGACAM.u.15	dep   25.280  -0.35     -       -  -   -      -        0
+  116  MEGACAM.u.16	dep   25.280  -0.35     -       -  -   -      -        0
+  117  MEGACAM.u.17	dep   25.280  -0.35     -       -  -   -      -        0
+  118  MEGACAM.u.18	dep   25.280  -0.35     -       -  -   -      -        0
+  119  MEGACAM.u.19	dep   25.280  -0.35     -       -  -   -      -        0
+  120  MEGACAM.u.20	dep   25.280  -0.35     -       -  -   -      -        0
+  121  MEGACAM.u.21	dep   25.280  -0.35     -       -  -   -      -        0
+  122  MEGACAM.u.22	dep   25.280  -0.35     -       -  -   -      -        0
+  123  MEGACAM.u.23	dep   25.280  -0.35     -       -  -   -      -        0
+  124  MEGACAM.u.24	dep   25.280  -0.35     -       -  -   -      -        0
+  125  MEGACAM.u.25	dep   25.280  -0.35     -       -  -   -      -        0
+  126  MEGACAM.u.26	dep   25.280  -0.35     -       -  -   -      -        0
+  127  MEGACAM.u.27	dep   25.280  -0.35     -       -  -   -      -        0
+  128  MEGACAM.u.28	dep   25.280  -0.35     -       -  -   -      -        0
+  129  MEGACAM.u.29	dep   25.280  -0.35     -       -  -   -      -        0
+  130  MEGACAM.u.30	dep   25.280  -0.35     -       -  -   -      -        0
+  131  MEGACAM.u.31	dep   25.280  -0.35     -       -  -   -      -        0
+  132  MEGACAM.u.32	dep   25.280  -0.35     -       -  -   -      -        0
+  133  MEGACAM.u.33	dep   25.280  -0.35     -       -  -   -      -        0
+  134  MEGACAM.u.34	dep   25.280  -0.35     -       -  -   -      -        0
+  135  MEGACAM.u.35	dep   25.280  -0.35     -       -  -   -      -        0
+  136  MEGACAM.u.36	dep   25.280  -0.35     -       -  -   -      -        0
+  137  MEGACAM.u.37	dep   25.280  -0.35     -       -  -   -      -        0
+  138  MEGACAM.u.38	dep   25.280  -0.35     -       -  -   -      -        0
+  139  MEGACAM.u.39	dep   25.280  -0.35     -       -  -   -      -        0
+
+  200  MEGACAM.g.00	dep   26.460  -0.15     -       -  -   -      -        1
+  201  MEGACAM.g.01	dep   26.460  -0.15     -       -  -   -      -        1
+  202  MEGACAM.g.02	dep   26.460  -0.15     -       -  -   -      -        1
+  203  MEGACAM.g.03	dep   26.460  -0.15     -       -  -   -      -        1
+  204  MEGACAM.g.04	dep   26.460  -0.15     -       -  -   -      -        1
+  205  MEGACAM.g.05	dep   26.460  -0.15     -       -  -   -      -        1
+  206  MEGACAM.g.06	dep   26.460  -0.15     -       -  -   -      -        1
+  207  MEGACAM.g.07	dep   26.460  -0.15     -       -  -   -      -        1
+  208  MEGACAM.g.08	dep   26.460  -0.15     -       -  -   -      -        1
+  209  MEGACAM.g.09	dep   26.460  -0.15     -       -  -   -      -        1
+  210  MEGACAM.g.10	dep   26.460  -0.15     -       -  -   -      -        1
+  211  MEGACAM.g.11	dep   26.460  -0.15     -       -  -   -      -        1
+  212  MEGACAM.g.12	dep   26.460  -0.15     -       -  -   -      -        1
+  213  MEGACAM.g.13	dep   26.460  -0.15     -       -  -   -      -        1
+  214  MEGACAM.g.14	dep   26.460  -0.15     -       -  -   -      -        1
+  215  MEGACAM.g.15	dep   26.460  -0.15     -       -  -   -      -        1
+  216  MEGACAM.g.16	dep   26.460  -0.15     -       -  -   -      -        1
+  217  MEGACAM.g.17	dep   26.460  -0.15     -       -  -   -      -        1
+  218  MEGACAM.g.18	dep   26.460  -0.15     -       -  -   -      -        1
+  219  MEGACAM.g.19	dep   26.460  -0.15     -       -  -   -      -        1
+  220  MEGACAM.g.20	dep   26.460  -0.15     -       -  -   -      -        1
+  221  MEGACAM.g.21	dep   26.460  -0.15     -       -  -   -      -        1
+  222  MEGACAM.g.22	dep   26.460  -0.15     -       -  -   -      -        1
+  223  MEGACAM.g.23	dep   26.460  -0.15     -       -  -   -      -        1
+  224  MEGACAM.g.24	dep   26.460  -0.15     -       -  -   -      -        1
+  225  MEGACAM.g.25	dep   26.460  -0.15     -       -  -   -      -        1
+  226  MEGACAM.g.26	dep   26.460  -0.15     -       -  -   -      -        1
+  227  MEGACAM.g.27	dep   26.460  -0.15     -       -  -   -      -        1
+  228  MEGACAM.g.28	dep   26.460  -0.15     -       -  -   -      -        1
+  229  MEGACAM.g.29	dep   26.460  -0.15     -       -  -   -      -        1
+  230  MEGACAM.g.30	dep   26.460  -0.15     -       -  -   -      -        1
+  231  MEGACAM.g.31	dep   26.460  -0.15     -       -  -   -      -        1
+  232  MEGACAM.g.32	dep   26.460  -0.15     -       -  -   -      -        1
+  233  MEGACAM.g.33	dep   26.460  -0.15     -       -  -   -      -        1
+  234  MEGACAM.g.34	dep   26.460  -0.15     -       -  -   -      -        1
+  235  MEGACAM.g.35	dep   26.460  -0.15     -       -  -   -      -        1
+  236  MEGACAM.g.36	dep   26.460  -0.15     -       -  -   -      -        1
+  237  MEGACAM.g.37	dep   26.460  -0.15     -       -  -   -      -        1
+  238  MEGACAM.g.38	dep   26.460  -0.15     -       -  -   -      -        1
+  239  MEGACAM.g.39	dep   26.460  -0.15     -       -  -   -      -        1
+
+  300  MEGACAM.r.00	dep   25.978  -0.10     -       -  -   -      -        2
+  301  MEGACAM.r.01	dep   25.978  -0.10     -       -  -   -      -        2
+  302  MEGACAM.r.02	dep   25.978  -0.10     -       -  -   -      -        2
+  303  MEGACAM.r.03	dep   25.978  -0.10     -       -  -   -      -        2
+  304  MEGACAM.r.04	dep   25.978  -0.10     -       -  -   -      -        2
+  305  MEGACAM.r.05	dep   25.978  -0.10     -       -  -   -      -        2
+  306  MEGACAM.r.06	dep   25.978  -0.10     -       -  -   -      -        2
+  307  MEGACAM.r.07	dep   25.978  -0.10     -       -  -   -      -        2
+  308  MEGACAM.r.08	dep   25.978  -0.10     -       -  -   -      -        2
+  309  MEGACAM.r.09	dep   25.978  -0.10     -       -  -   -      -        2
+  310  MEGACAM.r.10	dep   25.978  -0.10     -       -  -   -      -        2
+  311  MEGACAM.r.11	dep   25.978  -0.10     -       -  -   -      -        2
+  312  MEGACAM.r.12	dep   25.978  -0.10     -       -  -   -      -        2
+  313  MEGACAM.r.13	dep   25.978  -0.10     -       -  -   -      -        2
+  314  MEGACAM.r.14	dep   25.978  -0.10     -       -  -   -      -        2
+  315  MEGACAM.r.15	dep   25.978  -0.10     -       -  -   -      -        2
+  316  MEGACAM.r.16	dep   25.978  -0.10     -       -  -   -      -        2
+  317  MEGACAM.r.17	dep   25.978  -0.10     -       -  -   -      -        2
+  318  MEGACAM.r.18	dep   25.978  -0.10     -       -  -   -      -        2
+  319  MEGACAM.r.19	dep   25.978  -0.10     -       -  -   -      -        2
+  320  MEGACAM.r.20	dep   25.978  -0.10     -       -  -   -      -        2
+  321  MEGACAM.r.21	dep   25.978  -0.10     -       -  -   -      -        2
+  322  MEGACAM.r.22	dep   25.978  -0.10     -       -  -   -      -        2
+  323  MEGACAM.r.23	dep   25.978  -0.10     -       -  -   -      -        2
+  324  MEGACAM.r.24	dep   25.978  -0.10     -       -  -   -      -        2
+  325  MEGACAM.r.25	dep   25.978  -0.10     -       -  -   -      -        2
+  326  MEGACAM.r.26	dep   25.978  -0.10     -       -  -   -      -        2
+  327  MEGACAM.r.27	dep   25.978  -0.10     -       -  -   -      -        2
+  328  MEGACAM.r.28	dep   25.978  -0.10     -       -  -   -      -        2
+  329  MEGACAM.r.29	dep   25.978  -0.10     -       -  -   -      -        2
+  330  MEGACAM.r.30	dep   25.978  -0.10     -       -  -   -      -        2
+  331  MEGACAM.r.31	dep   25.978  -0.10     -       -  -   -      -        2
+  332  MEGACAM.r.32	dep   25.978  -0.10     -       -  -   -      -        2
+  333  MEGACAM.r.33	dep   25.978  -0.10     -       -  -   -      -        2
+  334  MEGACAM.r.34	dep   25.978  -0.10     -       -  -   -      -        2
+  335  MEGACAM.r.35	dep   25.978  -0.10     -       -  -   -      -        2
+  336  MEGACAM.r.36	dep   25.978  -0.10     -       -  -   -      -        2
+  337  MEGACAM.r.37	dep   25.978  -0.10     -       -  -   -      -        2
+  338  MEGACAM.r.38	dep   25.978  -0.10     -       -  -   -      -        2
+  339  MEGACAM.r.39	dep   25.978  -0.10     -       -  -   -      -        2
+
+  400  MEGACAM.i.00	dep   25.744  -0.04     -       -  -   -      -        3
+  401  MEGACAM.i.01	dep   25.744  -0.04     -       -  -   -      -        3
+  402  MEGACAM.i.02	dep   25.744  -0.04     -       -  -   -      -        3
+  403  MEGACAM.i.03	dep   25.744  -0.04     -       -  -   -      -        3
+  404  MEGACAM.i.04	dep   25.744  -0.04     -       -  -   -      -        3
+  405  MEGACAM.i.05	dep   25.744  -0.04     -       -  -   -      -        3
+  406  MEGACAM.i.06	dep   25.744  -0.04     -       -  -   -      -        3
+  407  MEGACAM.i.07	dep   25.744  -0.04     -       -  -   -      -        3
+  408  MEGACAM.i.08	dep   25.744  -0.04     -       -  -   -      -        3
+  409  MEGACAM.i.09	dep   25.744  -0.04     -       -  -   -      -        3
+  410  MEGACAM.i.10	dep   25.744  -0.04     -       -  -   -      -        3
+  411  MEGACAM.i.11	dep   25.744  -0.04     -       -  -   -      -        3
+  412  MEGACAM.i.12	dep   25.744  -0.04     -       -  -   -      -        3
+  413  MEGACAM.i.13	dep   25.744  -0.04     -       -  -   -      -        3
+  414  MEGACAM.i.14	dep   25.744  -0.04     -       -  -   -      -        3
+  415  MEGACAM.i.15	dep   25.744  -0.04     -       -  -   -      -        3
+  416  MEGACAM.i.16	dep   25.744  -0.04     -       -  -   -      -        3
+  417  MEGACAM.i.17	dep   25.744  -0.04     -       -  -   -      -        3
+  418  MEGACAM.i.18	dep   25.744  -0.04     -       -  -   -      -        3
+  419  MEGACAM.i.19	dep   25.744  -0.04     -       -  -   -      -        3
+  420  MEGACAM.i.20	dep   25.744  -0.04     -       -  -   -      -        3
+  421  MEGACAM.i.21	dep   25.744  -0.04     -       -  -   -      -        3
+  422  MEGACAM.i.22	dep   25.744  -0.04     -       -  -   -      -        3
+  423  MEGACAM.i.23	dep   25.744  -0.04     -       -  -   -      -        3
+  424  MEGACAM.i.24	dep   25.744  -0.04     -       -  -   -      -        3
+  425  MEGACAM.i.25	dep   25.744  -0.04     -       -  -   -      -        3
+  426  MEGACAM.i.26	dep   25.744  -0.04     -       -  -   -      -        3
+  427  MEGACAM.i.27	dep   25.744  -0.04     -       -  -   -      -        3
+  428  MEGACAM.i.28	dep   25.744  -0.04     -       -  -   -      -        3
+  429  MEGACAM.i.29	dep   25.744  -0.04     -       -  -   -      -        3
+  430  MEGACAM.i.30	dep   25.744  -0.04     -       -  -   -      -        3
+  431  MEGACAM.i.31	dep   25.744  -0.04     -       -  -   -      -        3
+  432  MEGACAM.i.32	dep   25.744  -0.04     -       -  -   -      -        3
+  433  MEGACAM.i.33	dep   25.744  -0.04     -       -  -   -      -        3
+  434  MEGACAM.i.34	dep   25.744  -0.04     -       -  -   -      -        3
+  435  MEGACAM.i.35	dep   25.744  -0.04     -       -  -   -      -        3
+  436  MEGACAM.i.36	dep   25.744  -0.04     -       -  -   -      -        3
+  437  MEGACAM.i.37	dep   25.744  -0.04     -       -  -   -      -        3
+  438  MEGACAM.i.38	dep   25.744  -0.04     -       -  -   -      -        3
+  439  MEGACAM.i.39	dep   25.744  -0.04     -       -  -   -      -        3
+
+  500  MEGACAM.z.00	dep   24.800  -0.03     -       -  -   -      -        4
+  501  MEGACAM.z.01	dep   24.800  -0.03     -       -  -   -      -        4
+  502  MEGACAM.z.02	dep   24.800  -0.03     -       -  -   -      -        4
+  503  MEGACAM.z.03	dep   24.800  -0.03     -       -  -   -      -        4
+  504  MEGACAM.z.04	dep   24.800  -0.03     -       -  -   -      -        4
+  505  MEGACAM.z.05	dep   24.800  -0.03     -       -  -   -      -        4
+  506  MEGACAM.z.06	dep   24.800  -0.03     -       -  -   -      -        4
+  507  MEGACAM.z.07	dep   24.800  -0.03     -       -  -   -      -        4
+  508  MEGACAM.z.08	dep   24.800  -0.03     -       -  -   -      -        4
+  509  MEGACAM.z.09	dep   24.800  -0.03     -       -  -   -      -        4
+  510  MEGACAM.z.10	dep   24.800  -0.03     -       -  -   -      -        4
+  511  MEGACAM.z.11	dep   24.800  -0.03     -       -  -   -      -        4
+  512  MEGACAM.z.12	dep   24.800  -0.03     -       -  -   -      -        4
+  513  MEGACAM.z.13	dep   24.800  -0.03     -       -  -   -      -        4
+  514  MEGACAM.z.14	dep   24.800  -0.03     -       -  -   -      -        4
+  515  MEGACAM.z.15	dep   24.800  -0.03     -       -  -   -      -        4
+  516  MEGACAM.z.16	dep   24.800  -0.03     -       -  -   -      -        4
+  517  MEGACAM.z.17	dep   24.800  -0.03     -       -  -   -      -        4
+  518  MEGACAM.z.18	dep   24.800  -0.03     -       -  -   -      -        4
+  519  MEGACAM.z.19	dep   24.800  -0.03     -       -  -   -      -        4
+  520  MEGACAM.z.20	dep   24.800  -0.03     -       -  -   -      -        4
+  521  MEGACAM.z.21	dep   24.800  -0.03     -       -  -   -      -        4
+  522  MEGACAM.z.22	dep   24.800  -0.03     -       -  -   -      -        4
+  523  MEGACAM.z.23	dep   24.800  -0.03     -       -  -   -      -        4
+  524  MEGACAM.z.24	dep   24.800  -0.03     -       -  -   -      -        4
+  525  MEGACAM.z.25	dep   24.800  -0.03     -       -  -   -      -        4
+  526  MEGACAM.z.26	dep   24.800  -0.03     -       -  -   -      -        4
+  527  MEGACAM.z.27	dep   24.800  -0.03     -       -  -   -      -        4
+  528  MEGACAM.z.28	dep   24.800  -0.03     -       -  -   -      -        4
+  529  MEGACAM.z.29	dep   24.800  -0.03     -       -  -   -      -        4
+  530  MEGACAM.z.30	dep   24.800  -0.03     -       -  -   -      -        4
+  531  MEGACAM.z.31	dep   24.800  -0.03     -       -  -   -      -        4
+  532  MEGACAM.z.32	dep   24.800  -0.03     -       -  -   -      -        4
+  533  MEGACAM.z.33	dep   24.800  -0.03     -       -  -   -      -        4
+  534  MEGACAM.z.34	dep   24.800  -0.03     -       -  -   -      -        4
+  535  MEGACAM.z.35	dep   24.800  -0.03     -       -  -   -      -        4
+  536  MEGACAM.z.36	dep   24.800  -0.03     -       -  -   -      -        4
+  537  MEGACAM.z.37	dep   24.800  -0.03     -       -  -   -      -        4
+  538  MEGACAM.z.38	dep   24.800  -0.03     -       -  -   -      -        4
+  539  MEGACAM.z.39	dep   24.800  -0.03     -       -  -   -      -        4
 
 # cfh12k photcodes
@@ -284,129 +284,129 @@
   151  CFH12K.B.11	dep   26.000 -0.15     -       -  -   -      -        1
 
-  240  CFH12K.V.00	dep   26.150 -0.12     -       -  -   -      -        2
-  241  CFH12K.V.01	dep   26.150 -0.12     -       -  -   -      -        2
-  242  CFH12K.V.02	dep   26.150 -0.12     -       -  -   -      -        2
-  243  CFH12K.V.03	dep   26.150 -0.12     -       -  -   -      -        2
-  244  CFH12K.V.04	dep   26.150 -0.12     -       -  -   -      -        2
-  245  CFH12K.V.05	dep   26.150 -0.12     -       -  -   -      -        2
-  246  CFH12K.V.06	dep   26.150 -0.12     -       -  -   -      -        2
-  247  CFH12K.V.07	dep   26.150 -0.12     -       -  -   -      -        2
-  248  CFH12K.V.08	dep   26.150 -0.12     -       -  -   -      -        2
-  249  CFH12K.V.09	dep   26.150 -0.12     -       -  -   -      -        2
-  250  CFH12K.V.10	dep   26.150 -0.12     -       -  -   -      -        2
-  251  CFH12K.V.11	dep   26.150 -0.12     -       -  -   -      -        2
-
-  340  CFH12K.R.00	dep   26.190 -0.09     -       -  -   -      -        3
-  341  CFH12K.R.01	dep   26.190 -0.09     -       -  -   -      -        3
-  342  CFH12K.R.02	dep   26.190 -0.09     -       -  -   -      -        3
-  343  CFH12K.R.03	dep   26.190 -0.09     -       -  -   -      -        3
-  344  CFH12K.R.04	dep   26.190 -0.09     -       -  -   -      -        3
-  345  CFH12K.R.05	dep   26.190 -0.09     -       -  -   -      -        3
-  346  CFH12K.R.06	dep   26.190 -0.09     -       -  -   -      -        3
-  347  CFH12K.R.07	dep   26.190 -0.09     -       -  -   -      -        3
-  348  CFH12K.R.08	dep   26.190 -0.09     -       -  -   -      -        3
-  349  CFH12K.R.09	dep   26.190 -0.09     -       -  -   -      -        3
-  350  CFH12K.R.10	dep   26.190 -0.09     -       -  -   -      -        3
-  351  CFH12K.R.11	dep   26.190 -0.09     -       -  -   -      -        3
-
-  440  CFH12K.I.00	dep   26.135 -0.04     -       -  -   -      -        4
-  441  CFH12K.I.01	dep   26.135 -0.04     -       -  -   -      -        4
-  442  CFH12K.I.02	dep   26.135 -0.04     -       -  -   -      -        4
-  443  CFH12K.I.03	dep   26.135 -0.04     -       -  -   -      -        4
-  444  CFH12K.I.04	dep   26.135 -0.04     -       -  -   -      -        4
-  445  CFH12K.I.05	dep   26.135 -0.04     -       -  -   -      -        4
-  446  CFH12K.I.06	dep   26.135 -0.04     -       -  -   -      -        4
-  447  CFH12K.I.07	dep   26.135 -0.04     -       -  -   -      -        4
-  448  CFH12K.I.08	dep   26.135 -0.04     -       -  -   -      -        4
-  449  CFH12K.I.09	dep   26.135 -0.04     -       -  -   -      -        4
-  450  CFH12K.I.10	dep   26.135 -0.04     -       -  -   -      -        4
-  451  CFH12K.I.11	dep   26.135 -0.04     -       -  -   -      -        4
-
-  540  CFH12K.Z.00	dep   25.83 -0.03     -       -  -   -      -        5
-  541  CFH12K.Z.01	dep   25.83 -0.03     -       -  -   -      -        5
-  542  CFH12K.Z.02	dep   25.83 -0.03     -       -  -   -      -        5
-  543  CFH12K.Z.03	dep   25.83 -0.03     -       -  -   -      -        5
-  544  CFH12K.Z.04	dep   25.83 -0.03     -       -  -   -      -        5
-  545  CFH12K.Z.05	dep   25.83 -0.03     -       -  -   -      -        5
-  546  CFH12K.Z.06	dep   25.83 -0.03     -       -  -   -      -        5
-  547  CFH12K.Z.07	dep   25.83 -0.03     -       -  -   -      -        5
-  548  CFH12K.Z.08	dep   25.83 -0.03     -       -  -   -      -        5
-  549  CFH12K.Z.09	dep   25.83 -0.03     -       -  -   -      -        5
-  550  CFH12K.Z.10	dep   25.83 -0.03     -       -  -   -      -        5
-  551  CFH12K.Z.11	dep   25.83 -0.03     -       -  -   -      -        5
-
-  600  CFH12K.Ha.00	dep   25.000 0.04     -       -  -   -      -       5
-  601  CFH12K.Ha.01	dep   25.000 0.04     -       -  -   -      -       5 
-  602  CFH12K.Ha.02	dep   25.000 0.04     -       -  -   -      -       5 
-  603  CFH12K.Ha.03	dep   25.000 0.04     -       -  -   -      -       5 
-  604  CFH12K.Ha.04	dep   25.000 0.04     -       -  -   -      -       5 
-  605  CFH12K.Ha.05	dep   25.000 0.04     -       -  -   -      -       5 
-  606  CFH12K.Ha.06	dep   25.000 0.04     -       -  -   -      -       5 
-  607  CFH12K.Ha.07	dep   25.000 0.04     -       -  -   -      -       5 
-  608  CFH12K.Ha.08	dep   25.000 0.04     -       -  -   -      -       5 
-  609  CFH12K.Ha.09	dep   25.000 0.04     -       -  -   -      -       5 
-  610  CFH12K.Ha.10	dep   25.000 0.04     -       -  -   -      -       5 
-  611  CFH12K.Ha.11	dep   25.000 0.04     -       -  -   -      -       5 
+  240  CFH12K.V.00	dep   26.150 -0.12     -       -  -   -      -        1
+  241  CFH12K.V.01	dep   26.150 -0.12     -       -  -   -      -        1
+  242  CFH12K.V.02	dep   26.150 -0.12     -       -  -   -      -        1
+  243  CFH12K.V.03	dep   26.150 -0.12     -       -  -   -      -        1
+  244  CFH12K.V.04	dep   26.150 -0.12     -       -  -   -      -        1
+  245  CFH12K.V.05	dep   26.150 -0.12     -       -  -   -      -        1
+  246  CFH12K.V.06	dep   26.150 -0.12     -       -  -   -      -        1
+  247  CFH12K.V.07	dep   26.150 -0.12     -       -  -   -      -        1
+  248  CFH12K.V.08	dep   26.150 -0.12     -       -  -   -      -        1
+  249  CFH12K.V.09	dep   26.150 -0.12     -       -  -   -      -        1
+  250  CFH12K.V.10	dep   26.150 -0.12     -       -  -   -      -        1
+  251  CFH12K.V.11	dep   26.150 -0.12     -       -  -   -      -        1
+
+  340  CFH12K.R.00	dep   26.190 -0.09     -       -  -   -      -        2
+  341  CFH12K.R.01	dep   26.190 -0.09     -       -  -   -      -        2
+  342  CFH12K.R.02	dep   26.190 -0.09     -       -  -   -      -        2
+  343  CFH12K.R.03	dep   26.190 -0.09     -       -  -   -      -        2
+  344  CFH12K.R.04	dep   26.190 -0.09     -       -  -   -      -        2
+  345  CFH12K.R.05	dep   26.190 -0.09     -       -  -   -      -        2
+  346  CFH12K.R.06	dep   26.190 -0.09     -       -  -   -      -        2
+  347  CFH12K.R.07	dep   26.190 -0.09     -       -  -   -      -        2
+  348  CFH12K.R.08	dep   26.190 -0.09     -       -  -   -      -        2
+  349  CFH12K.R.09	dep   26.190 -0.09     -       -  -   -      -        2
+  350  CFH12K.R.10	dep   26.190 -0.09     -       -  -   -      -        2
+  351  CFH12K.R.11	dep   26.190 -0.09     -       -  -   -      -        2
+
+  440  CFH12K.I.00	dep   26.135 -0.04     -       -  -   -      -        3
+  441  CFH12K.I.01	dep   26.135 -0.04     -       -  -   -      -        3
+  442  CFH12K.I.02	dep   26.135 -0.04     -       -  -   -      -        3
+  443  CFH12K.I.03	dep   26.135 -0.04     -       -  -   -      -        3
+  444  CFH12K.I.04	dep   26.135 -0.04     -       -  -   -      -        3
+  445  CFH12K.I.05	dep   26.135 -0.04     -       -  -   -      -        3
+  446  CFH12K.I.06	dep   26.135 -0.04     -       -  -   -      -        3
+  447  CFH12K.I.07	dep   26.135 -0.04     -       -  -   -      -        3
+  448  CFH12K.I.08	dep   26.135 -0.04     -       -  -   -      -        3
+  449  CFH12K.I.09	dep   26.135 -0.04     -       -  -   -      -        3
+  450  CFH12K.I.10	dep   26.135 -0.04     -       -  -   -      -        3
+  451  CFH12K.I.11	dep   26.135 -0.04     -       -  -   -      -        3
+
+  540  CFH12K.Z.00	dep   25.83 -0.03     -       -  -   -      -        4
+  541  CFH12K.Z.01	dep   25.83 -0.03     -       -  -   -      -        4
+  542  CFH12K.Z.02	dep   25.83 -0.03     -       -  -   -      -        4
+  543  CFH12K.Z.03	dep   25.83 -0.03     -       -  -   -      -        4
+  544  CFH12K.Z.04	dep   25.83 -0.03     -       -  -   -      -        4
+  545  CFH12K.Z.05	dep   25.83 -0.03     -       -  -   -      -        4
+  546  CFH12K.Z.06	dep   25.83 -0.03     -       -  -   -      -        4
+  547  CFH12K.Z.07	dep   25.83 -0.03     -       -  -   -      -        4
+  548  CFH12K.Z.08	dep   25.83 -0.03     -       -  -   -      -        4
+  549  CFH12K.Z.09	dep   25.83 -0.03     -       -  -   -      -        4
+  550  CFH12K.Z.10	dep   25.83 -0.03     -       -  -   -      -        4
+  551  CFH12K.Z.11	dep   25.83 -0.03     -       -  -   -      -        4
+
+  600  CFH12K.Ha.00	dep   25.000 0.04     -       -  -   -      -       0
+  601  CFH12K.Ha.01	dep   25.000 0.04     -       -  -   -      -       0 
+  602  CFH12K.Ha.02	dep   25.000 0.04     -       -  -   -      -       0 
+  603  CFH12K.Ha.03	dep   25.000 0.04     -       -  -   -      -       0 
+  604  CFH12K.Ha.04	dep   25.000 0.04     -       -  -   -      -       0 
+  605  CFH12K.Ha.05	dep   25.000 0.04     -       -  -   -      -       0 
+  606  CFH12K.Ha.06	dep   25.000 0.04     -       -  -   -      -       0 
+  607  CFH12K.Ha.07	dep   25.000 0.04     -       -  -   -      -       0 
+  608  CFH12K.Ha.08	dep   25.000 0.04     -       -  -   -      -       0 
+  609  CFH12K.Ha.09	dep   25.000 0.04     -       -  -   -      -       0 
+  610  CFH12K.Ha.10	dep   25.000 0.04     -       -  -   -      -       0 
+  611  CFH12K.Ha.11	dep   25.000 0.04     -       -  -   -      -       0 
 									     
-  612  CFH12K.HaOff.00	dep   25.000 0.04     -       -  -   -      -       5
-  613  CFH12K.HaOff.01	dep   25.000 0.04     -       -  -   -      -       5 
-  614  CFH12K.HaOff.02	dep   25.000 0.04     -       -  -   -      -       5 
-  615  CFH12K.HaOff.03	dep   25.000 0.04     -       -  -   -      -       5 
-  616  CFH12K.HaOff.04	dep   25.000 0.04     -       -  -   -      -       5 
-  617  CFH12K.HaOff.05	dep   25.000 0.04     -       -  -   -      -       5 
-  618  CFH12K.HaOff.06	dep   25.000 0.04     -       -  -   -      -       5 
-  619  CFH12K.HaOff.07	dep   25.000 0.04     -       -  -   -      -       5 
-  620  CFH12K.HaOff.08	dep   25.000 0.04     -       -  -   -      -       5 
-  621  CFH12K.HaOff.09	dep   25.000 0.04     -       -  -   -      -       5 
-  622  CFH12K.HaOff.10	dep   25.000 0.04     -       -  -   -      -       5 
-  623  CFH12K.HaOff.11	dep   25.000 0.04     -       -  -   -      -       5 
-  624  CFH12K.CN.00	dep   25.000 0.04     -       -  -   -      -       5
-  625  CFH12K.CN.01	dep   25.000 0.04     -       -  -   -      -       5 
-  626  CFH12K.CN.02	dep   25.000 0.04     -       -  -   -      -       5 
-  627  CFH12K.CN.03	dep   25.000 0.04     -       -  -   -      -       5 
-  628  CFH12K.CN.04	dep   25.000 0.04     -       -  -   -      -       5 
-  629  CFH12K.CN.05	dep   25.000 0.04     -       -  -   -      -       5 
-  630  CFH12K.CN.06	dep   25.000 0.04     -       -  -   -      -       5 
-  631  CFH12K.CN.07	dep   25.000 0.04     -       -  -   -      -       5 
-  632  CFH12K.CN.08	dep   25.000 0.04     -       -  -   -      -       5 
-  633  CFH12K.CN.09	dep   25.000 0.04     -       -  -   -      -       5 
-  634  CFH12K.CN.10	dep   25.000 0.04     -       -  -   -      -       5 
-  635  CFH12K.CN.11	dep   25.000 0.04     -       -  -   -      -       5 
-  636  CFH12K.TiO.00	dep   25.000 0.04     -       -  -   -      -       5
-  637  CFH12K.TiO.01	dep   25.000 0.04     -       -  -   -      -       5 
-  638  CFH12K.TiO.02	dep   25.000 0.04     -       -  -   -      -       5 
-  639  CFH12K.TiO.03	dep   25.000 0.04     -       -  -   -      -       5 
-  640  CFH12K.TiO.04	dep   25.000 0.04     -       -  -   -      -       5 
-  641  CFH12K.TiO.05	dep   25.000 0.04     -       -  -   -      -       5 
-  642  CFH12K.TiO.06	dep   25.000 0.04     -       -  -   -      -       5 
-  643  CFH12K.TiO.07	dep   25.000 0.04     -       -  -   -      -       5 
-  644  CFH12K.TiO.08	dep   25.000 0.04     -       -  -   -      -       5 
-  645  CFH12K.TiO.09	dep   25.000 0.04     -       -  -   -      -       5 
-  646  CFH12K.TiO.10	dep   25.000 0.04     -       -  -   -      -       5 
-  647  CFH12K.TiO.11	dep   25.000 0.04     -       -  -   -      -       5 
-  648  CFH12K.NB920.00	dep   25.000 0.04     -       -  -   -      -       5
-  649  CFH12K.NB920.01	dep   25.000 0.04     -       -  -   -      -       5 
-  650  CFH12K.NB920.02	dep   25.000 0.04     -       -  -   -      -       5 
-  651  CFH12K.NB920.03	dep   25.000 0.04     -       -  -   -      -       5 
-  652  CFH12K.NB920.04	dep   25.000 0.04     -       -  -   -      -       5 
-  653  CFH12K.NB920.05	dep   25.000 0.04     -       -  -   -      -       5 
-  654  CFH12K.NB920.06	dep   25.000 0.04     -       -  -   -      -       5 
-  655  CFH12K.NB920.07	dep   25.000 0.04     -       -  -   -      -       5 
-  678  CFH12K.NB920.08	dep   25.000 0.04     -       -  -   -      -       5 
-  679  CFH12K.NB920.09	dep   25.000 0.04     -       -  -   -      -       5 
-  680  CFH12K.NB920.10	dep   25.000 0.04     -       -  -   -      -       5 
-  681  CFH12K.NB920.11	dep   25.000 0.04     -       -  -   -      -       5 
-  682  CFH12K.B2F.00	dep   25.000 0.04     -       -  -   -      -       5
-  683  CFH12K.B2F.01	dep   25.000 0.04     -       -  -   -      -       5 
-  684  CFH12K.B2F.02	dep   25.000 0.04     -       -  -   -      -       5 
-  685  CFH12K.B2F.03	dep   25.000 0.04     -       -  -   -      -       5 
-  686  CFH12K.B2F.04	dep   25.000 0.04     -       -  -   -      -       5 
-  687  CFH12K.B2F.05	dep   25.000 0.04     -       -  -   -      -       5 
-  688  CFH12K.B2F.06	dep   25.000 0.04     -       -  -   -      -       5 
-  689  CFH12K.B2F.07	dep   25.000 0.04     -       -  -   -      -       5 
-  690  CFH12K.B2F.08	dep   25.000 0.04     -       -  -   -      -       5 
-  691  CFH12K.B2F.09	dep   25.000 0.04     -       -  -   -      -       5 
-  692  CFH12K.B2F.10	dep   25.000 0.04     -       -  -   -      -       5 
-  693  CFH12K.B2F.11	dep   25.000 0.04     -       -  -   -      -       5 
+  612  CFH12K.HaOff.00	dep   25.000 0.04     -       -  -   -      -       0
+  613  CFH12K.HaOff.01	dep   25.000 0.04     -       -  -   -      -       0 
+  614  CFH12K.HaOff.02	dep   25.000 0.04     -       -  -   -      -       0 
+  615  CFH12K.HaOff.03	dep   25.000 0.04     -       -  -   -      -       0 
+  616  CFH12K.HaOff.04	dep   25.000 0.04     -       -  -   -      -       0 
+  617  CFH12K.HaOff.05	dep   25.000 0.04     -       -  -   -      -       0 
+  618  CFH12K.HaOff.06	dep   25.000 0.04     -       -  -   -      -       0 
+  619  CFH12K.HaOff.07	dep   25.000 0.04     -       -  -   -      -       0 
+  620  CFH12K.HaOff.08	dep   25.000 0.04     -       -  -   -      -       0 
+  621  CFH12K.HaOff.09	dep   25.000 0.04     -       -  -   -      -       0 
+  622  CFH12K.HaOff.10	dep   25.000 0.04     -       -  -   -      -       0 
+  623  CFH12K.HaOff.11	dep   25.000 0.04     -       -  -   -      -       0 
+  624  CFH12K.CN.00	dep   25.000 0.04     -       -  -   -      -       0
+  625  CFH12K.CN.01	dep   25.000 0.04     -       -  -   -      -       0 
+  626  CFH12K.CN.02	dep   25.000 0.04     -       -  -   -      -       0 
+  627  CFH12K.CN.03	dep   25.000 0.04     -       -  -   -      -       0 
+  628  CFH12K.CN.04	dep   25.000 0.04     -       -  -   -      -       0 
+  629  CFH12K.CN.05	dep   25.000 0.04     -       -  -   -      -       0 
+  630  CFH12K.CN.06	dep   25.000 0.04     -       -  -   -      -       0 
+  631  CFH12K.CN.07	dep   25.000 0.04     -       -  -   -      -       0 
+  632  CFH12K.CN.08	dep   25.000 0.04     -       -  -   -      -       0 
+  633  CFH12K.CN.09	dep   25.000 0.04     -       -  -   -      -       0 
+  634  CFH12K.CN.10	dep   25.000 0.04     -       -  -   -      -       0 
+  635  CFH12K.CN.11	dep   25.000 0.04     -       -  -   -      -       0 
+  636  CFH12K.TiO.00	dep   25.000 0.04     -       -  -   -      -       0
+  637  CFH12K.TiO.01	dep   25.000 0.04     -       -  -   -      -       0 
+  638  CFH12K.TiO.02	dep   25.000 0.04     -       -  -   -      -       0 
+  639  CFH12K.TiO.03	dep   25.000 0.04     -       -  -   -      -       0 
+  640  CFH12K.TiO.04	dep   25.000 0.04     -       -  -   -      -       0 
+  641  CFH12K.TiO.05	dep   25.000 0.04     -       -  -   -      -       0 
+  642  CFH12K.TiO.06	dep   25.000 0.04     -       -  -   -      -       0 
+  643  CFH12K.TiO.07	dep   25.000 0.04     -       -  -   -      -       0 
+  644  CFH12K.TiO.08	dep   25.000 0.04     -       -  -   -      -       0 
+  645  CFH12K.TiO.09	dep   25.000 0.04     -       -  -   -      -       0 
+  646  CFH12K.TiO.10	dep   25.000 0.04     -       -  -   -      -       0 
+  647  CFH12K.TiO.11	dep   25.000 0.04     -       -  -   -      -       0 
+  648  CFH12K.NB920.00	dep   25.000 0.04     -       -  -   -      -       0
+  649  CFH12K.NB920.01	dep   25.000 0.04     -       -  -   -      -       0 
+  650  CFH12K.NB920.02	dep   25.000 0.04     -       -  -   -      -       0 
+  651  CFH12K.NB920.03	dep   25.000 0.04     -       -  -   -      -       0 
+  652  CFH12K.NB920.04	dep   25.000 0.04     -       -  -   -      -       0 
+  653  CFH12K.NB920.05	dep   25.000 0.04     -       -  -   -      -       0 
+  654  CFH12K.NB920.06	dep   25.000 0.04     -       -  -   -      -       0 
+  655  CFH12K.NB920.07	dep   25.000 0.04     -       -  -   -      -       0 
+  678  CFH12K.NB920.08	dep   25.000 0.04     -       -  -   -      -       0 
+  679  CFH12K.NB920.09	dep   25.000 0.04     -       -  -   -      -       0 
+  680  CFH12K.NB920.10	dep   25.000 0.04     -       -  -   -      -       0 
+  681  CFH12K.NB920.11	dep   25.000 0.04     -       -  -   -      -       0 
+  682  CFH12K.B2F.00	dep   25.000 0.04     -       -  -   -      -       0
+  683  CFH12K.B2F.01	dep   25.000 0.04     -       -  -   -      -       0 
+  684  CFH12K.B2F.02	dep   25.000 0.04     -       -  -   -      -       0 
+  685  CFH12K.B2F.03	dep   25.000 0.04     -       -  -   -      -       0 
+  686  CFH12K.B2F.04	dep   25.000 0.04     -       -  -   -      -       0 
+  687  CFH12K.B2F.05	dep   25.000 0.04     -       -  -   -      -       0 
+  688  CFH12K.B2F.06	dep   25.000 0.04     -       -  -   -      -       0 
+  689  CFH12K.B2F.07	dep   25.000 0.04     -       -  -   -      -       0 
+  690  CFH12K.B2F.08	dep   25.000 0.04     -       -  -   -      -       0 
+  691  CFH12K.B2F.09	dep   25.000 0.04     -       -  -   -      -       0 
+  692  CFH12K.B2F.10	dep   25.000 0.04     -       -  -   -      -       0 
+  693  CFH12K.B2F.11	dep   25.000 0.04     -       -  -   -      -       0 
 
  3200  ISP-Apogee-01.g  dep   19.25  0.00     -       -  -   -      -        1
Index: /trunk/ippconfig/dvo.site.in
===================================================================
--- /trunk/ippconfig/dvo.site.in	(revision 12351)
+++ /trunk/ippconfig/dvo.site.in	(revision 12352)
@@ -18,5 +18,5 @@
 CATMODE			MEF
 CATFORMAT		ELIXIR
-SKY_DEPTH
+SKY_DEPTH               3
 # SKY_TABLE		this may be used to override GSCFILE
 ZERO_PT			25.0
Index: /trunk/ippconfig/ipprc.config.in
===================================================================
--- /trunk/ippconfig/ipprc.config.in	(revision 12351)
+++ /trunk/ippconfig/ipprc.config.in	(revision 12352)
@@ -30,4 +30,17 @@
 END
 
+### camera names as expected by DVO
+DVO.CAMERAS		METADATA
+	MEGACAM			STR	megacam
+	ISP-Apogee     		STR	isp
+#	CTIO_MOSAIC2		STR	ctio_mosaic2
+#	UCAM			STR	ucam
+#	GPC1			STR	gpc1
+#	LRIS_BLUE		STR	lris_blue
+#	LRIS_RED		STR	lris_red
+	SIMTEST			STR	simtest
+	SIMPLE			STR	simple
+END
+
 ### psLib setup
 #TIME		STR	/home/mithrandir/price/pan-starrs/jhroot/i686-pc-linux-gnu/etc/pslib/psTime.config	# Time configuration file
Index: /trunk/ippconfig/isp/dvo.config
===================================================================
--- /trunk/ippconfig/isp/dvo.config	(revision 12352)
+++ /trunk/ippconfig/isp/dvo.config	(revision 12352)
@@ -0,0 +1,44 @@
+
+# location of DVO database tables
+CATDIR			/data/alala/eugene/isp/catdir
+
+# keywords used by DVO to interpret the headers
+
+# used by parse_time to find time-related keywords
+MJD-KEYWORD		MJD-OBS
+DATE-KEYWORD		NONE
+DATE-MODE		NONE
+UT-KEYWORD		NONE
+JD-KEYWORD		NONE
+
+# 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		20
+
+# scaled correlation radius 
+ADDSTAR_NSIGMA		0
Index: /trunk/ippconfig/isp/dvo.layout
===================================================================
--- /trunk/ippconfig/isp/dvo.layout	(revision 12352)
+++ /trunk/ippconfig/isp/dvo.layout	(revision 12352)
@@ -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/megacam/dvo.config
===================================================================
--- /trunk/ippconfig/megacam/dvo.config	(revision 12352)
+++ /trunk/ippconfig/megacam/dvo.config	(revision 12352)
@@ -0,0 +1,63 @@
+
+# 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		NONE
+
+# 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
+
Index: /trunk/ippconfig/megacam/dvo.layout
===================================================================
--- /trunk/ippconfig/megacam/dvo.layout	(revision 12352)
+++ /trunk/ippconfig/megacam/dvo.layout	(revision 12352)
@@ -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/psastro/src/psastroLoadRefstars.c
===================================================================
--- /trunk/psastro/src/psastroLoadRefstars.c	(revision 12351)
+++ /trunk/psastro/src/psastroLoadRefstars.c	(revision 12352)
@@ -21,4 +21,6 @@
     float MAGmax = psMetadataLookupF32(NULL, recipe, "MAG_MAX");
 
+    // XXX CATDIR needs to look up abstracted name from psastro.config
+    // XXX which is then selected from the top-level ipprc.config
     char *CATDIR = psMetadataLookupStr(NULL, recipe, "DVO.CATDIR");
     if (CATDIR == NULL) {
