IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34945


Ignore:
Timestamp:
Jan 17, 2013, 6:05:43 AM (14 years ago)
Author:
eugene
Message:

fixed gpc1 db entries (ra,dec in radians, mergedvo label) and add imageID,sourceID to cmfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/test/mkgpc1data.dvo

    r34934 r34945  
    3131end
    3232 
     33macro mkfull
     34  init.db
     35  mkcatdir.cam PS1_V2 PS1_V2
     36  mkcatdir.stk PS1_V2 PS1_V2
     37  insert.stack.set
     38end
     39
    3340macro init.db
    3441
     
    7582
    7683    mkinput $offset $rawfile
    77     exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1
     84    exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
    7885    exec addstar -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
    7986  end
     
    110117
    111118    mkinput $offset $rawfile
    112     exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1
     119    exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 1
    113120    exec addstar -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
    114121  end
     
    132139
    133140  # a single exposure
    134   dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl) values ($myID, "test.$myID", 10.0, 100.0, 2.0, $RA, $DEC)
     141  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})
    135142  dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
    136143  dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
     
    192199  dbinsert minidvodbProcessed (minidvodb_id, fault) values (1, 0)
    193200 
    194   dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (1, 1, "merged", "catdir.cam")
     201  dbinsert mergedvodbRun (minidvodb_id, merge_id, state, mergedvodb) values (1, 1, "full", "catdir.cam")
    195202  dbinsert mergedvodbProcessed (merge_id, fault) values (1, 0)
    196203
     
    212219
    213220  local output
    214   $output = $1
     221  $output = $2
    215222
    216223  exec rm -f $output
Note: See TracChangeset for help on using the changeset viewer.