IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2008, 5:35:42 PM (18 years ago)
Author:
eugene
Message:

updates from eam_branch_20080121

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r16174 r16195  
    1818# the templates are used if we have a class_id/host relationship; if none is found, the default values are used
    1919# XXX not sure how to handle the .N value if we need to use more than one
     20# XXX this stuff should all be placed in a 'site' config file
    2021if ($NEBULOUS)
    21  $workdir_default  = neb://
    22  $workdir_template = neb://
    23  $volume_default  = ipp004-v0
    24  $volume_template = @HOST@-v0
     22 $default_host     = ipp004
     23 $workdir_template = neb:///@HOST@-v0
     24 $default_volume   = ipp004-v0
     25 $volume_template  =
    2526else
    26  $workdir_default  = /data/ipp004.0/
     27 $default_host     = ipp004
    2728 $workdir_template = /data/@HOST@.0/
    2829end
     
    278279        book getword pzPendingImfile $pageName camera -var $CAMERA
    279280
     281        set.host.by.camera $CAMERA $CLASS_ID
     282        host        anyhost
     283
    280284        # 2007-08-30T05:09:59Z
    281285        substr $DATEOBS 0 4 YEAR
     
    284288
    285289        # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship
    286         # this function uses workdir_template, workdir_default, volume_template, volume_default,
     290        # this function uses workdir_template, default_host, volume_template, volume_default,
    287291        # it sets workdir and volume
    288         set.workdir.by.camera $CAMERA $CLASS_ID
     292        set.workdir.by.camera $CAMERA $CLASS_ID $workdir_template $default_host workdir_base
     293        set.volume.by.camera $CAMERA $CLASS_ID $volume_template $default_volume volume
    289294
    290295        # figure out filename
    291         # XXXX this filename needs to use nebulous names
    292         $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
    293         $FILEROOT = $workdir_template/$CAMERA/$YEAR/$MONTH/$DAY
     296        # XXX may need to use sprintf here
     297        $FILENAME = $workdir_base/$CAMERA/$YEAR$MONTH$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
     298        $workdir = $workdir_template/$CAMERA/$YEAR$MONTH$DAY
     299        # workdir examples:
     300        # file://data/@HOST@.0/gpc1/20080130
     301        # neb://gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
    294302
    295303        book setword pzPendingImfile $pageName filename $FILENAME
    296 
    297         set.host.by.camera $CAMERA $CLASS_ID
    298         host        anyhost
    299304
    300305        # store the pageName with this job
    301306        options $pageName
    302         options $FILEROOT
     307        options $workdir
    303308
    304309        $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES
     
    330335        # these are functions of (at least) EXP_TYPE and SURVEY_ID, both of which should come from the data store
    331336
     337        # we saved the workdir so we can pass it to pztool
     338        $workdir = $options:1
     339
    332340        # update the database with the success
    333         $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $options:1
     341        # for the moment, let's not propagate these
     342        $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $workdir -end_stage reg
    334343        # tess_id, dvodb, workdir, end_stage
    335344
Note: See TracChangeset for help on using the changeset viewer.