Changeset 37222
- Timestamp:
- Aug 12, 2014, 12:47:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/test/mksasdata.dvo
r37221 r37222 33 33 34 34 # are these used to find the exposures in any way? 35 # center of the test skycell 35 36 $RA = 333.5 36 37 $DEC = -5.0 … … 45 46 # system-wide info 46 47 dbinsert ippToPspsFake (my_id) values (2) 47 dbinsert skycell (radeg, decdeg, skycell_id) values ($RA, $DEC, "skycell. 0000.000")48 dbinsert skycell (radeg, decdeg, skycell_id) values ($RA, $DEC, "skycell.1225.070") 48 49 end 49 50 … … 69 70 end 70 71 exec addstar -D CATDIR $catdir -region 330 340 -10 0 -resort 72 end 71 73 74 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp 75 macro mkcatdir.stk 76 if ($0 != 1) 77 echo "mkcatdir" 78 break 79 end 80 81 mkdir $OUTDIR 82 83 local catdir 84 $catdirbase = catdir.sas.stk 85 $catdir = $OUTDIR/$catdirbase 86 exec rm -rf $catdir 87 88 # a single stack 89 $stkfile = sasdata/RINGS.V3.skycell.1225.070.stk.3366216.skycal.1589960 90 exec addstar -D CAMERA gpc1 -D CATFORMAT PS1_V5 -D CATDIR $catdir $stkfile.cmf 91 end 92 93 macro mkcal 94 95 local catdir 96 $catdir = $OUTDIR/catdir.sas.cam 97 98 # merge the cam and stk databases together: 99 exec dvomerge $OUTDIR/catdir.sas.stk into $catdir 100 101 # run relphot 72 102 echo relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits 73 103 exec relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits 104 105 echo relastro -v -D CATDIR $catdir -images -update-chips -region 330 340 -10 0 -update 106 exec relastro -v -D CATDIR $catdir -images -update-chips -region 330 340 -10 0 -update 74 107 end 75 108 … … 101 134 dbinsert fakeRun (fake_id, cam_id) values ($expID, $expID) 102 135 dbinsert warpRun (warp_id, fake_id) values ($expID, $expID) 103 dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($expID, "skycell. 0000.000", "XY00")136 dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($expID, "skycell.1225.070", "XY00") 104 137 dbinsert addRun (add_id, stage, state, stage_id, minidvodb_name) values ($expID, "cam", "full", $expID, "$catdirbase") 105 138 dbinsert addProcessedExp (add_id, fault) values ($expID, 0) … … 115 148 116 149 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp 117 macro mkcatdir.stk118 if ($0 != 1)119 echo "mkcatdir"120 break121 end122 123 mkdir $OUTDIR124 125 local catdir126 $catdirbase = catdir.sas.stk127 $catdir = $OUTDIR/$catdirbase128 exec rm -rf $catdir129 130 # are these used to find the exposures in any way?131 $RA = 333.5132 $DEC = -5.0133 134 # a single stack135 $stkfile = sasdata/RINGS.V3.skycell.1225.070.stk.3366216.skycal.1589960136 exec addstar -D CAMERA gpc1 -D CATFORMAT PS1_V5 -D CATDIR $catdir $stkfile.cmf137 138 # echo relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update139 # exec relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update140 end141 142 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp143 150 macro mkgpc1.stk 144 151 if ($0 != 1) … … 149 156 local catdirbase 150 157 $catdirbase = catdir.sas.cam 151 152 # are these used to find the exposures in any way?153 $RA = 333.5154 $DEC = -5.0155 158 156 159 $TIMEFORMAT = mjd … … 168 171 169 172 $expID = 1 170 dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell. 0000.000", "g.00000", "37500M")173 dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.1225.070", "i.00000", "37500M") 171 174 dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID) 172 175 dbinsert stackSumSkyfile (stack_id, mjd_obs) values ($stkID, $mjd)
Note:
See TracChangeset
for help on using the changeset viewer.
