IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16174


Ignore:
Timestamp:
Jan 21, 2008, 8:14:27 AM (18 years ago)
Author:
eugene
Message:

working on host/chip + nebulous

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r15781 r16174  
    141141    book getword regPendingImfile $pageName tmp_class_id -var TMP_CLASS_ID
    142142    book getword regPendingImfile $pageName uri -var URI
    143     book getword regPendingImfile $pageName workdir -var WORKDIR
     143    book getword regPendingImfile $pageName workdir -var WORKDIR_TEMPLATE
    144144    book getword regPendingImfile $pageName dbname -var DBNAME
    145145
     
    148148
    149149    # specify choice of remote host
    150     if ($parallel)
    151       host anyhost
    152     else
    153       host local
    154     end
     150    set.host.for.camera $camera $class_id
     151
     152    # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship
     153    # this function uses workdir_template, workdir_default, volume_template, volume_default,
     154    # it sets workdir and volume
     155    ### this function needs to be improved: it is using fixed input and output var names
     156    ### do we want these types of small outputs to go to a common filesystem?
     157    set.workdir.by.camera $CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE
    155158
    156159    ## generate output log based on filerule XXX put this in a function?
  • trunk/ippTasks/summit.copy.pro

    r16173 r16174  
    66# pztool -adddatastore -inst gpc1 -telescope ps1 -uri http://conductor/ds/gpc1/index.txt
    77# pztool -adddatastore -inst allskycam -telescope ps1 -uri  http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt
     8
     9# NOTE: workdir / volume mangling and nebulous.  these tasks copy the
     10# imfiles from the summit, placing the output files in a directory
     11# which is based on the chip/host relationship.  If nebulous is being
     12# used, the volume name is set based on the host; if nebulous is not
     13# being used, the workdir is set to include the host name.  The copy
     14# operation is targetted to the same host by pcontrol.  The value of
     15# workdir is set to be a template into which the appropriate value of
     16# @HOST@ may be substituted in later scripts.
    817
    918# the templates are used if we have a class_id/host relationship; if none is found, the default values are used
     
    282291        # XXXX this filename needs to use nebulous names
    283292        $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
    284         $FILEROOT = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID
     293        $FILEROOT = $workdir_template/$CAMERA/$YEAR/$MONTH/$DAY
    285294
    286295        book setword pzPendingImfile $pageName filename $FILENAME
Note: See TracChangeset for help on using the changeset viewer.