IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9305


Ignore:
Timestamp:
Oct 5, 2006, 12:02:44 PM (20 years ago)
Author:
eugene
Message:

update to handle the exp_tag changes, new phase0_exp, phase0_imfiles
synced with tasks.md 1.86

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/phase0.pro

    r9104 r9305  
    1 
    21## this file contains the tasks for running the phase 0 stage
    32
    43## these tasks use the queue Phase0Imfiles
    54## the Phase0Imfiles queue contains:
    6 ## STATE EXP_KEY CLASS CLASS_ID URI-FITS
     5## STATE EXP_TAG CLASS CLASS_ID URI-FITS
    76## queue keys are counted from 0
    87
     
    4140    for i 0 $Nqueue
    4241      queuepop stdout -var line
    43       queuepush Phase0Imfiles -uniq -key 1 "NEW $line"
     42      list word -split $line
     43      $EXP_TAG  = $word:0
     44      $CLASS    = $word:1
     45      $CLASS_ID = $word:2
     46      $URI      = $word:3
     47      queuepush Phase0Imfiles -uniq -key 1 "NEW $EXP_TAG $CLASS $CLASS_ID $URI"
    4448    end
    4549
     
    8084
    8185    ## the Phase0Imfiles queue contains (line has popped STATE)
    82     ## STATE EXP_KEY CLASS CLASS_ID URI-FITS
     86    ## STATE EXP_TAG CLASS CLASS_ID URI-FITS
    8387    list word -split $line
     88    $EXP_TAG  = $word:0
     89    $CLASS    = $word:1
     90    $CLASS_ID = $word:2
     91    $URI      = $word:3
    8492
    8593    # specify choice of remote host:(need to choose based on chips)
     
    9199
    92100    # do something better with this output target
    93     stdout $word:0.$word:2.log
    94     stderr $word:0.$word:2.log
     101    stdout $EXP_TAG.$CLASS_ID.log
     102    stderr $EXP_TAG.$CLASS_ID.log
    95103
    96104    # create the command line
    97105    options "$line"
    98     echo command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
    99     command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
     106    echo command phase0_imfile.pl --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --uri $URI
     107    command phase0_imfile.pl --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --uri $URI
    100108  end
    101109
     
    121129## these tasks use the queue Phase0Exposures
    122130## the Phase0Exposures queue contains:
    123 ## STATE EXP_KEY CAMERA TELESCOPE TYPE NCLASS
     131## STATE EXP_TAG CAMERA TELESCOPE TYPE NCLASS
    124132
    125133# select images ready for phase0 analysis
     
    146154    for i 0 $Nqueue
    147155      queuepop stdout -var line
    148       queuepush Phase0Exposures -uniq -key 1 "NEW $line"
     156      list word -split $line
     157      $EXP_TAG   = $word:0
     158      # $EXP_ID    = $word:1
     159      # $CAMERA    = $word:2
     160      # $TELESCOPE = $word:3
     161      # $TYPE      = $word:4
     162      # $IMFILES   = $word:5
     163      queuepush Phase0Exposures -uniq -key 1 "NEW $EXP_TAG"
    149164    end
    150165
     
    185200
    186201    ## the Phase0Exposures queue contains:
    187     ## STATE EXP_KEY CAMERA TELESCOPE TYPE NCLASS
     202    ## STATE EXP_TAG CAMERA TELESCOPE TYPE NCLASS
    188203    list word -split $line
     204    $EXP_TAG   = $word:0
    189205
    190206    # do something better with this output target
    191     stdout $word:0.log
    192     stderr $word:0.log
     207    stdout $EXP_TAG.log
     208    stderr $EXP_TAG.log
    193209
    194210    # specify choice of remote host:(need to choose based on chips)
     
    201217    # create the command line
    202218    options "$line"
    203     echo command phase0exp.pl $word:0
    204     command phase0exp.pl $word:0
     219    echo command phase0_exp.pl --exp_tag $EXP_TAG
     220    command phase0_exp.pl --exp_tag $EXP_TAG
    205221  end
    206222
Note: See TracChangeset for help on using the changeset viewer.