IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12116


Ignore:
Timestamp:
Feb 27, 2007, 6:27:37 PM (19 years ago)
Author:
Paul Price
Message:

Fixing name of book to avoid warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/stack.pro

    r12078 r12116  
    22
    33### After a stack (with associated stack_id) is defined, the stack is performed
    4 ### (tasks in stackPendingSkycell).
     4### (tasks in stackSumSkyfile).
    55
    66
     
    2525
    2626### Initialise the books containing the tasks to do
    27 book init stackPendingSkycell
     27book init stackSumSkyfile
    2828
    2929### Database lists
     
    3232### Check status of stacking tasks
    3333macro stack.status
    34   book listbook stackPendingSkycell
     34  book listbook stackSumSkyfile
    3535end
    3636
    3737### Reset stacking tasks
    3838macro stack.reset
    39   book init stackPendingSkycell
     39  book init stackSumSkyfile
    4040end
    4141
     
    6262
    6363### Load tasks for doing the stack
    64 ### Tasks are loaded into stackPendingSkycell.
     64### Tasks are loaded into stackSumSkyfile.
    6565task           stack.skycell.load
    6666  host         local
     
    7777    if ($DB:n == 0)
    7878      option DEFAULT
    79       command stacktool -tostacked -limit 20
     79      command stacktool -tosum -limit 20
    8080    else
    8181      # save the DB name for the exit tasks
    8282      option $DB:$stackSkycell_DB
    83       command stacktool -tostackskyfile -limit 20 -dbname $DB:$stackSkycell_DB
     83      command stacktool -tosum -limit 20 -dbname $DB:$stackSkycell_DB
    8484      $stackSkycell_DB ++
    8585      if ($stackSkycell_DB >= $DB:n) set stackSkycell_DB = 0
     
    9090  task.exit    0
    9191    # convert 'stdout' to book format
    92     ipptool2book stdout stackPendingSkycell -key stack_id -uniq -setword dbname $options:0
     92    ipptool2book stdout stackSumSkyfile -key stack_id -uniq -setword dbname $options:0
    9393    if ($VERBOSE > 2)
    94       book listbook stackPendingSkycell
     94      book listbook stackSumSkyfile
    9595    end
    9696
    9797    # delete existing entries in the appropriate states
    98     process_cleanup stackPendingSkycell
     98    process_cleanup stackSumSkyfile
    9999  end
    100100
     
    111111
    112112### Run tasks for calculating the stack overlaps
    113 ### Tasks are taken from stackPendingSkycell.
    114 task           stack.exp.run
     113### Tasks are taken from stackSumSkyfile.
     114task           stack.skycell.run
    115115  periods      -poll $runpoll
    116116  periods      -exec $runexec
     
    118118
    119119  task.exec
    120     book npages stackPendingSkycell -var N
     120    book npages stackSumSkyfile -var N
    121121    if ($N == 0) break
    122122    if ($network == 0) break
    123123   
    124     # look for new images in stackPendingSkycell (state == NULL)
    125     book getpage stackPendingSkycell 0 -var pageName -key state NULL
     124    # look for new images in stackSumSkyfile (state == NULL)
     125    book getpage stackSumSkyfile 0 -var pageName -key state NULL
    126126    if ($pageName == NULL) break
    127127
    128     book setword stackPendingSkycell $pageName state RUN
    129     book getword stackPendingSkycell $pageName stack_id -var STACK_ID
    130     book getword stackPendingSkycell $pageName camera -var CAMERA
    131     book getword stackPendingSkycell $pageName workdir -var WORKDIR
    132     book getword stackPendingSkycell $pageName dbname -var DBNAME
     128    book setword stackSumSkyfile $pageName state RUN
     129    book getword stackSumSkyfile $pageName stack_id -var STACK_ID
     130    book getword stackSumSkyfile $pageName workdir -var WORKDIR
     131    book getword stackSumSkyfile $pageName dbname -var DBNAME
    133132    set_standard_args
    134133
     
    154153    # create the command line
    155154    if ($VERBOSE > 1)
    156       echo command stack_skycell.pl --stack_id $STACK_ID --camera $CAMERA --workdir $WORKDIR $ARGS
     155      echo command stack_skycell.pl --stack_id $STACK_ID --workdir $WORKDIR $ARGS
    157156    end
    158     command stack_skycell.pl --stack_id $STACK_ID --camera $CAMERA --workdir $WORKDIR $ARGS
     157    command stack_skycell.pl --stack_id $STACK_ID --workdir $WORKDIR $ARGS
    159158  end
    160159
    161160  # default exit status
    162161  task.exit    default
    163     process_exit stackPendingSkycell $options:0 $JOB_STATUS
     162    process_exit stackSumSkyfile $options:0 $JOB_STATUS
    164163  end
    165164
     
    167166  task.exit    timeout
    168167    showcommand timeout
    169     book setword stackPendingSkycell $options:0 state TIMEOUT
     168    book setword stackSumSkyfile $options:0 state TIMEOUT
    170169  end
    171170end
Note: See TracChangeset for help on using the changeset viewer.