Index: /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh
===================================================================
--- /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh	(revision 37133)
+++ /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh	(revision 37134)
@@ -47,5 +47,6 @@
    bg_stdev REAL,
    ra FLOAT,
-   decl FLOAT
+   decl FLOAT,
+   dateobs DATETIME 
   );
   CREATE TABLE chipRun (
Index: /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo
===================================================================
--- /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo	(revision 37133)
+++ /branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo	(revision 37134)
@@ -15,16 +15,16 @@
 # exp_id stack_id raw_file exp_file offset
 list imagedata
- 1 1 $OUTDIR/test.01  0.000 
- 2 1 $OUTDIR/test.02 -0.025
- 3 1 $OUTDIR/test.03  0.025
- 4 1 $OUTDIR/test.04  0.010
- 5 2 $OUTDIR/test.05  0.000 
- 6 2 $OUTDIR/test.06 -0.025
- 7 2 $OUTDIR/test.07  0.025
- 8 2 $OUTDIR/test.08  0.010
- 9 3 $OUTDIR/test.09  0.000 
-10 3 $OUTDIR/test.10 -0.025
-11 3 $OUTDIR/test.11  0.025
-12 3 $OUTDIR/test.12  0.010
+ 1 1 $OUTDIR/test.01  0.000 2010/01/01 01:00:00
+ 2 1 $OUTDIR/test.02 -0.025 2010/01/01 02:00:00
+ 3 1 $OUTDIR/test.03  0.025 2010/01/01 03:00:00
+ 4 1 $OUTDIR/test.04  0.010 2010/01/01 04:00:00
+ 5 2 $OUTDIR/test.05  0.000 2010/01/01 05:00:00
+ 6 2 $OUTDIR/test.06 -0.025 2010/01/01 06:00:00
+ 7 2 $OUTDIR/test.07  0.025 2010/01/01 07:00:00
+ 8 2 $OUTDIR/test.08  0.010 2010/01/01 08:00:00
+ 9 3 $OUTDIR/test.09  0.000 2010/01/01 09:00:00
+10 3 $OUTDIR/test.10 -0.025 2010/01/01 10:00:00
+11 3 $OUTDIR/test.11  0.025 2010/01/01 11:00:00
+12 3 $OUTDIR/test.12  0.010 2010/01/01 12:00:00
 end
 
@@ -96,5 +96,8 @@
     $offset = $word:3
 
-    ctimes -abs 2008/01/01,$i\:00:00 -var mjd
+    sprintf myDATE "%s" $word:4
+    sprintf myTIME "%s" $word:5
+    echo ctimes -abs $myDATE,$myTIME -var mjd
+    ctimes -abs $myDATE,$myTIME -var mjd
 
     # XXX for a simple test of ippToPsps, i need to generate smf files with some correspondence to gpc1 exposure smfs
@@ -144,5 +147,5 @@
 
     mkinput $offset $rawfile
-    exec mkcmf -no-noise -append $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
+    exec mkcmf -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
 
     # keywords which are read from image extension
@@ -282,6 +285,6 @@
   end
 
-  echo relphot -D CATDIR $catdir.stk -region 8 12 18 22 -images g,r,i,z,y -update
-  exec relphot -D CATDIR $catdir.stk -region 8 12 18 22 -images g,r,i,z,y -update
+  echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
+  exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
 
   if ($PARALLEL)
@@ -319,5 +322,8 @@
 
   # a single exposure
-  dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl) values ($myID, "test.$myID", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0})
+  echo $myDATE
+  echo $myTIME 
+
+  dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl, dateobs) values ($myID, "test.$myID", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0}, '$myDATE $myTIME')
   dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
   dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
@@ -352,4 +358,6 @@
     $expID = $tmp:0
     $expfile = $tmp:2
+    sprintf myDATE "%s" $tmp:4
+    sprintf myTIME "%s" $tmp:5
     insert.exp $expID $expfile
     dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
