- Timestamp:
- Jan 22, 2013, 10:21:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/test/mksasdata.dvo
r35015 r35018 18 18 $dbpass = dvo 19 19 20 $RA = 10.021 $DEC = 20.020 $RA = 333.8 21 $DEC = 1.6 22 22 23 23 break -auto off … … 35 35 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp 36 36 macro mkcatdir 37 if ($0 != 3)38 echo "mkcatdir .cam (cmftype) (dvotype)"37 if ($0 != 1) 38 echo "mkcatdir" 39 39 break 40 40 end … … 43 43 44 44 local catdir 45 $catdir = $OUTDIR/catdir.sas12 45 $catdirbase = catdir.sas12 46 $catdir = $OUTDIR/$catdirbase 46 47 exec rm -rf $catdir 47 48 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 49 55 50 56 # 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") 59 66 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 61 70 71 $stkID = 1 62 72 dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.0000.000", "g.00000", "testsoft") 63 73 dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID) … … 65 75 dbinsert skycalRun (skycal_id, stack_id) values ($stkID, $stkID) 66 76 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") 69 78 70 79 # 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") 72 81 dbinsert minidvodbProcessed (minidvodb_id, fault) values (1, 0) 73 82 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") 75 84 dbinsert mergedvodbProcessed (merge_id, fault) values (1, 0) 76 85 77 86 # 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") 79 88 dbinsert minidvodbProcessed (minidvodb_id, fault) values (2, 0) 80 89 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") 82 91 dbinsert mergedvodbProcessed (merge_id, fault) values (2, 0) 83 92 end
Note:
See TracChangeset
for help on using the changeset viewer.
