IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2013, 10:21:41 AM (13 years ago)
Author:
eugene
Message:

add a complete test suite using real gpc1 data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/test/mksasdata.dvo

    r35015 r35018  
    1818  $dbpass = dvo
    1919
    20   $RA = 10.0
    21   $DEC = 20.0
     20  $RA = 333.8
     21  $DEC = 1.6
    2222
    2323  break -auto off
     
    3535# create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp
    3636macro mkcatdir
    37   if ($0 != 3)
    38     echo "mkcatdir.cam (cmftype) (dvotype)"
     37  if ($0 != 1)
     38    echo "mkcatdir"
    3939    break
    4040  end
     
    4343
    4444  local catdir
    45   $catdir = $OUTDIR/catdir.sas12
     45  $catdirbase = catdir.sas12
     46  $catdir = $OUTDIR/$catdirbase
    4647  exec rm -rf $catdir
    4748
    48   addstar -D CAMERA gpc1 sas12.test.psps/o5745g0620o.356996.cm.473458.smf -D CATDIR $catdir
     49  $expfile = sas12.test.psps/o5745g0620o.356996.cm.473458
     50  exec addstar -D CAMERA gpc1 -D CATDIR $catdir $expfile.smf
     51
     52  # are these used to find the exposures in any way?
     53  $RA = 333.8
     54  $DEC = 1.6
    4955
    5056  # a single exposure
    51   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})
    52   dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
    53   dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
    54   dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$filename")
    55   dbinsert fakeRun (fake_id, cam_id) values ($myID, $myID)
    56   dbinsert warpRun (warp_id, fake_id) values ($myID, $myID)
    57   dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($myID, "skycell.0000.000", "XY00")
    58   dbinsert addRun (stage, state, stage_id, minidvodb_name) values ("cam", "full", $myID, "catdir.cam")
     57  $expID = 1
     58  dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl) values ($expID, "o5745g0620o", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0})
     59  dbinsert chipRun (exp_id, chip_id) values ($expID, $expID)
     60  dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($expID, $expID, "testgroup", "testsoft")
     61  dbinsert camProcessedExp (cam_id, path_base) values ($expID, "$expfile")
     62  dbinsert fakeRun (fake_id, cam_id) values ($expID, $expID)
     63  dbinsert warpRun (warp_id, fake_id) values ($expID, $expID)
     64  dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($expID, "skycell.0000.000", "XY00")
     65  dbinsert addRun (stage, state, stage_id, minidvodb_name) values ("cam", "full", $expID, "$catdirbase")
    5966
    60   addstar -D CAMERA gpc1 sas12.test.psps/RINGS.V3.skycell.1225.070.stk.1032983.skycal.40531.cmf -D CATDIR $catdir
     67  # a single stack
     68  $stkfile = sas12.test.psps/RINGS.V3.skycell.1225.070.stk.1032983.skycal.40531
     69  exec addstar -D CAMERA gpc1 -D CATDIR $catdir $stkfile.cmf
    6170
     71  $stkID = 1
    6272  dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.0000.000", "g.00000", "testsoft")
    6373  dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
     
    6575  dbinsert skycalRun (skycal_id, stack_id) values ($stkID, $stkID)
    6676  dbinsert skycalResult (skycal_id, path_base) values ($stkID, "$stkfile")
    67  
    68   dbinsert addRun (stage, state, stage_id, minidvodb_name) values ("skycal", "full", $stkID, "catdir.stk")
     77  dbinsert addRun (stage, state, stage_id, minidvodb_name) values ("skycal", "full", $stkID, "$catdirbase")
    6978
    7079  # catdirs for the exposures
    71   dbinsert minidvodbRun (minidvodb_name, minidvodb_id, state) values ("catdir.cam", 1, "merged")
     80  dbinsert minidvodbRun (minidvodb_name, minidvodb_id, state) values ("$catdirbase", 1, "merged")
    7281  dbinsert minidvodbProcessed (minidvodb_id, fault) values (1, 0)
    7382 
    74   dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (1, 1, "full", "catdir.cam")
     83  dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (1, 1, "full", "$catdirbase")
    7584  dbinsert mergedvodbProcessed (merge_id, fault) values (1, 0)
    7685
    7786  # catdirs for the stack
    78   dbinsert minidvodbRun (minidvodb_name, minidvodb_id, state) values ("catdir.stk", 2, "merged")
     87  dbinsert minidvodbRun (minidvodb_name, minidvodb_id, state) values ("$catdirbase", 2, "merged")
    7988  dbinsert minidvodbProcessed (minidvodb_id, fault) values (2, 0)
    8089 
    81   dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (2, 2, "full", "catdir.stk")
     90  dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (2, 2, "full", "$catdirbase")
    8291  dbinsert mergedvodbProcessed (merge_id, fault) values (2, 0)
    8392end
Note: See TracChangeset for help on using the changeset viewer.