Changeset 34993
- Timestamp:
- Jan 19, 2013, 6:59:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/test/mkgpc1data.dvo
r34945 r34993 11 11 # exp_id stack_id raw_file exp_file offset 12 12 list imagedata 13 1 1 test.01.txt test.01. cmf 0.00014 2 1 test.02.txt test.02. cmf -0.02515 3 1 test.03.txt test.03. cmf 0.02516 4 1 test.04.txt test.04. cmf 0.01017 5 2 test.05.txt test.05. cmf 0.00018 6 2 test.06.txt test.06. cmf -0.02519 7 2 test.07.txt test.07. cmf 0.02520 8 2 test.08.txt test.08. cmf 0.01021 9 3 test.09.txt test.09. cmf 0.00022 10 3 test.10.txt test.10. cmf -0.02523 11 3 test.11.txt test.11. cmf 0.02524 12 3 test.12.txt test.12. cmf 0.01013 1 1 test.01.txt test.01.smf 0.000 14 2 1 test.02.txt test.02.smf -0.025 15 3 1 test.03.txt test.03.smf 0.025 16 4 1 test.04.txt test.04.smf 0.010 17 5 2 test.05.txt test.05.smf 0.000 18 6 2 test.06.txt test.06.smf -0.025 19 7 2 test.07.txt test.07.smf 0.025 20 8 2 test.08.txt test.08.smf 0.010 21 9 3 test.09.txt test.09.smf 0.000 22 10 3 test.10.txt test.10.smf -0.025 23 11 3 test.11.txt test.11.smf 0.025 24 12 3 test.12.txt test.12.smf 0.010 25 25 end 26 26 … … 74 74 $DEC = 20.0 75 75 76 $TIMEFORMAT = mjd 77 $TIMEREF = 2001/01/01,00:00:00 78 76 79 for i 0 $imagedata:n 77 80 list word -split $imagedata:$i … … 81 84 $offset = $word:4 82 85 86 ctimes -ref 2008/01/01,$i\:00:00 -var mjd 87 83 88 mkinput $offset $rawfile 84 89 exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 0 90 exec rm -f header.dat 91 output header.dat 92 echo MJD-OBS = $mjd 93 echo FILTERID= 'r.00000' 94 output stdout 95 exec fits_insert $cmffile header.dat 85 96 exec addstar -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass 86 97 end … … 136 147 local myID filename 137 148 $myID = $1 138 $filename = $2 149 $filename = `basename $2 .smf` 150 pwd -var cwd 151 152 # NOTE: the filename is an absolute path without cmf extension 139 153 140 154 # a single exposure … … 142 156 dbinsert chipRun (exp_id, chip_id) values ($myID, $myID) 143 157 dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft") 144 dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$ filename")158 dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$cwd/$filename") 145 159 dbinsert fakeRun (fake_id, cam_id) values ($myID, $myID) 146 160 dbinsert warpRun (warp_id, fake_id) values ($myID, $myID)
Note:
See TracChangeset
for help on using the changeset viewer.
