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

    r8691 r9081  
    1313## STATE DET_ID ITER TYPE
    1414
     15queueinit DetrendRejectExp
     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 DetrendRejectExp
    1725# compare the new list with the ones already selected
    18 task           dettool.assess.load
     26task           dettool.reject.load
    1927  command      dettool -residdetrun -simple
    2028  host         local
     
    2230  periods      -poll 1
    2331  periods      -exec 5
    24   periods      -timeout 30
     32  periods      -timeout 5
     33
     34  stdout dettool.reject.log
     35  stderr dettool.reject.log
    2536
    2637  # success
     
    3647      $DET_ID   = $word:0
    3748      $ITER     = $word:1
    38       $TYPE    = $word:2
    39       queuepush DetrendRejectExp -uniq -key 1:2 "NEW $DET_ID $ITER $TYPE"
     49      $DET_TYPE = $word:2
     50      queuepush DetrendRejectExp -uniq -key 1:2 "NEW $DET_ID $ITER $DET_TYPE"
    4051    end
    4152
     
    6172
    6273# copy new images, sending job to desired host
    63 task           dettool.resid.process
     74task           dettool.reject.process
    6475  periods      -poll 0.5
    6576  periods      -exec 1.0
    66   periods      -timeout 5
     77  periods      -timeout 30
    6778
    6879  task.exec
     
    8495    ## NOTE: the queue has the STATE prepended
    8596    list word -split $line
    86     $DET_ID   = $word:1
    87     $ITER     = $word:2
    88     $TYPE     = $word:3
     97    $DET_ID   = $word:0
     98    $ITER     = $word:1
     99    $DET_TYPE = $word:2
     100
     101    # I'd like to add CAMERA to the log file...
     102    stdout isp.$DET_TYPE.$DET_ID.$ITER.log
     103    stderr isp.$DET_TYPE.$DET_ID.$ITER.log
    89104
    90105    # specify choice of remote host:
    91     host anyhost
     106    if ($parallel)
     107      host anyhost
     108    else
     109      host local
     110    end
    92111
    93112    # create example job options as a demonstration
    94113    options "$line"
    95     # detrend_reject_exp.pl 1      0    bias
    96     # detrend_reject_exp.pl DET_ID ITER TYPE
    97     command detrend_reject_imfile.pl $DET_ID $ITER $TYPE
    98   end
     114    echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
     115    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
     116 end
    99117
    100118  # success
     
    110128  # operation times out?
    111129  task.exit    timeout
    112     queuepush DetrendRejectExp -replace -key 1:2 "FAIL $options:0"
     130    queuepush DetrendRejectExp -replace -key 1:2 "TIMEOUT $options:0"
    113131  end
    114132end
Note: See TracChangeset for help on using the changeset viewer.