IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37157


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

Location:
branches/eam_branches/ipp-20140717/ippToPsps/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/test/fulltest.sh

    r37129 r37157  
    169169  mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_test_scratch"
    170170  ippjython setupScratchDb.py -test
     171  if ($status) exit
    171172endif
    172173
     
    211212  echo "2020-01-01 00:00:00.0  " >> initbatch.dat # trange_end
    212213  cat initbatch.dat | ippjython queue.py -test edit
     214  if ($status) exit
    213215
    214216  echo ""
     
    217219  rm -rf $OUTDIR/IN
    218220  ippjython loader.py -test initbatch init
     221  if ($status) exit
    219222endif
    220223
     
    257260  echo "2020-01-01 00:00:00.0 " >> cambatch.dat # trange_end
    258261  cat cambatch.dat | ippjython queue.py -test edit
     262  if ($status) exit
    259263endif
    260264
     
    265269  rm -rf $OUTDIR/P2
    266270  ippjython loader.py -test $queuename once
     271  if ($status) exit
    267272endif
    268273
     
    308313  echo "2020-01-01 00:00:00.0 " >> stackbatch.dat # trange_end
    309314  cat stackbatch.dat | ippjython queue.py -test edit
     315  if ($status) exit
    310316endif
    311317
     
    319325  rm -rf $OUTDIR/ST
    320326  ippjython loader.py -test $stackqueuename once
     327  if ($status) exit
    321328endif
    322329
     
    362369  echo "2020-01-01 00:00:00.0 " >> objectbatch.dat # trange_end
    363370  cat objectbatch.dat | ippjython queue.py -test edit once
     371  if ($status) exit
    364372endif
    365373
     
    372380  endif
    373381  rm -rf $OUTDIR/OB
    374    ippjython loader.py -test $objectqueuename once
    375 endif
    376 
     382
     383  ippjython loader.py -test $objectqueuename once
     384  if ($status) exit
     385endif
     386
  • branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1.sh

    r37134 r37157  
    8989  );
    9090  CREATE TABLE stackSumSkyfile (
    91    stack_id INT
     91   stack_id INT,
     92   mjd_obs DOUBLE
    9293  );
    9394  CREATE TABLE skycalRun (
     95   sky_id INT,
    9496   skycal_id INT,
    9597   stack_id INT
  • 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.