IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16298


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

Location:
trunk/ippTasks
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/calibration.pro

    r16275 r16298  
     1## calibration.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the calibration stage
    23## these tasks use the book 'calBook'
    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/calibration
     
    113102  host         local
    114103
    115   periods      -poll $loadpoll
    116   periods      -exec $loadexec
     104  periods      -poll $LOADPOLL
     105  periods      -exec $LOADEXEC
    117106  periods      -timeout 60
    118107  # trange     Hourly@00:00 Hourly@00:10
     
    127116    book npages calBook -var N
    128117    if ($N == 0) break
    129     if ($network == 0) break
     118    if ($NETWORK == 0) break
    130119   
    131120    # look for new images in calBook
     
    152141    # specify choice of remote host
    153142    # set a specific DVO host here
    154     if ($parallel)
     143    if ($PARALLEL)
    155144      host anyhost
    156145    else
  • trunk/ippTasks/camera.pro

    r16195 r16298  
    1 ## this file contains the tasks for running the phase 3 stage
     1## camera.pro : globals and support macros : -*- sh -*-
     2## this file contains the tasks for running the camera analysis stage
    23## these tasks use the book camPendingExp
    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/camera
     
    5746  host         local
    5847
    59   periods      -poll $loadpoll
    60   periods      -exec $loadexec
     48  periods      -poll $LOADPOLL
     49  periods      -exec $LOADEXEC
    6150  periods      -timeout 30
    6251  npending     1
     
    112101    book npages camPendingExp -var N
    113102    if ($N == 0) break
    114     if ($network == 0) break
     103    if ($NETWORK == 0) break
    115104   
    116105    # look for new images in camPendingExp (pantaskState == INIT)
  • trunk/ippTasks/chip.pro

    r16208 r16298  
     1## chip.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the phase 0 stage
    23## these tasks use the book chipPendingImfile
    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/chip
     
    5746  host         local
    5847
    59   periods      -poll $loadpoll
    60   periods      -exec $loadexec
     48  periods      -poll $LOADPOLL
     49  periods      -exec $LOADEXEC
    6150  periods      -timeout 30
    6251  npending     1
     
    11099    book npages chipPendingImfile -var N
    111100    if ($N == 0) break
    112     if ($network == 0) break
     101    if ($NETWORK == 0) break
    113102   
    114103    # look for new images in chipPendingImfile (pantaskState == INIT)
  • 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
  • trunk/ippTasks/detrend.mkruns.pro

    r11210 r16298  
     1## detrend.mkruns.pro : globals and support macros : -*- sh -*-
     2
    13## XXX this script needs to be updated to use books, not queues
    24## XXX this script needs to be reconsidered...
  • 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
  • trunk/ippTasks/detrend.process.pro

    r16208 r16298  
     1## detrend.process.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend processing stage
    23## these tasks use the books detPendingProcessedImfile and detPendingProcessedExp
    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 detPendingProcessedImfile -var N
    130119    if ($N == 0) break
    131     if ($network == 0) break
     120    if ($NETWORK == 0) break
    132121   
    133122    # look for new images in detPendingProcessedImfile
     
    202191  host         local
    203192
    204   periods      -poll $loadpoll
    205   periods      -exec $loadexec
     193  periods      -poll $LOADPOLL
     194  periods      -exec $LOADEXEC
    206195  periods      -timeout 30
    207196  npending     1
     
    255244    book npages detPendingProcessedExp -var N
    256245    if ($N == 0) break
    257     if ($network == 0) break
     246    if ($NETWORK == 0) break
    258247   
    259248    # look for new exposures in detPendingProcessedExp
  • trunk/ippTasks/detrend.reject.pro

    r16208 r16298  
     1## detrend.reject.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend processing stage
    23## these tasks use the book detRejectExp
    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
     
    5746  host         local
    5847
    59   periods      -poll $loadpoll
    60   periods      -exec $loadexec
     48  periods      -poll $LOADPOLL
     49  periods      -exec $LOADEXEC
    6150  periods      -timeout 30
    6251  npending     1
     
    11099    book npages detRejectExp -var N
    111100    if ($N == 0) break
    112     if ($network == 0) break
     101    if ($NETWORK == 0) break
    113102   
    114103    # look for new images in detRejectExp
  • trunk/ippTasks/detrend.resid.pro

    r16208 r16298  
     1## detrend.resid.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend processing stage
    23## these tasks use the books detPendingResidImfile and detPendingResidExp
    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
     
    7362  host         local
    7463
    75   periods      -poll $loadpoll
    76   periods      -exec $loadexec
     64  periods      -poll $LOADPOLL
     65  periods      -exec $LOADEXEC
    7766  periods      -timeout 30
    7867  npending     1
     
    126115    book npages detPendingResidImfile -var N
    127116    if ($N == 0) break
    128     if ($network == 0) break
     117    if ($NETWORK == 0) break
    129118   
    130119    # look for new images in detPendingResidImfile
     
    202191  host         local
    203192
    204   periods      -poll $loadpoll
    205   periods      -exec $loadexec
     193  periods      -poll $LOADPOLL
     194  periods      -exec $LOADEXEC
    206195  periods      -timeout 30
    207196  npending     1
     
    255244    book npages detPendingResidExp -var N
    256245    if ($N == 0) break
    257     if ($network == 0) break
     246    if ($NETWORK == 0) break
    258247   
    259248    # look for new images in detPendingResidExp
  • trunk/ippTasks/detrend.stack.pro

    r16208 r16298  
     1## detrend.stack.pro : globals and support macros : -*- sh -*-
    12## this file contains the tasks for running the detrend stacking stage
    23## these tasks use the book detPendingStackedImfile
    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
     
    5847  host         local
    5948
    60   periods      -poll $loadpoll
    61   periods      -exec $loadexec
     49  periods      -poll $LOADPOLL
     50  periods      -exec $LOADEXEC
    6251  periods      -timeout 30
    6352  npending     1
     
    111100    book npages detPendingStackedImfile -var N
    112101    if ($N == 0) break
    113     if ($network == 0) break
     102    if ($NETWORK == 0) break
    114103   
    115104    # look for new images in detPendingStackedImfile
  • trunk/ippTasks/diff.pro

    r14693 r16298  
    1 ### This file contains panTasks definitions for performing the image differencing.
     1## diff.pro : image difference analysis : -*- sh -*-
    22
    3 ### After a difference (with associated diff_id) is defined, the difference is performed
    4 ### (tasks in diffSkyfile).
     3## This file contains panTasks definitions for performing the image differencing.
     4## After a difference (with associated diff_id) is defined, the difference is performed
     5## (tasks in diffSkyfile).
    56
    6 
    7 ### Setups
    8 if ($?network == 0)
    9   $network = 1
    10 end
    11 if ($?parallel == 0)
    12   $parallel = 0
    13 end
    14 if ($?VERBOSE == 0)
    15   echo "VERBOSE not defined: load pantasks.pro first"
    16   break
    17 end
    18 if ($?LOGDIR == 0)
    19   echo "LOGDIR not defined: load pantasks.pro first"
    20   break
    21 end
     7# test for required global variables
     8check.globals
    229
    2310$LOGSUBDIR = $LOGDIR/diff
     
    6653  host         local
    6754
    68   periods      -poll $loadpoll
    69   periods      -exec $loadexec
     55  periods      -poll $LOADPOLL
     56  periods      -exec $LOADEXEC
    7057  periods      -timeout 30
    7158  npending     1
     
    120107    book npages diffSkyfile -var N
    121108    if ($N == 0) break
    122     if ($network == 0) break
     109    if ($NETWORK == 0) break
    123110   
    124111    # look for new images in diffSkyfile (pantaskState == INIT)
     
    133120    # specify choice of remote host
    134121    # XXX need to choose based on diffs
    135     if ($parallel)
     122    if ($PARALLEL)
    136123      host anyhost
    137124    else
  • trunk/ippTasks/flatcorr.pro

    r16274 r16298  
     1## flatcorr.pro : tasks to run flat-field correction : -*- sh -*-
    12## this file contains the tasks for running the flatcorr stage
    23## these tasks use the book 'flatcorrBook'
    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/flatcorr
     
    10796  host         local
    10897
    109   periods      -poll $loadpoll
    110   periods      -exec $loadexec
     98  periods      -poll $LOADPOLL
     99  periods      -exec $LOADEXEC
    111100  periods      -timeout 60
    112101  # trange     Hourly@00:00 Hourly@00:10
     
    121110    book npages flatcorrBook -var N
    122111    if ($N == 0) break
    123     if ($network == 0) break
     112    if ($NETWORK == 0) break
    124113   
    125114    # look for new images in flatcorrBook
     
    140129    # specify choice of remote host
    141130    # set a specific DVO host here
    142     if ($parallel)
     131    if ($PARALLEL)
    143132      host anyhost
    144133    else
  • trunk/ippTasks/magic.pro

    r15352 r16298  
    1 
    2 ### Setups
    3 if ($?network == 0)
    4   $network = 1
    5 end
    6 if ($?parallel == 0)
    7   $parallel = 0
    8 end
    9 if ($?VERBOSE == 0)
    10   echo "VERBOSE not defined: load pantasks.pro first"
    11   break
    12 end
    13 if ($?LOGDIR == 0)
    14   echo "LOGDIR not defined: load pantasks.pro first"
    15   break
    16 end
     1## magic.pro : support for the streak removal : -*- sh -*-
     2
     3# test for required global variables
     4check.globals
    175
    186$LOGSUBDIR = $LOGDIR/magic
     
    7563  host         local
    7664
    77   periods      -poll $loadpoll
    78   periods      -exec $loadexec
     65  periods      -poll $LOADPOLL
     66  periods      -exec $LOADEXEC
    7967  periods      -timeout 30
    8068  npending     1
     
    128116  host         local
    129117
    130   periods      -poll $loadpoll
    131   periods      -exec $loadexec
     118  periods      -poll $LOADPOLL
     119  periods      -exec $LOADEXEC
    132120  periods      -timeout 30
    133121  npending     1
     
    181169  host         local
    182170
    183   periods      -poll $loadpoll
    184   periods      -exec $loadexec
     171  periods      -poll $LOADPOLL
     172  periods      -exec $LOADEXEC
    185173  periods      -timeout 30
    186174  npending     1
  • trunk/ippTasks/mkdetrend.pro

    r14681 r16298  
     1## mkdetrend.pro : autorun the detrend analysis : -*- sh -*-
    12
    23# example output from a dettool -definebyquery
  • trunk/ippTasks/pantasks.pro

    r16208 r16298  
    1 
    2 # XXX make these upper-case
     1## pantasks.pro : globals and support macros : -*- sh -*-
     2
     3# globals used to control system behavior : these should be in uppercase
    34$NEBULOUS = 0
    4 $network = 1
    5 $parallel = 1
     5$NETWORK = 1
     6$PARALLEL = 1
    67$VERBOSE = 1
    78$LOGDIR = `pwd`
    8 $scripts = .
    9 
    10 $loadpoll = 0.25
    11 $loadexec = 5
    12 $runpoll = 0.5
    13 $runexec = 1
     9
     10$LOADPOLL = 0.25
     11$LOADEXEC = 5
     12$RUNPOLL = 0.5
     13$RUNEXEC = 1
    1414
    1515$EXIT_SUCCESS     = 0
     
    426426  end
    427427end
     428
     429macro check.globals
     430  if ($?NETWORK == 0)
     431    echo "NETWORK not defined: load pantasks.pro first"
     432    break
     433  end
     434  if ($?PARALLEL == 0)
     435    echo "PARALLEL not defined: load pantasks.pro first"
     436    break
     437  end
     438  if ($?VERBOSE == 0)
     439    echo "VERBOSE not defined: load pantasks.pro first"
     440    break
     441  end
     442  if ($?LOGDIR == 0)
     443    echo "LOGDIR not defined: load pantasks.pro first"
     444    break
     445  end
     446end
  • trunk/ippTasks/register.pro

    r16208 r16298  
     1## register.pro : tasks for image registration (insert into database) : -*- sh -*-
    12## this file contains the tasks for running the registration stage
    23## these tasks use the books regPendingImfile and regPendingExp
    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/register
     
    7362  host         local
    7463
    75   periods      -poll $loadpoll
    76   periods      -exec $loadexec
     64  periods      -poll $LOADPOLL
     65  periods      -exec $LOADEXEC
    7766  periods      -timeout 30
    7867  npending     1
     
    129118    book npages regPendingImfile -var N
    130119    if ($N == 0) break
    131     if ($network == 0) break
     120    if ($NETWORK == 0) break
    132121   
    133122    # look for new images in regPendingImfile
     
    200189  host         local
    201190
    202   periods      -poll $loadpoll
    203   periods      -exec $loadexec
     191  periods      -poll $LOADPOLL
     192  periods      -exec $LOADEXEC
    204193  periods      -timeout 30
    205194  npending     1
     
    253242    book npages regPendingExp -var N
    254243    if ($N == 0) break
    255     if ($network == 0) break
     244    if ($NETWORK == 0) break
    256245   
    257246    # look for new images in regPendingExp (pantaskState == INIT)
  • trunk/ippTasks/stack.pro

    r14693 r16298  
    1 ### This file contains panTasks definitions for performing the image stacking.
     1## stack.pro : tasks for image stacking : -*- sh -*-
    22
    3 ### After a stack (with associated stack_id) is defined, the stack is performed
    4 ### (tasks in stackSumSkyfile).
     3## This file contains panTasks definitions for performing the image stacking.
     4## After a stack (with associated stack_id) is defined, the stack is performed
     5## (tasks in stackSumSkyfile).
    56
    6 
    7 ### Setups
    8 if ($?network == 0)
    9   $network = 1
    10 end
    11 if ($?parallel == 0)
    12   $parallel = 0
    13 end
    14 if ($?VERBOSE == 0)
    15   echo "VERBOSE not defined: load pantasks.pro first"
    16   break
    17 end
    18 if ($?LOGDIR == 0)
    19   echo "LOGDIR not defined: load pantasks.pro first"
    20   break
    21 end
     7# test for required global variables
     8check.globals
    229
    2310$LOGSUBDIR = $LOGDIR/stack
     
    6653  host         local
    6754
    68   periods      -poll $loadpoll
    69   periods      -exec $loadexec
     55  periods      -poll $LOADPOLL
     56  periods      -exec $LOADEXEC
    7057  periods      -timeout 30
    7158  npending     1
     
    120107    book npages stackSumSkyfile -var N
    121108    if ($N == 0) break
    122     if ($network == 0) break
     109    if ($NETWORK == 0) break
    123110   
    124111    # look for new images in stackSumSkyfile (pantaskState == INIT)
     
    133120    # specify choice of remote host
    134121    # XXX need to choose based on stacks
    135     if ($parallel)
     122    if ($PARALLEL)
    136123      host anyhost
    137124    else
  • trunk/ippTasks/summit.copy.pro

    r16208 r16298  
     1## summit.copy.pro : tasks for the summit to IPP download : -*- sh -*-
    12## PanTasks scripts for Summit Copy
    2 
    3 module pantasks.pro
    43
    54# pztool -adddatastore -inst isp -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt
     
    1615# @HOST@ may be substituted in later scripts.
    1716
     17# test for required global variables
     18check.globals
     19
    1820# the templates are used if we have a class_id/host relationship; if none is found, the default values are used
    1921# XXX not sure how to handle the .N value if we need to use more than one
     
    2123if ($NEBULOUS)
    2224 $default_host     = ipp004
    23  $workdir_template = neb:///@HOST@-v0
    24  $default_volume   = ipp004-v0
    25  $volume_template  =
     25 $workdir_template = neb:///@HOST@.0
    2626else
    2727 $default_host     = ipp004
    2828 $workdir_template = /data/@HOST@.0/
    29 end
    30 
    31 $VERBOSE = 1
    32 
    33 if ($?network == 0)
    34   $network = 1
    35 end
    36 if ($?parallel == 0)
    37   $parallel = 0
    3829end
    3930
     
    162153
    163154    task.exec
    164         if ($network == 0) break
     155        if ($NETWORK == 0) break
    165156
    166157        # if we are waiting on data, make the interval long
     
    254245
    255246    task.exec
    256         if ($network == 0) break
     247        if ($NETWORK == 0) break
    257248
    258249        # if we are waiting on data, make the interval long
  • trunk/ippTasks/warp.pro

    r16022 r16298  
    1 ### This file contains panTasks definitions for performing the image warping.
     1## warp.pro : image warping tasks : -*- sh -*-
     2## This file contains panTasks definitions for performing the image warping.
    23
    34### This is done in two (main) steps.  After a warp (with associated warp_id) is defined,
     
    56### Then for each skycell, the warp is made (tasks in warpPendingSkycell).
    67
    7 
    88### Setups
    9 if ($?network == 0)
    10   $network = 1
    11 end
    12 if ($?parallel == 0)
    13   $parallel = 0
    14 end
    15 if ($?VERBOSE == 0)
    16   echo "VERBOSE not defined: load pantasks.pro first"
    17   break
    18 end
    19 if ($?LOGDIR == 0)
    20   echo "LOGDIR not defined: load pantasks.pro first"
    21   break
    22 end
     9check.globals
    2310
    2411$LOGSUBDIR = $LOGDIR/warp
     
    8269  host         local
    8370
    84   periods      -poll $loadpoll
    85   periods      -exec $loadexec
     71  periods      -poll $LOADPOLL
     72  periods      -exec $LOADEXEC
    8673  periods      -timeout 30
    8774  npending     1
     
    136123    book npages warpInputExp -var N
    137124    if ($N == 0) break
    138     if ($network == 0) break
     125    if ($NETWORK == 0) break
    139126   
    140127    # look for new images in warpInputExp (pantaskState == INIT)
     
    150137    # specify choice of remote host
    151138    # XXX need to choose based on warps
    152     if ($parallel)
     139    if ($PARALLEL)
    153140      host anyhost
    154141    else
     
    202189  host         local
    203190
    204   periods      -poll $loadpoll
    205   periods      -exec $loadexec
     191  periods      -poll $LOADPOLL
     192  periods      -exec $LOADEXEC
    206193  periods      -timeout 30
    207194  npending     1
     
    256243    book npages warpPendingSkyCell -var N
    257244    if ($N == 0) break
    258     if ($network == 0) break
     245    if ($NETWORK == 0) break
    259246   
    260247    # look for new images in warpPendingSkyCell (pantaskState == INIT)
     
    272259    # specify choice of remote host
    273260    # XXX need to choose based on warps
    274     if ($parallel)
     261    if ($PARALLEL)
    275262      host anyhost
    276263    else
Note: See TracChangeset for help on using the changeset viewer.