IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37222


Ignore:
Timestamp:
Aug 12, 2014, 12:47:14 PM (12 years ago)
Author:
eugene
Message:

more complete (but small) sastest

File:
1 edited

Legend:

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

    r37221 r37222  
    3333
    3434  # are these used to find the exposures in any way?
     35  # center of the test skycell
    3536  $RA = 333.5
    3637  $DEC = -5.0
     
    4546  # system-wide info
    4647  dbinsert ippToPspsFake (my_id) values (2)
    47   dbinsert skycell (radeg, decdeg, skycell_id) values ($RA, $DEC, "skycell.0000.000")
     48  dbinsert skycell (radeg, decdeg, skycell_id) values ($RA, $DEC, "skycell.1225.070")
    4849end
    4950
     
    6970  end
    7071  exec addstar -D CATDIR $catdir -region 330 340 -10 0 -resort
     72end
    7173
     74# create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp
     75macro mkcatdir.stk
     76  if ($0 != 1)
     77    echo "mkcatdir"
     78    break
     79  end
     80
     81  mkdir $OUTDIR
     82
     83  local catdir
     84  $catdirbase = catdir.sas.stk
     85  $catdir = $OUTDIR/$catdirbase
     86  exec rm -rf $catdir
     87
     88  # a single stack
     89  $stkfile = sasdata/RINGS.V3.skycell.1225.070.stk.3366216.skycal.1589960
     90  exec addstar -D CAMERA gpc1 -D CATFORMAT PS1_V5 -D CATDIR $catdir $stkfile.cmf
     91end
     92
     93macro mkcal
     94
     95  local catdir
     96  $catdir = $OUTDIR/catdir.sas.cam
     97
     98  # merge the cam and stk databases together:
     99  exec dvomerge $OUTDIR/catdir.sas.stk into $catdir
     100
     101  # run relphot
    72102  echo relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits
    73103  exec relphot -D CATDIR $catdir -region 330 340 -10 0 -images g,r,i,z,y -update -boundary-tree tess.3pi.fits
     104
     105  echo relastro -v -D CATDIR $catdir -images -update-chips -region 330 340 -10 0 -update
     106  exec relastro -v -D CATDIR $catdir -images -update-chips -region 330 340 -10 0 -update
    74107end
    75108
     
    101134    dbinsert fakeRun (fake_id, cam_id) values ($expID, $expID)
    102135    dbinsert warpRun (warp_id, fake_id) values ($expID, $expID)
    103     dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($expID, "skycell.0000.000", "XY00")
     136    dbinsert warpSkyCellMap (warp_id, skycell_id, class_id) values ($expID, "skycell.1225.070", "XY00")
    104137    dbinsert addRun (add_id, stage, state, stage_id, minidvodb_name) values ($expID, "cam", "full", $expID, "$catdirbase")
    105138    dbinsert addProcessedExp (add_id, fault) values ($expID, 0)
     
    115148
    116149# create a populated catdir with a set of cmf files, save the filenames in list for use by insert.exp
    117 macro mkcatdir.stk
    118   if ($0 != 1)
    119     echo "mkcatdir"
    120     break
    121   end
    122 
    123   mkdir $OUTDIR
    124 
    125   local catdir
    126   $catdirbase = catdir.sas.stk
    127   $catdir = $OUTDIR/$catdirbase
    128   exec rm -rf $catdir
    129 
    130   # are these used to find the exposures in any way?
    131   $RA = 333.5
    132   $DEC = -5.0
    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
    143150macro mkgpc1.stk
    144151  if ($0 != 1)
     
    149156  local catdirbase
    150157  $catdirbase = catdir.sas.cam
    151 
    152   # are these used to find the exposures in any way?
    153   $RA = 333.5
    154   $DEC = -5.0
    155158
    156159  $TIMEFORMAT = mjd
     
    168171
    169172  $expID = 1
    170   dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.0000.000", "g.00000", "37500M")
     173  dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.1225.070", "i.00000", "37500M")
    171174  dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
    172175  dbinsert stackSumSkyfile (stack_id, mjd_obs) values ($stkID, $mjd)
Note: See TracChangeset for help on using the changeset viewer.