Changeset 35000 for branches/eam_branches/ipp-20121219/ippToPsps/test
- Timestamp:
- Jan 20, 2013, 7:08:09 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20121219/ippToPsps/test
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
fulltest.sh (modified) (4 diffs)
-
mkgpc1data.dvo (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/test
-
Property svn:ignore
set to
testdata
-
Property svn:ignore
set to
-
branches/eam_branches/ipp-20121219/ippToPsps/test/fulltest.sh
r34998 r35000 13 13 # mkgpc1.sh user localhost eam eam 14 14 15 set mkgpc1 = 016 set initdb = 017 set mkdummy = 018 set initscratch = 015 set mkgpc1 = 1 16 set initdb = 1 17 set mkdummy = 1 18 set initscratch = 1 19 19 set createqueue = 1 20 set initbatch = 0 20 set initbatch = 1 21 set onebatch = 1 22 23 set OUTDIR = "testdata" 21 24 set queuename = "test" 22 25 … … 89 92 0 90 93 catdir.cam 91 catdir.cam94 $OUTDIR/catdir.cam 92 95 9 93 96 11 … … 95 98 21 96 99 1 97 test 100 $OUTDIR 98 101 0 99 102 0 … … 116 119 endif 117 120 121 if ($onebatch) then 122 ippjython loader.py $queuename once 123 endif 124 -
branches/eam_branches/ipp-20121219/ippToPsps/test/mkgpc1data.dvo
r34997 r35000 6 6 7 7 macro test.all 8 test.relphot PS1_V2 PS1_V28 test.relphot PS1_V2 PS1_V2 9 9 end 10 11 ## this script must be run in this directory, output data goes to 'testdata' 12 $OUTDIR = testdata 13 14 # note that ipptopsps and gpc1db need the path ex extension 15 # I'm setting the base filename without the .smf and add it in mkcatdir.* 10 16 11 17 # imagedata describes the full fake exposure set. the fields are 12 18 # exp_id stack_id raw_file exp_file offset 13 19 list imagedata 14 1 1 test.01.txt test.01.smf0.00015 2 1 test.02.txt test.02.smf-0.02516 3 1 test.03.txt test.03.smf0.02517 4 1 test.04.txt test.04.smf0.01018 5 2 test.05.txt test.05.smf0.00019 6 2 test.06.txt test.06.smf-0.02520 7 2 test.07.txt test.07.smf0.02521 8 2 test.08.txt test.08.smf0.01022 9 3 test.09.txt test.09.smf0.00023 10 3 test.10.txt test.10.smf-0.02524 11 3 test.11.txt test.11.smf0.02525 12 3 test.12.txt test.12.smf0.01020 1 1 $OUTDIR/test.01 0.000 21 2 1 $OUTDIR/test.02 -0.025 22 3 1 $OUTDIR/test.03 0.025 23 4 1 $OUTDIR/test.04 0.010 24 5 2 $OUTDIR/test.05 0.000 25 6 2 $OUTDIR/test.06 -0.025 26 7 2 $OUTDIR/test.07 0.025 27 8 2 $OUTDIR/test.08 0.010 28 9 3 $OUTDIR/test.09 0.000 29 10 3 $OUTDIR/test.10 -0.025 30 11 3 $OUTDIR/test.11 0.025 31 12 3 $OUTDIR/test.12 0.010 26 32 end 27 33 28 34 list stackdata 29 1 stack.01.txt stack.01.cmf0.01030 2 stack.02.txt stack.02.cmf0.02031 3 stack.03.txt stack.03.cmf0.03035 1 $OUTDIR/stack.01 0.010 36 2 $OUTDIR/stack.02 0.020 37 3 $OUTDIR/stack.03 0.030 32 38 end 33 39 … … 54 60 exec mkgpc1.sh create $dbhost $dbname $dbuser $dbpass 55 61 56 dbconnect $dbhost $dbuser $dbname 62 dbconnect $dbhost $dbuser $dbname -p $dbpass 57 63 58 64 # system-wide info … … 70 76 # tapPLAN 4 71 77 78 mkdir $OUTDIR 79 72 80 local i catdir RA DEC ID rawfile cmffile offset 73 $catdir = catdir.cam81 $catdir = $OUTDIR/catdir.cam 74 82 exec rm -rf $catdir 75 83 … … 83 91 list word -split $imagedata:$i 84 92 $ID = $word:0 85 $rawfile = $word:2 86 $cmffile = $word: 387 $offset = $word: 493 $rawfile = $word:2\.txt 94 $cmffile = $word:2\.smf 95 $offset = $word:3 88 96 89 97 ctimes -ref 2008/01/01,$i\:00:00 -var mjd … … 116 124 # tapPLAN 4 117 125 126 mkdir $OUTDIR 127 118 128 local i catdir RA DEC ID rawfile cmffile offset 119 $catdir = catdir.stk129 $catdir = $OUTDIR/catdir.stk 120 130 exec rm -rf $catdir 121 131 … … 126 136 list word -split $stackdata:$i 127 137 $ID = $word:0 128 $rawfile = $word:1 129 $cmffile = $word: 2130 $offset = $word: 3138 $rawfile = $word:1\.txt 139 $cmffile = $word:1\.cmf 140 $offset = $word:2 131 141 132 142 mkinput $offset $rawfile … … 150 160 local myID filename 151 161 $myID = $1 152 $filename = `basename $2 .smf`153 pwd -var cwd 154 162 $filename = $2 163 164 # pwd -var cwd 155 165 # NOTE: the filename is an absolute path without cmf extension 166 # XXX: no longer true 156 167 157 168 # a single exposure … … 159 170 dbinsert chipRun (exp_id, chip_id) values ($myID, $myID) 160 171 dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft") 161 dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$ cwd/$filename")172 dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$filename") 162 173 dbinsert fakeRun (fake_id, cam_id) values ($myID, $myID) 163 174 dbinsert warpRun (warp_id, fake_id) values ($myID, $myID) … … 187 198 188 199 $expID = $tmp:0 189 $expfile = $tmp: 3200 $expfile = $tmp:2 190 201 insert.exp $expID $expfile 191 202 dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID) … … 206 217 list word -split $stackdata:$i 207 218 $ID = $word:0 208 $cmffile = $word: 2219 $cmffile = $word:1 209 220 insert.stack $ID $cmffile 210 221 end
Note:
See TracChangeset
for help on using the changeset viewer.
