IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2008, 2:18:44 PM (18 years ago)
Author:
eugene
Message:

new macro to test presence of required globals; change globals to upper case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.correct.pro

    r16173 r16298  
     1## detrend.correct.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend correction stage
    23## these tasks use the books detPendingCorrectedImfile and detPendingCorrectedExp
    34
    4 if ($?network == 0)
    5   $network = 1
    6 end
    7 if ($?parallel == 0)
    8   $parallel = 0
    9 end
    10 if ($?VERBOSE == 0)
    11   echo "VERBOSE not defined: load pantasks.pro first"
    12   break
    13 end
    14 if ($?LOGDIR == 0)
    15   echo "LOGDIR not defined: load pantasks.pro first"
    16   break
    17 end
     5# test for required global variables
     6check.globals
    187
    198$LOGSUBDIR = $LOGDIR/detrend
     
    7665  host         local
    7766
    78   periods      -poll $loadpoll
    79   periods      -exec $loadexec
     67  periods      -poll $LOADPOLL
     68  periods      -exec $LOADEXEC
    8069  periods      -timeout 30
    8170  npending     1
     
    129118    book npages detPendingCorrectedImfile -var N
    130119    if ($N == 0) break
    131     if ($network == 0) break
     120    if ($NETWORK == 0) break
    132121   
    133122    # look for new images in detPendingCorrectedImfile
     
    205194  host         local
    206195
    207   periods      -poll $loadpoll
    208   periods      -exec $loadexec
     196  periods      -poll $LOADPOLL
     197  periods      -exec $LOADEXEC
    209198  periods      -timeout 30
    210199  npending     1
     
    258247    book npages detPendingCorrectedExp -var N
    259248    if ($N == 0) break
    260     if ($network == 0) break
     249    if ($NETWORK == 0) break
    261250   
    262251    # look for new exposures in detPendingCorrectedExp
Note: See TracChangeset for help on using the changeset viewer.