IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7851


Ignore:
Timestamp:
Jul 7, 2006, 7:35:59 PM (20 years ago)
Author:
Paul Price
Message:

pmConceptsAverageCells shouldn't have to set the binning, offsets.

Location:
trunk/psModules/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMosaic.c

    r7849 r7851  
    995995    // Set the concepts for the target cell
    996996    psList *sourceCells = psArrayToList(source->cells); // List of cells
    997     pmConceptsAverageCells(targetCell, sourceCells, xBin, yBin, chipRegion, NULL);
     997    pmConceptsAverageCells(targetCell, sourceCells, chipRegion, NULL);
     998    {
     999        psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0");
     1000        item->data.S32 = 0;
     1001        item = psMetadataLookup(targetCell->concepts, "CELL.Y0");
     1002        item->data.S32 = 0;
     1003        item = psMetadataLookup(targetCell->concepts, "CELL.XBIN");
     1004        item->data.S32 = xBin;
     1005        item = psMetadataLookup(targetCell->concepts, "CELL.YBIN");
     1006        item->data.S32 = yBin;
     1007    }
     1008
    9981009    psFree(sourceCells);
    9991010    psFree(chipRegion);
     
    11011112        }
    11021113    }
    1103     pmConceptsAverageCells(targetCell, sourceCells, xBin, yBin, fpaRegion, NULL);
     1114    pmConceptsAverageCells(targetCell, sourceCells, fpaRegion, NULL);
     1115    {
     1116        psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0");
     1117        item->data.S32 = 0;
     1118        item = psMetadataLookup(targetCell->concepts, "CELL.Y0");
     1119        item->data.S32 = 0;
     1120        item = psMetadataLookup(targetCell->concepts, "CELL.XBIN");
     1121        item->data.S32 = xBin;
     1122        item = psMetadataLookup(targetCell->concepts, "CELL.YBIN");
     1123        item->data.S32 = yBin;
     1124    }
    11041125    psFree(sourceCells);
    11051126    psFree(fpaRegion);
  • trunk/psModules/src/concepts/pmConceptsAverage.c

    r7850 r7851  
    1919bool pmConceptsAverageCells(pmCell *target,// Target cell
    2020                            psList *sources, // List of source cells
    21                             int xBin, int yBin, // Binning in x and y
    2221                            psRegion *trimsec, // The trim section
    2322                            psRegion *biassec // The bias section
     
    2726    PS_ASSERT_PTR_NON_NULL(sources, false);
    2827    PS_ASSERT_INT_POSITIVE(sources->n, false);
    29     PS_ASSERT_INT_NONNEGATIVE(xBin, false);
    30     PS_ASSERT_INT_NONNEGATIVE(yBin, false);
    3128
    3229    bool success = true;                // Result of setting everything
     
    9693    MD_UPDATE(target->concepts, "CELL.DARKTIME", F32, darktime);
    9794    MD_UPDATE(target->concepts, "CELL.TIMESYS", S32, timeSys);
    98     MD_UPDATE(target->concepts, "CELL.X0", S32, 0);
    99     MD_UPDATE(target->concepts, "CELL.Y0", S32, 0);
    100     if (xBin > 0) {
    101         MD_UPDATE(target->concepts, "CELL.XBIN", S32, xBin);
    102     }
    103     if (yBin > 0) {
    104         MD_UPDATE(target->concepts, "CELL.YBIN", S32, yBin);
    105     }
    10695    MD_UPDATE(target->concepts, "CELL.READDIR", S32, readdir);
    10796
  • trunk/psModules/src/concepts/pmConceptsAverage.h

    r7849 r7851  
    88bool pmConceptsAverageCells(pmCell *target,// Target cell
    99                            psList *sources, // List of source cells
    10                             int xBin, int yBin, // Binning in x and y
    1110                            psRegion *trimsec, // The trim section
    1211                            psRegion *biassec // The bias section
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r7849 r7851  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-07-08 05:21:12 $
     7 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-07-08 05:35:59 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    405405        psListAdd(inputCells, PS_LIST_TAIL, readout->parent);
    406406    }
    407     pmConceptsAverageCells(output->parent, inputCells, 0, 0, NULL, NULL);
     407    pmConceptsAverageCells(output->parent, inputCells, NULL, NULL);
    408408    psFree(inputCells);
    409409
Note: See TracChangeset for help on using the changeset viewer.