IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2010, 5:46:13 PM (16 years ago)
Author:
watersc1
Message:

Changes to implement diff_mode in the diffRun table to allow diff.pro to set a more descriptive file name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r27005 r27020  
    182182    book getword diffSkyfile $pageName dbname -var DBNAME
    183183    book getword diffSkyfile $pageName reduction -var REDUCTION
     184    book getword diffSkyfile $pageName diff_mode -var DIFF_MODE
    184185
    185186    # set the host and workdir based on the skycell hash
     
    191192    # $WORKDIR = $WORKDIR_TEMPLATE
    192193
     194    if ($DIFF_MODE == 2)
     195        $DIFF_TAG = "WS."
     196    else if ($DIFF_MODE == 3)
     197        $DIFF_TAG = "SW."
     198    else if ($DIFF_MODE == 4)
     199        $DIFF_TAG = "SS."
     200    else
     201# if (($DIFF_MODE == 1)||("$DIFF_MODE" == "NULL"))
     202        $DIFF_TAG = ""
     203    end
     204
    193205    basename $TESS_DIR -var TESS_ID
    194     sprintf outroot "%s/%s/%s/%s.%s.dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_ID
     206    sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID
    195207
    196208    stdout $LOGDIR/diff.skycell.log
Note: See TracChangeset for help on using the changeset viewer.