IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13716


Ignore:
Timestamp:
Jun 7, 2007, 4:52:21 PM (19 years ago)
Author:
Paul Price
Message:

Averaging concepts of input readouts into output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStack.c

    r13520 r13716  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2007-05-25 03:43:22 $
     10 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2007-06-08 02:52:21 $
    1212 *
    1313 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    2121#include <stdio.h>
    2222#include <pslib.h>
     23
     24#include "pmHDU.h"
     25#include "pmFPA.h"
     26#include "pmConceptsAverage.h"
    2327
    2428#include "pmStack.h"
     
    513517    psFree(buffer);
    514518
     519    psList *cells = psListAlloc(NULL);  // List of cells, for concept update
     520    for (int i = 0; i < num; i++) {
     521        pmStackData *data = input->data[i]; // Stacking data; contains the list of pixels
     522        psListAdd(cells, PS_LIST_TAIL, data->sky->parent);
     523    }
     524    if (!pmConceptsAverageCells(combined->parent, cells, NULL, NULL, false)) {
     525        psError(PS_ERR_UNKNOWN, false, "Unable to average concepts for input sky readouts.");
     526        psFree(cells);
     527        return false;
     528    }
     529    psFree(cells);
     530
    515531    return true;
    516532}
Note: See TracChangeset for help on using the changeset viewer.