IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 30, 2006, 12:27:01 PM (20 years ago)
Author:
eugene
Message:

basic detrend stages work

File:
1 edited

Legend:

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

    r8691 r9081  
    1313## these tasks use the queue DetrendImfilesToProcess
    1414## the DetrendClassIDtoStack queue contains:
    15 ## STATE DET_ID ITER TYPE CLASS_ID
     15## STATE DET_ID ITER TYPE CLASS_ID CAMERA
     16
     17queueinit DetrendClassIDtoStack
     18if ($?network == 0)
     19  $network = 1
     20end
     21if ($?parallel == 0)
     22  $parallel = 0
     23end
    1624
    1725# select images ready for copy
     
    2432  periods      -poll 1
    2533  periods      -exec 5
    26   periods      -timeout 30
     34  periods      -timeout 5
     35
     36  stdout dettool.stack.log
     37  stderr dettool.stack.log
    2738
    2839  # success
     
    4253      $TYPE     = $word:2
    4354      $CLASS_ID = $word:3
    44       queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID"
     55      $CAMERA   = $word:4
     56      echo queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
     57      queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
    4558    end
    4659
     
    6982  periods      -poll 0.5
    7083  periods      -exec 1.0
    71   periods      -timeout 5
     84  periods      -timeout 60
    7285
    7386  task.exec
     
    89102    # STATE DET_ID ITER TYPE CLASS_ID
    90103    ## NOTE: the queue has the STATE prepended
     104    # use local variables
    91105    list word -split $line
    92     $DET_ID   = $word:1
    93     $ITER     = $word:2
    94     $TYPE     = $word:3
    95     $CLASS_ID = $word:4
     106    $DET_ID   = $word:0
     107    $ITER     = $word:1
     108    $TYPE     = $word:2
     109    $CLASS_ID = $word:3
     110    $CAMERA   = $word:3
     111
     112    stdout $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log
     113    stderr $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log
    96114
    97115    # specify choice of remote host:
    98     host anyhost
     116    if ($parallel)
     117      host anyhost
     118    else
     119      host local
     120    end
    99121
    100122    # create example job options as a demonstration
    101123    options "$line"
    102     # detrend_stack.pl 1 0 mc bias
    103     command detrend_stack.pl $DET_ID $ITER $CLASS_ID $TYPE
     124    # detrend_stack.pl --det_id 1 --iteration 0 --class_id isp --det_type bias --camera ISP || exit 1
     125    echo command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $TYPE --camera $CAMERA
     126    command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $TYPE --camera $CAMERA
    104127  end
    105128
     
    116139  # operation times out?
    117140  task.exit    timeout
    118     queuepush DetrendClassIDtoStack -replace -key 1:2:4 "FAIL $options:0"
     141    queuepush DetrendClassIDtoStack -replace -key 1:2:4 "TIMEOUT $options:0"
    119142  end
    120143end
Note: See TracChangeset for help on using the changeset viewer.