IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37134


Ignore:
Timestamp:
Jul 29, 2014, 9:52:24 AM (12 years ago)
Author:
eugene
Message:

test needs to specify the date/time for datetime filters

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

Legend:

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

    r35224 r37134  
    4747   bg_stdev REAL,
    4848   ra FLOAT,
    49    decl FLOAT
     49   decl FLOAT,
     50   dateobs DATETIME
    5051  );
    5152  CREATE TABLE chipRun (
  • branches/eam_branches/ipp-20140717/ippToPsps/test/mkgpc1data.dvo

    r37129 r37134  
    1515# exp_id stack_id raw_file exp_file offset
    1616list imagedata
    17  1 1 $OUTDIR/test.01  0.000
    18  2 1 $OUTDIR/test.02 -0.025
    19  3 1 $OUTDIR/test.03  0.025
    20  4 1 $OUTDIR/test.04  0.010
    21  5 2 $OUTDIR/test.05  0.000
    22  6 2 $OUTDIR/test.06 -0.025
    23  7 2 $OUTDIR/test.07  0.025
    24  8 2 $OUTDIR/test.08  0.010
    25  9 3 $OUTDIR/test.09  0.000
    26 10 3 $OUTDIR/test.10 -0.025
    27 11 3 $OUTDIR/test.11  0.025
    28 12 3 $OUTDIR/test.12  0.010
     17 1 1 $OUTDIR/test.01  0.000 2010/01/01 01:00:00
     18 2 1 $OUTDIR/test.02 -0.025 2010/01/01 02:00:00
     19 3 1 $OUTDIR/test.03  0.025 2010/01/01 03:00:00
     20 4 1 $OUTDIR/test.04  0.010 2010/01/01 04:00:00
     21 5 2 $OUTDIR/test.05  0.000 2010/01/01 05:00:00
     22 6 2 $OUTDIR/test.06 -0.025 2010/01/01 06:00:00
     23 7 2 $OUTDIR/test.07  0.025 2010/01/01 07:00:00
     24 8 2 $OUTDIR/test.08  0.010 2010/01/01 08:00:00
     25 9 3 $OUTDIR/test.09  0.000 2010/01/01 09:00:00
     2610 3 $OUTDIR/test.10 -0.025 2010/01/01 10:00:00
     2711 3 $OUTDIR/test.11  0.025 2010/01/01 11:00:00
     2812 3 $OUTDIR/test.12  0.010 2010/01/01 12:00:00
    2929end
    3030
     
    9696    $offset = $word:3
    9797
    98     ctimes -abs 2008/01/01,$i\:00:00 -var mjd
     98    sprintf myDATE "%s" $word:4
     99    sprintf myTIME "%s" $word:5
     100    echo ctimes -abs $myDATE,$myTIME -var mjd
     101    ctimes -abs $myDATE,$myTIME -var mjd
    99102
    100103    # XXX for a simple test of ippToPsps, i need to generate smf files with some correspondence to gpc1 exposure smfs
     
    144147
    145148    mkinput $offset $rawfile
    146     exec mkcmf -no-noise -append $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
     149    exec mkcmf -no-noise -append $rawfile $cmffile -date $myDATE -time $myTIME -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
    147150
    148151    # keywords which are read from image extension
     
    282285  end
    283286
    284   echo relphot -D CATDIR $catdir.stk -region 8 12 18 22 -images g,r,i,z,y -update
    285   exec relphot -D CATDIR $catdir.stk -region 8 12 18 22 -images g,r,i,z,y -update
     287  echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
     288  exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    286289
    287290  if ($PARALLEL)
     
    319322
    320323  # a single exposure
    321   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})
     324  echo $myDATE
     325  echo $myTIME
     326
     327  dbinsert rawExp (exp_id, exp_name, exp_time, bg, bg_stdev, ra, decl, dateobs) values ($myID, "test.$myID", 10.0, 100.0, 2.0, {$RA*3.1415/180.0}, {$DEC*3.1415/180.0}, '$myDATE $myTIME')
    322328  dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
    323329  dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
     
    352358    $expID = $tmp:0
    353359    $expfile = $tmp:2
     360    sprintf myDATE "%s" $tmp:4
     361    sprintf myTIME "%s" $tmp:5
    354362    insert.exp $expID $expfile
    355363    dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
Note: See TracChangeset for help on using the changeset viewer.