IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2008, 4:26:54 PM (18 years ago)
Author:
Paul Price
Message:

Updating warp, stack, diff to give the outroot instead of workdir to scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r16300 r16743  
    115115    book setword diffSkyfile $pageName pantaskState RUN
    116116    book getword diffSkyfile $pageName diff_id -var DIFF_ID
    117     book getword diffSkyfile $pageName workdir -var WORKDIR
     117    book getword diffSkyfile $pageName workdir -var WORKDIR_TEMPLATE
    118118    book getword diffSkyfile $pageName dbname -var DBNAME
    119119
    120     # specify choice of remote host
    121     # XXX need to choose based on diffs
    122     if ($PARALLEL)
    123       host anyhost
    124     else
    125       host local
    126     end
     120    ### XXX Instead of setting these by camera, need to set by skycell_id
     121    set.host.for.camera $CAMERA $DIFF_ID
     122    set.workdir.by.camera $CAMERA $DIFF_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    127123
    128     ## generate output log based on filerule
    129     if ("$WORKDIR" == "NULL")
    130       $outroot = `pwd`
    131     else
    132       $outroot = `ipp_datapath.pl $WORKDIR`
    133     end
    134     sprintf outroot "%s/diff.%s" $outroot $DIFF_ID
    135     sprintf logfile "%s/skycell.log" $outroot
     124    sprintf outroot "%s/tess_%s/%s/%s.%s.dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_ID
     125
     126    ## generate output log based on filerule (convert the URI to a PATH)
     127    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id $STACK_ID --basename $outroot`
     128
    136129    stdout $logfile
    137130    stderr $logfile
    138     exec mkdir -p $outroot
     131    dirname $logfile -var outpath
     132    mkdir $outpath
    139133
    140     $run = diff_skycell.pl --diff_id $DIFF_ID
    141     if ("$WORKDIR" != "NULL")
    142       $run = $run --workdir $WORKDIR
    143     end
     134    $run = diff_skycell.pl --diff_id $DIFF_ID --outroot $outroot
    144135    add_standard_args run
    145136
Note: See TracChangeset for help on using the changeset viewer.