IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2007, 9:31:05 AM (19 years ago)
Author:
eugene
Message:

RebinChip should use output->src rather than looking for a named fpa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageRebinReadout.c

    r12592 r12819  
    55#include "ppImage.h"
    66
    7 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName, char *inName) {
     7bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName) {
    88
    99    pmCell *cell;
    1010    pmReadout *inReadout, *outReadout;
    11 
    12     pmFPAfile *inFile = psMetadataLookupPtr (NULL, config->files, inName);
    13     if (inFile == NULL) return false;
    1411
    1512    pmFPAfile *outFile = psMetadataLookupPtr (NULL, config->files, outName);
     
    1815    // XXX double check that chip != -1?
    1916
    20     pmChip *inChip = pmFPAviewThisChip (view, inFile->fpa);
     17    pmChip *inChip  = pmFPAviewThisChip (view, outFile->src);
    2118    pmChip *outChip = pmFPAviewThisChip (view, outFile->fpa);
    2219    if (!pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin)) {
     
    2522    }
    2623
    27     while ((cell = pmFPAviewNextCell (view, inFile->fpa, 1)) != NULL) {
     24    while ((cell = pmFPAviewNextCell (view, outFile->src, 1)) != NULL) {
    2825        psLogMsg ("ppImageRebinChip", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    2926        if (! cell->process || ! cell->file_exists) { continue; }
    3027
    3128        // process each of the readouts
    32         while ((inReadout = pmFPAviewNextReadout (view, inFile->fpa, 1)) != NULL) {
     29        while ((inReadout = pmFPAviewNextReadout (view, outFile->src, 1)) != NULL) {
    3330            if (! inReadout->data_exists) { continue; }
    3431
Note: See TracChangeset for help on using the changeset viewer.