Changeset 37157
- Timestamp:
- Jul 31, 2014, 11:00:48 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140717/ippToPsps/test
- Files:
-
- 3 edited
-
fulltest.sh (modified) (9 diffs)
-
mkgpc1.sh (modified) (1 diff)
-
mkgpc1data.dvo (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/test/fulltest.sh
r37129 r37157 169 169 mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_test_scratch" 170 170 ippjython setupScratchDb.py -test 171 if ($status) exit 171 172 endif 172 173 … … 211 212 echo "2020-01-01 00:00:00.0 " >> initbatch.dat # trange_end 212 213 cat initbatch.dat | ippjython queue.py -test edit 214 if ($status) exit 213 215 214 216 echo "" … … 217 219 rm -rf $OUTDIR/IN 218 220 ippjython loader.py -test initbatch init 221 if ($status) exit 219 222 endif 220 223 … … 257 260 echo "2020-01-01 00:00:00.0 " >> cambatch.dat # trange_end 258 261 cat cambatch.dat | ippjython queue.py -test edit 262 if ($status) exit 259 263 endif 260 264 … … 265 269 rm -rf $OUTDIR/P2 266 270 ippjython loader.py -test $queuename once 271 if ($status) exit 267 272 endif 268 273 … … 308 313 echo "2020-01-01 00:00:00.0 " >> stackbatch.dat # trange_end 309 314 cat stackbatch.dat | ippjython queue.py -test edit 315 if ($status) exit 310 316 endif 311 317 … … 319 325 rm -rf $OUTDIR/ST 320 326 ippjython loader.py -test $stackqueuename once 327 if ($status) exit 321 328 endif 322 329 … … 362 369 echo "2020-01-01 00:00:00.0 " >> objectbatch.dat # trange_end 363 370 cat objectbatch.dat | ippjython queue.py -test edit once 371 if ($status) exit 364 372 endif 365 373 … … 372 380 endif 373 381 rm -rf $OUTDIR/OB 374 ippjython loader.py -test $objectqueuename once 375 endif 376 382 383 ippjython loader.py -test $objectqueuename once 384 if ($status) exit 385 endif 386 -
branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh
r37134 r37157 89 89 ); 90 90 CREATE TABLE stackSumSkyfile ( 91 stack_id INT 91 stack_id INT, 92 mjd_obs DOUBLE 92 93 ); 93 94 CREATE TABLE skycalRun ( 95 sky_id INT, 94 96 skycal_id INT, 95 97 stack_id INT -
branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo
r37134 r37157 147 147 148 148 mkinput $offset $rawfile 149 exec mkcmf - no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0149 exec mkcmf -photcode SIMTEST.r.Chip -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0 150 150 151 151 # keywords which are read from image extension … … 275 275 276 276 mkinput $offset $rawfile 277 exec mkcmf $rawfile $cmffile -extname SkyChip -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 1277 exec mkcmf -photcode SIMTEST.r.SkyChip $rawfile $cmffile -extname SkyChip -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 1 278 278 279 279 # add some required header keywords: … … 351 351 dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.0000.000", "g.00000", "testsoft") 352 352 353 $TIMEFORMAT = mjd 354 $TIMEREF = 2001/01/01,00:00:00 355 356 $mjdsum = 0.0 357 $Nstk = 0 358 353 359 for i 0 $imagedata:n 354 360 echo $imagedata:$i … … 362 368 insert.exp $expID $expfile 363 369 dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID) 364 end 365 dbinsert stackSumSkyfile (stack_id) values ($stkID) 366 dbinsert skycalRun (skycal_id, stack_id) values ($stkID, $stkID) 370 371 echo ctimes -abs $myDATE,$myTIME -var mjd 372 ctimes -abs $myDATE,$myTIME -var mjd 373 $mjdsum += $mjd 374 $Nstk ++ 375 end 376 $mjd = $mjdsum / $Nstk 377 378 dbinsert stackSumSkyfile (stack_id, mjd_obs) values ($stkID, $mjd) 379 dbinsert skycalRun (sky_id, skycal_id, stack_id) values ($stkID, $stkID, $stkID) 367 380 dbinsert skycalResult (skycal_id, path_base) values ($stkID, "$stkfile") 368 381
Note:
See TracChangeset
for help on using the changeset viewer.
