IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2008, 4:56:26 PM (18 years ago)
Author:
eugene
Message:

making chip/host and nebulous upgrades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080121/ippTasks/summit.copy.pro

    r16174 r16176  
    1919# XXX not sure how to handle the .N value if we need to use more than one
    2020if ($NEBULOUS)
    21  $workdir_default  = neb://
    22  $workdir_template = neb://
    23  $volume_default  = ipp004-v0
    24  $volume_template = @HOST@-v0
     21 $default_host     = ipp004
     22 $workdir_template = neb:///@HOST@-v0
     23 $default_volume   = ipp004-v0
     24 $volume_template  =
    2525else
    26  $workdir_default  = /data/ipp004.0/
     26 $default_host     = ipp004
    2727 $workdir_template = /data/@HOST@.0/
    2828end
     
    278278        book getword pzPendingImfile $pageName camera -var $CAMERA
    279279
     280        set.host.by.camera $CAMERA $CLASS_ID
     281        host        anyhost
     282
    280283        # 2007-08-30T05:09:59Z
    281284        substr $DATEOBS 0 4 YEAR
     
    284287
    285288        # 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,
     289        # this function uses workdir_template, default_host, volume_template, volume_default,
    287290        # it sets workdir and volume
    288         set.workdir.by.camera $CAMERA $CLASS_ID
     291        set.workdir.by.camera $CAMERA $CLASS_ID $workdir_template $default_host workdir_base
     292        set.volume.by.camera $CAMERA $CLASS_ID $volume_template $default_volume volume
    289293
    290294        # 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
     295        # XXX may need to use sprintf here
     296        $FILENAME = $workdir_base/$CAMERA/$YEAR$MONTH$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
     297        $workdir = $workdir_template/$CAMERA/$YEAR$MONTH$DAY
     298        # workdir examples:
     299        # file://data/@HOST@.0/gpc1/20080130
     300        # neb://gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
    294301
    295302        book setword pzPendingImfile $pageName filename $FILENAME
    296 
    297         set.host.by.camera $CAMERA $CLASS_ID
    298         host        anyhost
    299303
    300304        # store the pageName with this job
    301305        options $pageName
    302         options $FILEROOT
     306        options $workdir
    303307
    304308        $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES
     
    330334        # these are functions of (at least) EXP_TYPE and SURVEY_ID, both of which should come from the data store
    331335
     336        # we saved the workdir so we can pass it to pztool
     337        $workdir = $options:1
     338
    332339        # 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
     340        # for the moment, let's not propagate these
     341        $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $workdir -end_stage reg
    334342        # tess_id, dvodb, workdir, end_stage
    335343
Note: See TracChangeset for help on using the changeset viewer.