Changeset 38836
- Timestamp:
- Oct 10, 2015, 12:29:55 PM (11 years ago)
- Location:
- trunk/ippToPsps/test
- Files:
-
- 2 edited
-
fulltest.sh (modified) (6 diffs)
-
mkgpc1data.dvo (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/test/fulltest.sh
r38823 r38836 157 157 # XXX this command will blow away an existing database!! 158 158 mysql -h localhost -u dvo -pdvo -e "create database if not exists ipptopsps_test" || exit 3 159 mysql -h localhost -u dvo -pdvo ipptopsps_test < $IPPTOPSPS_DATA/ippToPspsDbSchema.sql || exit 2 159 mysql -h localhost -u dvo -pdvo ipptopsps_test < $IPPTOPSPS_DATA/ippToPspsDbSchema.sql || exit 3 160 echo " ---- init ipptopsps_test: done ----" 160 161 endif 161 162 … … 211 212 echo "2000-01-01 00:00:00.0 " >> initbatch.dat # trange_start 212 213 echo "2020-01-01 00:00:00.0 " >> initbatch.dat # trange_end 213 cat initbatch.dat | ippjython queue.py -test edit214 if ($status) exit 214 ippjython queue.py -test edit < initbatch.dat 215 if ($status) exit 1 215 216 216 217 echo "" … … 219 220 rm -rf $OUTDIR/IN 220 221 ippjython loader.py -test initbatch init -simtest < /dev/null 221 if ($status) exit 222 if ($status) exit 1 222 223 endif 223 224 … … 259 260 echo "2000-01-01 00:00:00.0 " >> cambatch.dat # trange_start 260 261 echo "2020-01-01 00:00:00.0 " >> cambatch.dat # trange_end 261 cat cambatch.dat | ippjython queue.py -test edit -simtest262 if ($status) exit 262 ippjython queue.py -test edit -simtest < cambatch.dat 263 if ($status) exit 1 263 264 endif 264 265 … … 312 313 echo "2000-01-01 00:00:00.0 " >> stackbatch.dat # trange_start 313 314 echo "2020-01-01 00:00:00.0 " >> stackbatch.dat # trange_end 314 cat stackbatch.dat | ippjython queue.py -test edit -simtest315 ippjython queue.py -test edit -simtest < stackbatch.dat 315 316 if ($status) exit 316 317 endif … … 368 369 echo "2000-01-01 00:00:00.0 " >> objectbatch.dat # trange_start 369 370 echo "2020-01-01 00:00:00.0 " >> objectbatch.dat # trange_end 370 cat objectbatch.dat | ippjython queue.py -test edit once -simtest371 ippjython queue.py -test edit once -simtest < objectbatch.dat 371 372 if ($status) exit 372 373 endif -
trunk/ippToPsps/test/mkgpc1data.dvo
r38823 r38836 13 13 14 14 # imagedata describes the full fake exposure set. the fields are 15 # exp_id stack_id raw_file exp_file offset16 15 list imagedata 16 # exp_id filebase M_off date time 17 1 $OUTDIR/test.01 0.000 2010/01/01 01:00:00 18 2 $OUTDIR/test.02 -0.025 2010/01/01 02:00:00 19 3 $OUTDIR/test.03 0.025 2010/01/01 03:00:00 20 4 $OUTDIR/test.04 0.010 2010/01/01 04:00:00 21 5 $OUTDIR/test.05 0.000 2010/01/01 05:00:00 22 6 $OUTDIR/test.06 -0.025 2010/01/01 06:00:00 23 7 $OUTDIR/test.07 0.025 2010/01/01 07:00:00 24 8 $OUTDIR/test.08 0.010 2010/01/01 08:00:00 25 9 $OUTDIR/test.09 0.000 2010/01/01 09:00:00 26 10 $OUTDIR/test.10 -0.025 2010/01/01 10:00:00 27 11 $OUTDIR/test.11 0.025 2010/01/01 11:00:00 28 12 $OUTDIR/test.12 0.010 2010/01/01 12:00:00 29 end 30 31 list warpdata 17 32 1 1 $OUTDIR/test.01 0.000 2010/01/01 01:00:00 18 33 2 1 $OUTDIR/test.02 -0.025 2010/01/01 02:00:00 … … 30 45 31 46 list stackdata 32 1 $OUTDIR/stack.01 0.010 33 2 $OUTDIR/stack.02 0.020 34 3 $OUTDIR/stack.03 0.030 47 # stk_id filename M_off 48 1 $OUTDIR/stack.01 0.010 49 2 $OUTDIR/stack.02 0.020 50 3 $OUTDIR/stack.03 0.030 35 51 end 36 52 37 53 macro mkfull 38 54 init.db 39 # mkcatdir.cam PS1_V3 PS1_V440 # mkcatdir.stk PS1_V3 PS1_V441 # mkcatdir.cam PS1_V4 PS1_V442 # mkcatdir.stk PS1_V4 PS1_V443 55 mkcatdir.cam PS1_V5 PS1_V5 44 56 mkcatdir.stk PS1_V5 PS1_V5 … … 92 104 list word -split $imagedata:$i 93 105 $ID = $word:0 94 $rawfile = $word: 2\.txt95 $cmffile = $word: 2\.smf96 $offset = $word: 397 98 sprintf myDATE "%s" $word: 499 sprintf myTIME "%s" $word: 5106 $rawfile = $word:1\.txt 107 $cmffile = $word:1\.smf 108 $offset = $word:2 109 110 sprintf myDATE "%s" $word:3 111 sprintf myTIME "%s" $word:4 100 112 echo ctimes -abs $myDATE,$myTIME -var mjd 101 113 ctimes -abs $myDATE,$myTIME -var mjd 102 114 103 # XXX for a simple test of ippToPsps, i need to generate smf files with some correspondence to gpc1 exposure smfs 115 # XXX for a simple test of ippToPsps, i need to generate smf files 116 # with some correspondence to gpc1 exposure smfs 117 104 118 # this means: 105 119 # 1) a PHU with some basic header data 106 120 # 2) add extensions with EXTNAME of XYnn 121 122 # NOTE: mkcmf does not populate a PHU, so we have to fake it 107 123 108 124 # create an empty header and populate with the desired keywords … … 150 166 exec mkcmf -photcode SIMTEST.r.Chip -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0 151 167 152 # keywords which are read from image extension153 # MSKY_MN154 # MSKY_SIG155 # FSATUR156 # FLIMIT157 # CERROR158 # ZPT_OBS159 # NASTRO160 # NASTRO161 # CNAXIS1162 # CNAXIS2163 # FWHM_MAJ164 # FWHM_MIN165 # ANGLE166 # IQ_FW1167 # IQ_FW2168 # IQ_FW1169 # IQ_FW2170 # APMIFIT171 # DAPMIFIT172 # DETECTOR173 # IMAGEID174 # DETREND.MASK175 # DETREND.DARK176 # DETREND.FLAT177 # ZPT_OBS178 # CTYPE1179 # CTYPE2180 # CRVAL1181 # CRVAL2182 # CRPIX1183 # CRPIX2184 # CDELT1185 # CDELT2186 # PC001001187 # PC001002188 # PC002001189 # PC002002190 # NPLYTERM191 # PCA1X3Y0192 # PCA1X2Y1193 # PCA1X1Y2194 # PCA1X0Y3195 # PCA1X2Y0196 # PCA1X1Y1197 # PCA1X0Y2198 # PCA2X3Y0199 # PCA2X2Y1200 # PCA2X1Y2201 # PCA2X0Y3202 # PCA2X2Y0203 # PCA2X1Y1204 # PCA2X0Y2205 206 168 if ($i == 3) 207 169 echo "NOTE: not adding image $i to DVO : this simulates images with poor astrometry" … … 210 172 211 173 if (0 && ($i == 5)) 212 echo "NOTE: adding image $i 2x to DVO, but without detections : this simulates a failure in LAP dvo"174 echo "NOTE: adding image $i 2x to DVO, but without detections : this simulates a failure in dvo contruction" 213 175 214 176 echo addstar -D SKY_DEPTH 4 -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass -image -dup-images … … 217 179 218 180 if (0 && ($i == 7)) 219 echo "NOTE: adding detections from image $i 2x to DVO, but with wrong photcode and duplicate image ID : this simulates a failure in LAP dvo"181 echo "NOTE: adding detections from image $i 2x to DVO, but with wrong photcode and duplicate image ID : this simulates a failure in dvo construction" 220 182 echo addstar -D SKY_DEPTH 4 -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass -dup-images -image-id-override 7 -photcode 2MASS_J 221 183 exec addstar -D SKY_DEPTH 4 -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass -dup-images -image-id-override 7 -photcode 2MASS_J
Note:
See TracChangeset
for help on using the changeset viewer.
