Changeset 37134
- Timestamp:
- Jul 29, 2014, 9:52:24 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140717/ippToPsps/test
- Files:
-
- 2 edited
-
mkgpc1.sh (modified) (1 diff)
-
mkgpc1data.dvo (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh
r35224 r37134 47 47 bg_stdev REAL, 48 48 ra FLOAT, 49 decl FLOAT 49 decl FLOAT, 50 dateobs DATETIME 50 51 ); 51 52 CREATE TABLE chipRun ( -
branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo
r37129 r37134 15 15 # exp_id stack_id raw_file exp_file offset 16 16 list imagedata 17 1 1 $OUTDIR/test.01 0.000 18 2 1 $OUTDIR/test.02 -0.025 19 3 1 $OUTDIR/test.03 0.025 20 4 1 $OUTDIR/test.04 0.010 21 5 2 $OUTDIR/test.05 0.000 22 6 2 $OUTDIR/test.06 -0.025 23 7 2 $OUTDIR/test.07 0.025 24 8 2 $OUTDIR/test.08 0.010 25 9 3 $OUTDIR/test.09 0.000 26 10 3 $OUTDIR/test.10 -0.025 27 11 3 $OUTDIR/test.11 0.025 28 12 3 $OUTDIR/test.12 0.010 17 1 1 $OUTDIR/test.01 0.000 2010/01/01 01:00:00 18 2 1 $OUTDIR/test.02 -0.025 2010/01/01 02:00:00 19 3 1 $OUTDIR/test.03 0.025 2010/01/01 03:00:00 20 4 1 $OUTDIR/test.04 0.010 2010/01/01 04:00:00 21 5 2 $OUTDIR/test.05 0.000 2010/01/01 05:00:00 22 6 2 $OUTDIR/test.06 -0.025 2010/01/01 06:00:00 23 7 2 $OUTDIR/test.07 0.025 2010/01/01 07:00:00 24 8 2 $OUTDIR/test.08 0.010 2010/01/01 08:00:00 25 9 3 $OUTDIR/test.09 0.000 2010/01/01 09:00:00 26 10 3 $OUTDIR/test.10 -0.025 2010/01/01 10:00:00 27 11 3 $OUTDIR/test.11 0.025 2010/01/01 11:00:00 28 12 3 $OUTDIR/test.12 0.010 2010/01/01 12:00:00 29 29 end 30 30 … … 96 96 $offset = $word:3 97 97 98 ctimes -abs 2008/01/01,$i\:00:00 -var mjd 98 sprintf myDATE "%s" $word:4 99 sprintf myTIME "%s" $word:5 100 echo ctimes -abs $myDATE,$myTIME -var mjd 101 ctimes -abs $myDATE,$myTIME -var mjd 99 102 100 103 # XXX for a simple test of ippToPsps, i need to generate smf files with some correspondence to gpc1 exposure smfs … … 144 147 145 148 mkinput $offset $rawfile 146 exec mkcmf -no-noise -append $rawfile $cmffile -date 2008/1/1 -time $i\:00:00-radec $RA $DEC -type $1 -imageID $ID -sourceID 0149 exec mkcmf -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0 147 150 148 151 # keywords which are read from image extension … … 282 285 end 283 286 284 echo relphot -D CATDIR $catdir .stk-region 8 12 18 22 -images g,r,i,z,y -update285 exec relphot -D CATDIR $catdir .stk-region 8 12 18 22 -images g,r,i,z,y -update287 echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update 288 exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update 286 289 287 290 if ($PARALLEL) … … 319 322 320 323 # a single exposure 321 dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl) values ($myID, "test.$myID", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0}) 324 echo $myDATE 325 echo $myTIME 326 327 dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl, dateobs) values ($myID, "test.$myID", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0}, '$myDATE $myTIME') 322 328 dbinsert chipRun (exp_id, chip_id) values ($myID, $myID) 323 329 dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft") … … 352 358 $expID = $tmp:0 353 359 $expfile = $tmp:2 360 sprintf myDATE "%s" $tmp:4 361 sprintf myTIME "%s" $tmp:5 354 362 insert.exp $expID $expfile 355 363 dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
Note:
See TracChangeset
for help on using the changeset viewer.
