IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11019


Ignore:
Timestamp:
Jan 10, 2007, 3:37:08 PM (19 years ago)
Author:
eugene
Message:

book version successful test with simtest

Location:
branches/eam_branch_00/ippTasks
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_00/ippTasks/detrend.norm.pro

    r11012 r11019  
    4949  task.exit    0
    5050    # convert 'stdout' to book format
    51     ipptool2book stdout DetrendNormStat -key det_id:iter -uniq
     51    ipptool2book stdout DetrendNormStat -key det_id:iteration -uniq
    5252    if ($VERBOSE > 2)
    5353      book listbook DetrendNormStat
     
    8585
    8686    book setword DetrendNormStat $pageName state RUN
    87     book getword DetrendNormStat $pageName DET_ID   -var DET_ID
    88     book getword DetrendNormStat $pageName DET_TYPE -var DET_TYPE
    89     book getword DetrendNormStat $pageName ITER     -var ITER
    90     book getword DetrendNormStat $pageName CAMERA   -var CAMERA 
     87    book getword DetrendNormStat $pageName det_id    -var DET_ID
     88    book getword DetrendNormStat $pageName det_type -var DET_TYPE
     89    book getword DetrendNormStat $pageName iteration -var ITERATION
     90    book getword DetrendNormStat $pageName camera    -var CAMERA 
    9191
    9292    # specify choice of remote host:
     
    9898
    9999    # XXX add $WORKDIR/$LOG_DIR
    100     stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
    101     stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
     100    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
     101    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATIION.log
    102102
    103103    # save the pageName for future reference below
     
    106106    # create example job options as a demonstration
    107107    if ($VERBOSE > 1)
    108       echo command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
    109     end
    110     command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
     108      echo command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE
     109    end
     110    command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE
    111111  end
    112112
     
    149149  task.exit    0
    150150    # convert 'stdout' to book format
    151     ipptool2book stdout DetrendNorm -key det_id:iter -uniq
     151    ipptool2book stdout DetrendNorm -key det_id:iteration -uniq
    152152    if ($VERBOSE > 2)
    153153      book listbook DetrendNorm
     
    185185
    186186    book setword DetrendNorm $pageName state RUN
    187     book getword DetrendNorm $pageName det_type -var DET_TYPE
    188     book getword DetrendNorm $pageName camera   -var CAMERA   
    189     book getword DetrendNorm $pageName uri      -var URI     
    190     book getword DetrendNorm $pageName det_id   -var DET_ID   
    191     book getword DetrendNorm $pageName iter     -var ITER     
    192     book getword DetrendNorm $pageName class_id -var CLASS_ID
    193     book getword DetrendNorm $pageName norm     -var NORM     
     187    book getword DetrendNorm $pageName det_type  -var DET_TYPE
     188    book getword DetrendNorm $pageName camera    -var CAMERA   
     189    book getword DetrendNorm $pageName uri       -var URI     
     190    book getword DetrendNorm $pageName det_id    -var DET_ID   
     191    book getword DetrendNorm $pageName iteration -var ITERATION     
     192    book getword DetrendNorm $pageName class_id  -var CLASS_ID
     193    book getword DetrendNorm $pageName norm      -var NORM     
    194194
    195195    # specify choice of remote host:
     
    200200    end
    201201
    202     stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
    203     stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
     202    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
     203    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
    204204
    205205    # save the pageName for future reference below
     
    208208    # create example job options as a demonstration
    209209    if ($VERBOSE > 1)
    210       echo command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE
    211     end
    212     command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE
     210      echo command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE
     211    end
     212    command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE
    213213  end
    214214
     
    251251  task.exit    0
    252252    # convert 'stdout' to book format
    253     ipptool2book stdout DetrendNormExp -key det_id:iter -uniq
     253    ipptool2book stdout DetrendNormExp -key det_id:iteration -uniq
    254254    if ($VERBOSE > 2)
    255255      book listbook DetrendNormExp
     
    287287
    288288    book setword DetrendNormExp $pageName state RUN
    289     book getword DetrendNormExp $pageName det_id   -var DET_ID 
    290     book getword DetrendNormExp $pageName iter     -var ITER   
    291     book getword DetrendNormExp $pageName det_type -var DET_TYPE
    292     book getword DetrendNormExp $pageName camera   -var CAMERA 
     289    book getword DetrendNormExp $pageName det_id    -var DET_ID 
     290    book getword DetrendNormExp $pageName iteration -var ITERATION   
     291    book getword DetrendNormExp $pageName det_type  -var DET_TYPE
     292    book getword DetrendNormExp $pageName camera    -var CAMERA 
    293293
    294294    # specify choice of remote host:
     
    300300
    301301    # XXX add $WORKDIR/$LOG_DIR
    302     stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
    303     stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
     302    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
     303    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
    304304
    305305    # save the pageName for future reference below
     
    308308    # create example job options as a demonstration
    309309    if ($VERBOSE > 1)
    310       echo command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITER --camera $CAMERA --det_type $DET_TYPE
    311     end
    312     command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITER --camera $CAMERA --det_type $DET_TYPE
     310      echo command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE
     311    end
     312    command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE
    313313  end
    314314
  • branches/eam_branch_00/ippTasks/detrend.process.pro

    r11012 r11019  
    110110
    111111    # create example job options as a demonstration
    112     setcommand detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --input_uri $URI --camera $CAMERA
     112    if ($VERBOSE > 1)
     113      echo command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --input_uri $URI --camera $CAMERA
     114    end
     115    command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --input_uri $URI --camera $CAMERA
    113116  end
    114117
     
    151154  task.exit    0
    152155    # convert 'stdout' to book format
    153     ipptool2book stdout DetrendProcessExposures -key det_id:iter:exp_tag -uniq
     156    ipptool2book stdout DetrendProcessExposures -key det_id:iteration:exp_tag -uniq
    154157    if ($VERBOSE > 2)
    155158      book listbook DetrendProcessExposures
     
    187190
    188191    book setword DetrendProcessExposures $pageName state RUN
    189     book getword DetrendProcessExposures $pageName det_id   -var DET_ID
    190     book getword DetrendProcessExposures $pageName iter     -var ITER
    191     book getword DetrendProcessExposures $pageName det_type -var DET_TYPE
    192     book getword DetrendProcessExposures $pageName exp_tag  -var EXP_TAG
    193     book getword DetrendProcessExposures $pageName camera   -var CAMERA 
     192    book getword DetrendProcessExposures $pageName det_id    -var DET_ID
     193    book getword DetrendProcessExposures $pageName iteration -var ITERATION
     194    book getword DetrendProcessExposures $pageName det_type  -var DET_TYPE
     195    book getword DetrendProcessExposures $pageName exp_tag   -var EXP_TAG
     196    book getword DetrendProcessExposures $pageName camera    -var CAMERA 
    194197
    195198    # specify choice of remote host:
  • branches/eam_branch_00/ippTasks/detrend.reject.pro

    r11012 r11019  
    4545  task.exit    0
    4646    # convert 'stdout' to book format
    47     ipptool2book stdout DetrendRejectExp -key det_id:iter -uniq
     47    ipptool2book stdout DetrendRejectExp -key det_id:iteration -uniq
    4848    if ($VERBOSE > 2)
    4949      book listbook DetrendRejectExp
     
    8181
    8282    book setword DetrendRejectExp $pageName state RUN
    83     book getword DetrendRejectExp $pageName DET_ID   -var DET_ID   
    84     book getword DetrendRejectExp $pageName ITER     -var ITER     
    85     book getword DetrendRejectExp $pageName DET_TYPE -var DET_TYPE
    86     book getword DetrendRejectExp $pageName MODE     -var MODE     
    87     book getword DetrendRejectExp $pageName CAMERA   -var CAMERA   
     83    book getword DetrendRejectExp $pageName det_id    -var DET_ID   
     84    book getword DetrendRejectExp $pageName iteration -var ITERATION     
     85    book getword DetrendRejectExp $pageName det_type -var DET_TYPE
     86    book getword DetrendRejectExp $pageName mode      -var MODE     
     87    book getword DetrendRejectExp $pageName camera    -var CAMERA   
    8888
    8989    # specify choice of remote host:
     
    9595
    9696    # I'd like to add CAMERA to the log file...
    97     stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
    98     stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.log
     97    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
     98    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.log
    9999
    100100    # save the pageName for future reference below
     
    103103    # create example job options as a demonstration
    104104    if ($VERBOSE > 1)
    105       echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE --camera $CAMERA
     105      echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA
    106106    end
    107     command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE --camera $CAMERA
     107    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA
    108108 end
    109109
  • branches/eam_branch_00/ippTasks/detrend.resid.pro

    r11012 r11019  
    4747  task.exit    0
    4848    # convert 'stdout' to book format
    49     ipptool2book stdout DetrendResidImfiles -key det_id:iter:exp_tag:class_id -uniq
     49    ipptool2book stdout DetrendResidImfiles -key det_id:iteration:exp_tag:class_id -uniq
    5050    if ($VERBOSE > 2)
    5151      book listbook DetrendResidImfiles
     
    8383
    8484    book setword DetrendResidImfiles $pageName state RUN
    85     book getword DetrendResidImfiles $pageName DET_ID   -var DET_ID   
    86     book getword DetrendResidImfiles $pageName ITER     -var ITER     
    87     book getword DetrendResidImfiles $pageName DET_TYPE -var DET_TYPE
    88     book getword DetrendResidImfiles $pageName MODE     -var MODE     
    89     book getword DetrendResidImfiles $pageName EXP_TAG  -var EXP_TAG 
    90     book getword DetrendResidImfiles $pageName CLASS_ID -var CLASS_ID
    91     book getword DetrendResidImfiles $pageName URI      -var URI     
    92     book getword DetrendResidImfiles $pageName DET_URI  -var DET_URI 
    93     book getword DetrendResidImfiles $pageName CAMERA   -var CAMERA   
     85    book getword DetrendResidImfiles $pageName det_id    -var DET_ID   
     86    book getword DetrendResidImfiles $pageName iteration -var ITERATION     
     87    book getword DetrendResidImfiles $pageName det_type -var DET_TYPE
     88    book getword DetrendResidImfiles $pageName mode      -var MODE     
     89    book getword DetrendResidImfiles $pageName exp_tag   -var EXP_TAG 
     90    book getword DetrendResidImfiles $pageName class_id -var CLASS_ID
     91    book getword DetrendResidImfiles $pageName uri       -var URI     
     92    book getword DetrendResidImfiles $pageName det_uri   -var DET_URI 
     93    book getword DetrendResidImfiles $pageName camera    -var CAMERA   
    9494
    9595    # specify choice of remote host:
     
    103103    list word -split $word
    104104    $base = $word:0
    105     stdout $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITER.$CLASS_ID.log
    106     stderr $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITER.$CLASS_ID.log
     105    stdout $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITERATION.$CLASS_ID.log
     106    stderr $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITERATION.$CLASS_ID.log
    107107    exec mkdir -p $LOGSUBDIR/$base
    108108
     
    112112    # create command
    113113    if ($VERBOSE > 1)
    114       echo command detrend_resid.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE
    115     end
    116     command detrend_resid.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE
     114      echo command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE
     115    end
     116    command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE
    117117  end
    118118
     
    155155  task.exit    0
    156156    # convert 'stdout' to book format
    157     ipptool2book stdout DetrendResidExposures -key det_id:iter:exp_tag -uniq
     157    ipptool2book stdout DetrendResidExposures -key det_id:iteration:exp_tag -uniq
    158158    if ($VERBOSE > 2)
    159159      book listbook DetrendResidExposures
     
    191191
    192192    book setword DetrendResidExposures $pageName state RUN
    193     book getword DetrendResidExposures $pageName DET_ID   -var DET_ID 
    194     book getword DetrendResidExposures $pageName ITER     -var ITER   
    195     book getword DetrendResidExposures $pageName DET_TYPE -var DET_TYPE
    196     book getword DetrendResidExposures $pageName MODE     -var MODE   
    197     book getword DetrendResidExposures $pageName EXP_TAG  -var EXP_TAG
    198     book getword DetrendResidExposures $pageName INCLUDE  -var INCLUDE
    199     book getword DetrendResidExposures $pageName CAMERA   -var CAMERA 
     193    book getword DetrendResidExposures $pageName det_id    -var DET_ID 
     194    book getword DetrendResidExposures $pageName iteration -var ITERATION   
     195    book getword DetrendResidExposures $pageName det_type -var DET_TYPE
     196    book getword DetrendResidExposures $pageName mode      -var MODE   
     197    book getword DetrendResidExposures $pageName exp_tag   -var EXP_TAG
     198    book getword DetrendResidExposures $pageName include   -var INCLUDE
     199    book getword DetrendResidExposures $pageName camera    -var CAMERA 
    200200
    201201    # specify choice of remote host:
     
    210210    list word -split $word
    211211    $base = $word:0
    212     stdout $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITER.log
    213     stderr $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITER.log
     212    stdout $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITERATION.log
     213    stderr $LOGSUBDIR/$base/$EXP_TAG.detresid.$DET_ID.$ITERATION.log
    214214    exec mkdir -p $LOGSUBDIR/$base
    215215
     
    219219    # create example job options as a demonstration
    220220    if ($VERBOSE > 1)
    221       echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
    222     end
    223     command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
     221      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
     222    end
     223    command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
    224224  end
    225225
  • branches/eam_branch_00/ippTasks/detrend.stack.pro

    r11012 r11019  
    4545  task.exit    0
    4646    # convert 'stdout' to book format
    47     ipptool2book stdout DetrendStackClass -key det_id:iter:class_id -uniq
     47    ipptool2book stdout DetrendStackClass -key det_id:iteration:class_id -uniq
    4848    if ($VERBOSE > 2)
    4949      book listbook DetrendStackClass
     
    8181
    8282    book setword DetrendStackClass $pageName state RUN
    83     book getword DetrendStackClass $pageName det_id   -var DET_ID
    84     book getword DetrendStackClass $pageName iter     -var ITER
    85     book getword DetrendStackClass $pageName det_type -var DET_TYPE
    86     book getword DetrendStackClass $pageName class_id -var CLASS_ID
    87     book getword DetrendStackClass $pageName camera   -var CAMERA 
     83    book getword DetrendStackClass $pageName det_id    -var DET_ID
     84    book getword DetrendStackClass $pageName iteration -var ITERATION
     85    book getword DetrendStackClass $pageName det_type  -var DET_TYPE
     86    book getword DetrendStackClass $pageName class_id  -var CLASS_ID
     87    book getword DetrendStackClass $pageName camera    -var CAMERA 
    8888
    8989    # specify choice of remote host:
     
    9595
    9696    # XXX add $WORKDIR/$LOG_DIR
    97     stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log
    98     stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log
     97    stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.$CLASS_ID.log
     98    stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.$CLASS_ID.log
    9999
    100100    # save the pageName for future reference below
     
    103103    # create the command line
    104104    if ($VERBOSE > 1)
    105       echo command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA
     105      echo command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA
    106106    end
    107     command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA
     107    command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA
    108108  end
    109109
  • branches/eam_branch_00/ippTasks/pantasks.pro

    r11011 r11019  
    1717$runpoll = 0.5
    1818$runexec = 1
     19
     20macro init.simtest
     21  $LOGDIR = `ipp_datapath.pl path://SIMTEST`
     22  $LOGDIR = $LOGDIR/logs
     23  exec mkdir -p $LOGDIR
     24
     25  if ($parallel)
     26    controller exit true
     27    controller host add alala
     28  end
     29end
    1930
    2031macro init.essence
     
    5566macro load.tasks
    5667  input $scripts/phase0.pro
    57   input $scripts/phase2.pro
     68#  input $scripts/phase2.pro
    5869# input $scripts/phase3.pro
    5970
     
    8091  end
    8192end
    82 
    83 macro setcommand
    84   local n
    85   $command = ""
    86   for n 1 $0
    87     $command = $command $$n
    88   end
    89   if ($VERBOSE > 1)
    90     echo "command $command"
    91   end
    92   command $command
    93 end
Note: See TracChangeset for help on using the changeset viewer.