IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 12, 2014, 12:31:54 PM (12 years ago)
Author:
eugene
Message:

working on sastest to be more complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/test/mksasdata.dvo

    r37207 r37221  
    88$OUTDIR = sasdata
    99
     10if (not($?KEEPDVO)) set KEEPDVO = 0
     11
     12list 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
     17end
     18
    1019macro mkfull
    1120  init.db
    1221  mkcatdir.cam
    13   # mkcatdir.stk
     22  mkcatdir.stk
     23  mkcal
     24  mkgpc1.cam
     25  mkgpc1.stk
    1426end
    1527
     
    4860  $catdirbase = catdir.sas.cam
    4961  $catdir = $OUTDIR/$catdirbase
     62
    5063  exec rm -rf $catdir
    51 
    52   list expfiles
    53     sasdata/o5745g0495o.356867.cm.982612
    54     sasdata/o5745g0507o.356882.cm.982626
    55     sasdata/o5745g0517o.356892.cm.982636
    56     sasdata/o5745g0527o.356909.cm.982650
    57   end
    5864
    5965  for i 0 $expfiles:n
    6066    $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
     74end
     75
     76# create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp
     77macro 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
    6288
    6389    # are these used to find the exposures in any way?
     
    86112    dbinsert mergedvodbProcessed (merge_id, fault) values (1, 0)
    87113  end
    88 
    89   echo relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update
    90   exec relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update
    91114end
    92115
     
    109132  $DEC = -5.0
    110133
     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
     140end
     141
     142# create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp
     143macro 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
    111156  $TIMEFORMAT = mjd
    112157  $TIMEREF = 2001/01/01,00:00:00
     
    115160  # a single stack
    116161  $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.cmf
    118 
    119   # echo relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update
    120   # exec relphot -D CATDIR $catdir -region {$RA-5} {$RA+5} {$DEC-5} {$DEC+5} -images g,r,i,z,y -update
    121162
    122163  break -auto off
Note: See TracChangeset for help on using the changeset viewer.