IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2014, 11:00:48 AM (12 years ago)
Author:
eugene
Message:

exit fulltest on error; add mjd_obs to stackSumSkyfile and sky_id to skycalRun; set simtest photcodes; set mjd for stacks

File:
1 edited

Legend:

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

    r37134 r37157  
    147147
    148148    mkinput $offset $rawfile
    149     exec mkcmf -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
     149    exec mkcmf -photcode SIMTEST.r.Chip -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
    150150
    151151    # keywords which are read from image extension
     
    275275
    276276    mkinput $offset $rawfile
    277     exec mkcmf $rawfile $cmffile -extname SkyChip -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 1
     277    exec mkcmf -photcode SIMTEST.r.SkyChip $rawfile $cmffile -extname SkyChip -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 1
    278278
    279279    # add some required header keywords:
     
    351351  dbinsert stackRun (stack_id, skycell_id, filter, software_ver) values ($stkID, "skycell.0000.000", "g.00000", "testsoft")
    352352
     353  $TIMEFORMAT = mjd
     354  $TIMEREF = 2001/01/01,00:00:00
     355
     356  $mjdsum = 0.0
     357  $Nstk = 0
     358
    353359  for i 0 $imagedata:n
    354360    echo $imagedata:$i
     
    362368    insert.exp $expID $expfile
    363369    dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
    364   end
    365   dbinsert stackSumSkyfile (stack_id) values ($stkID)
    366   dbinsert skycalRun (skycal_id, stack_id) values ($stkID, $stkID)
     370
     371    echo ctimes -abs $myDATE,$myTIME -var mjd
     372         ctimes -abs $myDATE,$myTIME -var mjd
     373    $mjdsum += $mjd
     374    $Nstk ++
     375  end
     376  $mjd = $mjdsum / $Nstk
     377
     378  dbinsert stackSumSkyfile (stack_id, mjd_obs) values ($stkID, $mjd)
     379  dbinsert skycalRun (sky_id, skycal_id, stack_id) values ($stkID, $stkID, $stkID)
    367380  dbinsert skycalResult (skycal_id, path_base) values ($stkID, "$stkfile")
    368381 
Note: See TracChangeset for help on using the changeset viewer.