- Timestamp:
- Aug 12, 2014, 12:31:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/test/mksasdata.dvo
r37207 r37221 8 8 $OUTDIR = sasdata 9 9 10 if (not($?KEEPDVO)) set KEEPDVO = 0 11 12 list expfiles 13 sasdata/o5745g0495o.356867.cm.982612 14 sasdata/o5745g0507o.356882.cm.982626 15 sasdata/o5745g0517o.356892.cm.982636 16 sasdata/o5745g0527o.356909.cm.982650 17 end 18 10 19 macro mkfull 11 20 init.db 12 21 mkcatdir.cam 13 # mkcatdir.stk 22 mkcatdir.stk 23 mkcal 24 mkgpc1.cam 25 mkgpc1.stk 14 26 end 15 27 … … 48 60 $catdirbase = catdir.sas.cam 49 61 $catdir = $OUTDIR/$catdirbase 62 50 63 exec rm -rf $catdir 51 52 list expfiles53 sasdata/o5745g0495o.356867.cm.98261254 sasdata/o5745g0507o.356882.cm.98262655 sasdata/o5745g0517o.356892.cm.98263656 sasdata/o5745g0527o.356909.cm.98265057 end58 64 59 65 for i 0 $expfiles:n 60 66 $expfile = $expfiles:$i 61 exec addstar -D CAMERA gpc1 -D CATDIR $catdir -D CATFORMAT PS1_V5 $expfile.smf 67 68 exec addstar -D CAMERA gpc1 -D CATDIR $catdir -D CATFORMAT PS1_V5 $expfile.smf -update 69 end 70 exec addstar -D CATDIR $catdir -region 330 340 -10 0 -resort 71 72 echo relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits 73 exec relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits 74 end 75 76 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp 77 macro mkgpc1.cam 78 if ($0 != 1) 79 echo "mkgpc1.cam" 80 break 81 end 82 83 local catdirbase 84 $catdirbase = catdir.sas.cam 85 86 for i 0 $expfiles:n 87 $expfile = $expfiles:$i 62 88 63 89 # are these used to find the exposures in any way? … … 86 112 dbinsert mergedvodbProcessed (merge_id, fault) values (1, 0) 87 113 end 88 89 echo relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update90 exec relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update91 114 end 92 115 … … 109 132 $DEC = -5.0 110 133 134 # a single stack 135 $stkfile = sasdata/RINGS.V3.skycell.1225.070.stk.3366216.skycal.1589960 136 exec addstar -D CAMERA gpc1 -D CATFORMAT PS1_V5 -D CATDIR $catdir $stkfile.cmf 137 138 # echo relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update 139 # exec relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update 140 end 141 142 # create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp 143 macro mkgpc1.stk 144 if ($0 != 1) 145 echo "mkgpc1.stk" 146 break 147 end 148 149 local catdirbase 150 $catdirbase = catdir.sas.cam 151 152 # are these used to find the exposures in any way? 153 $RA = 333.5 154 $DEC = -5.0 155 111 156 $TIMEFORMAT = mjd 112 157 $TIMEREF = 2001/01/01,00:00:00 … … 115 160 # a single stack 116 161 $stkfile = sasdata/RINGS.V3.skycell.1225.070.stk.3366216.skycal.1589960 117 exec addstar -D CAMERA gpc1 -D CATFORMAT PS1_V5 -D CATDIR $catdir $stkfile.cmf118 119 # echo relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update120 # exec relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update121 162 122 163 break -auto off
Note:
See TracChangeset
for help on using the changeset viewer.
