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

    r8691 r9081  
    1313## STATE DET_ID TYPE EXP_KEY CLASS CLASS_ID URI
    1414
     15queueinit DetrendImfilesToProcess
     16if ($?network == 0)
     17  $network = 1
     18end
     19if ($?parallel == 0)
     20  $parallel = 0
     21end
     22
    1523# select images ready for copy
    1624# new entries are added to queue DetrendImfilesToProcess
     
    2331  periods      -exec 5
    2432  periods      -timeout 30
    25   trange       18:00 23:59
     33
     34  stdout dettool.process.log
     35  stderr dettool.process.log
    2636
    2737  # success
     
    6979task           dettool.raw.process
    7080  periods      -poll 0.5
    71   periods      -exec 1.0
    72   periods      -timeout 5
     81  periods      -exec 2.0
     82  periods      -timeout 60
    7383
    7484  task.exec
     
    90100    ## NOTE: the queue has the STATE prepended
    91101    list word -split $line
    92     $DET_ID   = $word:1
    93     $TYPE     = $word:2
    94     $EXP_KEY  = $word:3
    95     $CLASS    = $word:4
    96     $CLASS_ID = $word:5
    97     $URI      = $word:6
     102    $DET_ID   = $word:0
     103    $TYPE     = $word:1
     104    $EXP_KEY  = $word:2
     105    $CLASS    = $word:3
     106    $CLASS_ID = $word:4
     107    $URI      = $word:5
     108
     109    stdout $EXP_KEY.detproc.$CLASS_ID.log
     110    stderr $EXP_KEY.detproc.$CLASS_ID.log
    98111
    99112    # specify choice of remote host:
    100     host anyhost
     113    if ($parallel)
     114      host anyhost
     115    else
     116      host local
     117    end
    101118
    102119    # create example job options as a demonstration
    103120    options "$line"
    104     # ~/ipp/helpers/detrend_process.pl 1 850131b mc bias 850131b.fits 850131b
    105     command detrend_process.pl $DET_ID $EXP_KEY $CLASS_ID $TYPE $URI $EXP_KEY
     121    echo command detrend_process.pl --det_id $DET_ID --exp_id $EXP_KEY --class $CLASS --class_id $CLASS_ID --det_type bias --input_uri $URI
     122    command detrend_process.pl --det_id $DET_ID --exp_id $EXP_KEY --class $CLASS --class_id $CLASS_ID --det_type bias --input_uri $URI
    106123  end
    107124
     
    118135  # operation times out?
    119136  task.exit    timeout
    120     queuepush DetrendImfilesToProcess -replace -key 1:3:5 "FAIL $options:0"
     137    queuepush DetrendImfilesToProcess -replace -key 1:3:5 "TIMEOUT $options:0"
    121138  end
    122139end
Note: See TracChangeset for help on using the changeset viewer.