Changeset 29938 for trunk/Ohana/src/addstar/test/dvomerge.dvo
- Timestamp:
- Dec 5, 2010, 10:04:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/test/dvomerge.dvo (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/test/dvomerge.dvo
r29001 r29938 4 4 5 5 # create 2 populated catdirs, each with a couple of cmf files 6 macro test.dvomerge. update6 macro test.dvomerge.continue 7 7 8 8 tapPLAN 51 … … 16 16 17 17 mkinput 18 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec 10.0 20.0 19 exec addstar -D CATDIR catdir.test1 -D CAMERA simtest test.cmf 20 21 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 02:00:00 -radec 10.0 20.0 22 exec addstar -D CATDIR catdir.test1 -D CAMERA simtest test.cmf 23 24 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 03:00:00 -radec 9.9 20.0 25 exec addstar -D CATDIR catdir.test2 -D CAMERA simtest test.cmf 26 27 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 04:00:00 -radec 9.9 20.0 28 exec addstar -D CATDIR catdir.test2 -D CAMERA simtest test.cmf 29 30 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 05:00:00 -radec 10.0 19.9 31 exec addstar -D CATDIR catdir.test1 -D CAMERA simtest test.cmf 32 33 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 06:00:00 -radec 10.0 19.9 34 exec addstar -D CATDIR catdir.test1 -D CAMERA simtest test.cmf 35 36 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 07:00:00 -radec 9.9 19.9 37 exec addstar -D CATDIR catdir.test2 -D CAMERA simtest test.cmf 38 39 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 08:00:00 -radec 9.9 19.9 40 exec addstar -D CATDIR catdir.test2 -D CAMERA simtest test.cmf 41 42 break 43 44 exec rsync -auc catdir.test2/ catdir.test3/ 45 46 date -var t1 -seconds -reftime 1276000000 47 exec dvomerge catdir.test1 into catdir.test3 48 date -var t2 -seconds -reftime 1276000000 49 echo "merge time: {$t2 - $t1}" 50 51 catdir catdir.test3 52 skyregion {$RA-1} {$RA+1} {$DEC-1} {$DEC+1} 53 mextract ra dec mag 54 create n 0 ra[] 55 subset r0 = ra if (n % 4 == 0) 56 subset r1 = ra if (n % 4 == 1) 57 subset r2 = ra if (n % 4 == 2) 58 subset r3 = ra if (n % 4 == 3) 59 60 catdir catdir.test1/ 61 mextract RA DEC MAG 62 create N 0 RA[] 63 subset R0 = RA if (N % 2 == 0) 64 subset R1 = RA if (N % 2 == 1) 65 66 set dr0 = r0 - R0 67 vstat -q dr0 68 tapOK {abs($MEAN) < 0.001} "ra (in - 0) vs ra (out - 0) (MEAN)" 69 tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)" 70 71 set dr1 = r1 - R1 72 vstat -q dr1 73 tapOK {abs($MEAN) < 0.001} "ra (in - 0) vs ra (out - 0) (MEAN)" 74 tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)" 75 76 catdir catdir.test2/ 77 mextract RA DEC MAG 78 create N 0 RA[] 79 subset R2 = RA if (N % 2 == 0) 80 subset R3 = RA if (N % 2 == 1) 81 82 set dr2 = r2 - R2 83 vstat -q dr2 84 tapOK {abs($MEAN) < 0.001} "ra (in - 0) vs ra (out - 0) (MEAN)" 85 tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)" 86 87 set dr3 = r3 - R3 88 vstat -q dr3 89 tapOK {abs($MEAN) < 0.001} "ra (in - 0) vs ra (out - 0) (MEAN)" 90 tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)" 91 92 # check on updates to imageID 93 catdir catdir.test3 94 imextract imageID 95 sort imageID 96 tapOK {imageID[] == 4} "image IDs exist" 97 tapOK {imageID[0] == 1} "updated image IDs" 98 tapOK {imageID[1] == 2} "updated image IDs" 99 tapOK {imageID[2] == 3} "updated image IDs" 100 tapOK {imageID[3] == 4} "updated image IDs" 101 102 catdir catdir.test3 103 mextract imageID, time 104 set id = imageID 105 set t = time 106 imextract imageID, time 107 108 for i 0 time[] 109 subset T = t if (id == imageID[$i]) 110 set dT = T - time[$i] 111 vstat dT 112 tapOK {abs($MEAN) < 0.00001} "time for measure ID $i (MEAN)" 113 tapOK {abs($SIGMA) < 0.00001} "time for measure ID $i (SIGMA)" 114 end 115 116 # exec rm test.in.txt test.cmf 117 # exec rm -rf catdir.test1 118 # exec rm -rf catdir.test2 119 # exec rm -rf catdir.test3 120 121 tapDONE 122 end 123 124 # create 2 populated catdirs, each with a couple of cmf files 125 macro test.dvomerge.update 126 127 tapPLAN 51 128 129 exec rm -rf catdir.test1 130 exec rm -rf catdir.test2 131 exec rm -rf catdir.test3 132 133 $RA = 10.0 134 $DEC = 20.0 135 136 mkinput 18 137 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC 19 138 exec addstar -D CATDIR catdir.test1 -D CAMERA simtest test.cmf … … 27 146 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 04:00:00 -radec $RA $DEC 28 147 exec addstar -D CATDIR catdir.test2 -D CAMERA simtest test.cmf 148 149 break 29 150 30 151 exec rsync -auc catdir.test2/ catdir.test3/
Note:
See TracChangeset
for help on using the changeset viewer.
