- Timestamp:
- Aug 22, 2007, 2:55:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmSourceUtils.c
r14546 r14612 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.1.2. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-08-2 0 01:58:16$8 * @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-08-23 00:55:49 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 #include "pmMoments.h" 28 28 #include "pmResiduals.h" 29 #include "pmGrowthCurve.h" 30 #include "pmPSF.h" 29 31 #include "pmModel.h" 30 32 #include "pmSource.h" … … 60 62 } 61 63 62 pmSource *pmSourceFromModel (pmModel *model, pmReadout *readout, pmSourceType type) {64 pmSource *pmSourceFromModel (pmModel *model, pmReadout *readout, float radius, pmSourceType type) { 63 65 64 66 pmSource *source = pmSourceAlloc (); … … 75 77 psAbort ("invalid source type"); 76 78 } 79 source->type = type; 77 80 78 81 pmCell *cell = readout->parent; … … 89 92 int yParityCell = psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY"); 90 93 91 // XXX whose binning? 92 int xBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"); // Binning in x and y 93 int yBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"); // Binning in x and y 94 // XXX fix the binning : currently not selected from concepts 95 // int xBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"); // Binning in x and y 96 // int yBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"); // Binning in x and y 97 int xBin = 1; 98 int yBin = 1; 94 99 95 100 // Position on the cell … … 101 106 // float yReadout = CELL_TO_READOUT(yCell, y0Readout); 102 107 103 float radius = 5.0; // XXX need to define the radius in some rational way104 105 108 pmSourceDefinePixels (source, readout, xCell, yCell, radius); 106 109
Note:
See TracChangeset
for help on using the changeset viewer.
