IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 12, 2008, 4:20:57 PM (18 years ago)
Author:
eugene
Message:

convert chiphost tables to ipphosts tables, add lookups for skycellID to host, add in the redirect-output option to stack and diff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/stack.pro

    r19465 r19545  
    142142    book getword stackSumSkyfile $pageName dbname -var DBNAME
    143143
    144     ### XXX Instead of setting these by camera, need to set by skycell_id
    145 #    set.host.for.camera $CAMERA $STACK_ID
    146 #    set.workdir.by.camera $CAMERA $STACK_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    147     host anyhost
    148     $WORKDIR = $WORKDIR_TEMPLATE
     144    # set the host and workdir based on the skycell hash
     145    set.host.for.skycell $SKYCELL_ID
     146    set.workdir.by.skycell $SKYCELL_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     147
     148    # XXX old code:
     149    # host anyhost
     150    # $WORKDIR = $WORKDIR_TEMPLATE
    149151
    150152    basename $TESS_DIR -var TESS_ID
    151153    sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
    152154
    153     ## generate output log based on filerule (convert the URI to a PATH) (use STACK_ID?)
    154 #    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id $STACK_ID --basename $outroot`
    155     $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    156     if ("$logfile" == "")
    157       echo "WARNING: logfile not defined in stack.pro:135"
    158       break
    159     end
    160 
    161     stdout $logfile
    162     stderr $logfile
    163     dirname $logfile -var outpath
    164     mkdir $outpath
    165 
    166     $run = stack_skycell.pl --threads @MAX_THREADS@ --stack_id $STACK_ID --outroot $outroot
     155    stdout $LOGDIR/stack.skycell.log
     156    stderr $LOGDIR/stack.skycell.log
     157
     158    $run = stack_skycell.pl --threads @MAX_THREADS@ --stack_id $STACK_ID --outroot $outroot --redirect-output
    167159    add_standard_args run
    168160
Note: See TracChangeset for help on using the changeset viewer.