IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12819


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

Location:
trunk/ppImage/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImage.h

    r12807 r12819  
    4141bool ppImageDetrendNonLinearPolynomial(pmReadout *input, psMetadataItem *dataItem);
    4242
    43 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName, char *inName);
     43bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName);
    4444bool ppImageRebinReadout (pmReadout *output, pmReadout *input, pmFPAfile *outFile);
    4545
  • trunk/ppImage/src/ppImageLoop.c

    r12575 r12819  
    152152            return false;
    153153        }
    154         if (!ppImageRebinChip(config, view, "PPIMAGE.BIN1", "PPIMAGE.OUTPUT.CHIP")) {
     154        if (!ppImageRebinChip(config, view, "PPIMAGE.BIN1")) {
    155155            psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n");
    156156            return false;
    157157        }
    158         if (!ppImageRebinChip(config, view, "PPIMAGE.BIN2", "PPIMAGE.OUTPUT.CHIP")) {
     158        if (!ppImageRebinChip(config, view, "PPIMAGE.BIN2")) {
    159159            psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n");
    160160            return false;
  • 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.