IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10454


Ignore:
Timestamp:
Dec 4, 2006, 3:16:24 PM (20 years ago)
Author:
jhoblitt
Message:

add handling for file_id & complete implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r10416 r10454  
    150150        for i 0 $Nstdout
    151151            queuepop stdout -var line
    152             list word -split $line
    153             $exp_id     = $word:0
    154             $camera     = $word:1
    155             $telescope  = $word:2
    156             $bytes      = $word:3
    157             $md5sum     = $word:4
    158             $class      = $word:5
    159             $class_id   = $word:6
    160             $uri        = $word:7
    161 
    162             queuepush pzPendingImfile -uniq -key 1:2:3:6:7 "NEW $line"
     152#            list word -split $line
     153#            $exp_id     = $word:0
     154#            $camera     = $word:1
     155#            $telescope  = $word:2
     156#            $file_id    = $word:3
     157#            $bytes      = $word:4
     158#            $md5sum     = $word:5
     159#            $class      = $word:6
     160#            $class_id   = $word:7
     161#            $uri        = $word:8
     162#            $exp_tag    = $word:9
     163
     164            queuepush pzPendingImfile -uniq -key 1:2:3:7:8 "NEW $line"
    163165        end
    164166
     
    192194
    193195        # put the line back into the queue with a stea of RUN
    194         queuepush pzPendingImfile -replace -key 1:2:3:6:7 "RUN $line"
     196        queuepush pzPendingImfile -replace -key 1:2:3:7:8 "RUN $line"
    195197
    196198        # the STATE has already been removed from the line
     
    199201        $camera     = $word:1
    200202        $telescope  = $word:2
    201         $bytes      = $word:3
    202         $md5sum     = $word:4
    203         $class      = $word:5
    204         $class_id   = $word:6
    205         $uri        = $word:7
     203        $file_id    = $word:3
     204        $bytes      = $word:4
     205        $md5sum     = $word:5
     206        $class      = $word:6
     207        $class_id   = $word:7
     208        $uri        = $word:8
     209        $exp_tag    = $word:9
    206210
    207211#        # specify choice of remote host:(need to choose based on chips)
     
    229233        $camera     = $word:1
    230234        $telescope  = $word:2
    231         $bytes      = $word:3
    232         $md5sum     = $word:4
    233         $class      = $word:5
    234         $class_id   = $word:6
    235         $uri        = $word:7
     235        $file_id    = $word:3
     236        $bytes      = $word:4
     237        $md5sum     = $word:5
     238        $class      = $word:6
     239        $class_id   = $word:7
     240        $uri        = $word:8
     241        $exp_tag    = $word:9
    236242        queuepush pzCopyDone -key 1:2:3:6:7 "NEW $exp_id $camera $telescope $bytes $md5sum $class $class_id $workdir/$exp_id.$class_id.fits"
    237243        queuepush pzPendingExp -replace -key 1:2:3:6:7 "DONE $options:0"
     
    265271
    266272        # put the line back into the queue with a stea of RUN
    267         queuepush pzCopyDone -replace -key 1:2:3:6:7 "RUN $line"
     273        queuepush pzCopyDone -replace -key 1:2:3:7:8 "RUN $line"
    268274
    269275        # the STATE has already been removed from the line
     
    272278        $camera     = $word:1
    273279        $telescope  = $word:2
    274         $bytes      = $word:3
    275         $md5sum     = $word:4
    276         $class      = $word:5
    277         $class_id   = $word:6
    278         $uri        = $word:7
     280        $file_id    = $word:3
     281        $bytes      = $word:4
     282        $md5sum     = $word:5
     283        $class      = $word:6
     284        $class_id   = $word:7
     285        $uri        = $word:8
     286        $exp_tag    = $word:9
    279287
    280288        # store the current line without the state
    281289        options "$line"
    282290
    283         local cmd
    284         $cmd = pztool -copydone -exp_id $exp_id -inst $camera -telescope $telescope -class $class -class_id $class_id -uri $uri
    285         echo command $cmd
    286         command $cmd
     291        echo command pztool -copydone -exp_id $exp_id -inst $camera -telescope $telescope -class $class -class_id $class_id -uri $uri
     292        command pztool -copydone -exp_id $exp_id -inst $camera -telescope $telescope -class $class -class_id $class_id -uri $uri
    287293    end
    288294
Note: See TracChangeset for help on using the changeset viewer.