IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34993


Ignore:
Timestamp:
Jan 19, 2013, 6:59:29 AM (14 years ago)
Author:
eugene
Message:

add MJD-OBS and FILTERID to test cmf header, save as .smf, use abspath in gpc1 database, remove extension (.smf) in db

File:
1 edited

Legend:

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

    r34945 r34993  
    1111# exp_id stack_id raw_file exp_file offset
    1212list imagedata
    13  1 1 test.01.txt test.01.cmf  0.000
    14  2 1 test.02.txt test.02.cmf -0.025
    15  3 1 test.03.txt test.03.cmf  0.025
    16  4 1 test.04.txt test.04.cmf  0.010
    17  5 2 test.05.txt test.05.cmf  0.000
    18  6 2 test.06.txt test.06.cmf -0.025
    19  7 2 test.07.txt test.07.cmf  0.025
    20  8 2 test.08.txt test.08.cmf  0.010
    21  9 3 test.09.txt test.09.cmf  0.000
    22 10 3 test.10.txt test.10.cmf -0.025
    23 11 3 test.11.txt test.11.cmf  0.025
    24 12 3 test.12.txt test.12.cmf  0.010
     13 1 1 test.01.txt test.01.smf  0.000
     14 2 1 test.02.txt test.02.smf -0.025
     15 3 1 test.03.txt test.03.smf  0.025
     16 4 1 test.04.txt test.04.smf  0.010
     17 5 2 test.05.txt test.05.smf  0.000
     18 6 2 test.06.txt test.06.smf -0.025
     19 7 2 test.07.txt test.07.smf  0.025
     20 8 2 test.08.txt test.08.smf  0.010
     21 9 3 test.09.txt test.09.smf  0.000
     2210 3 test.10.txt test.10.smf -0.025
     2311 3 test.11.txt test.11.smf  0.025
     2412 3 test.12.txt test.12.smf  0.010
    2525end
    2626
     
    7474  $DEC = 20.0
    7575
     76  $TIMEFORMAT = mjd
     77  $TIMEREF = 2001/01/01,00:00:00
     78
    7679  for i 0 $imagedata:n
    7780    list word -split $imagedata:$i
     
    8184    $offset = $word:4
    8285
     86    ctimes -ref 2008/01/01,$i\:00:00 -var mjd
     87
    8388    mkinput $offset $rawfile
    8489    exec mkcmf $rawfile $cmffile -date 2008/1/1 -time $i\:00:00 -radec $RA $DEC -type $1 -imageID $ID -sourceID 0
     90    exec rm -f header.dat
     91    output header.dat
     92    echo MJD-OBS = $mjd
     93    echo FILTERID= 'r.00000'
     94    output stdout
     95    exec fits_insert $cmffile header.dat
    8596    exec addstar -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
    8697  end
     
    136147  local myID filename
    137148  $myID = $1
    138   $filename = $2
     149  $filename = `basename $2 .smf`
     150  pwd -var cwd
     151
     152  # NOTE: the filename is an absolute path without cmf extension
    139153
    140154  # a single exposure
     
    142156  dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
    143157  dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
    144   dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$filename")
     158  dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$cwd/$filename")
    145159  dbinsert fakeRun (fake_id, cam_id) values ($myID, $myID)
    146160  dbinsert warpRun (warp_id, fake_id) values ($myID, $myID)
Note: See TracChangeset for help on using the changeset viewer.