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/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.