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/diff.pro

    r19465 r19545  
    142142    book getword diffSkyfile $pageName dbname -var DBNAME
    143143
    144     ### XXX Instead of setting these by camera, need to set by skycell_id
    145     ### XXX change these to use the --redirect scheme
    146 #    set.host.for.camera $CAMERA $DIFF_ID
    147 #    set.workdir.by.camera $CAMERA $DIFF_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    148     host anyhost
    149     $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
    150151
    151152    basename $TESS_DIR -var TESS_ID
    152153    sprintf outroot "%s/%s/%s/%s.%s.dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_ID
    153154
    154     ## generate output log based on filerule (convert the URI to a PATH)
    155     $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id $DIFF_ID --basename $outroot`
    156     if ("$logfile" == "")
    157       echo "WARNING: logfile not defined in diff.skycell.run"
    158       break
    159     end
    160 
    161     stdout $logfile
    162     stderr $logfile
    163     dirname $logfile -var outpath
    164     mkdir $outpath
    165 
    166     $run = diff_skycell.pl --threads @MAX_THREADS@ --diff_id $DIFF_ID --outroot $outroot
     155    stdout $LOGDIR/diff.skycell.log
     156    stderr $LOGDIR/diff.skycell.log
     157
     158    $run = diff_skycell.pl --threads @MAX_THREADS@ --diff_id $DIFF_ID --outroot $outroot --redirect-output
    167159    add_standard_args run
    168160
Note: See TracChangeset for help on using the changeset viewer.