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.norm.pro

    r16208 r16298  
     1## detrend.norm.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend normalization stages
    23## these tasks use the books detPendingNormStatImfile detPendingNormImfile detPendingNormExp
    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
     
    8978  host         local
    9079
    91   periods      -poll $loadpoll
    92   periods      -exec $loadexec
     80  periods      -poll $LOADPOLL
     81  periods      -exec $LOADEXEC
    9382  periods      -timeout 30
    9483  npending     1
     
    142131    book npages detPendingNormStatImfile -var N
    143132    if ($N == 0) break
    144     if ($network == 0) break
     133    if ($NETWORK == 0) break
    145134   
    146135    # look for new images in detPendingNormStatImfile
     
    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 detPendingNormImfile -var N
    259248    if ($N == 0) break
    260     if ($network == 0) break
     249    if ($NETWORK == 0) break
    261250   
    262251    # look for new images in detPendingNormImfile
     
    324313  host         local
    325314
    326   periods      -poll $loadpoll
    327   periods      -exec $loadexec
     315  periods      -poll $LOADPOLL
     316  periods      -exec $LOADEXEC
    328317  periods      -timeout 30
    329318  npending     1
     
    377366    book npages detPendingNormExp -var N
    378367    if ($N == 0) break
    379     if ($network == 0) break
     368    if ($NETWORK == 0) break
    380369   
    381370    # look for new images in detPendingNormExp
Note: See TracChangeset for help on using the changeset viewer.