IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2007, 2:55:49 PM (19 years ago)
Author:
magnier
Message:

adjusted pmModel.h to allow pmModel to use functions which use pmModel
as an argument.

adjusted the order of the pmPSF.h entries to allow that as an argument
as well

changed pmPSF I/O functions to load/save the psf on the
chip->analysis, not the readout->analysis

fixed the modelRadius function for PGAUSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/psModules/src/objects/pmSourceUtils.c

    r14546 r14612  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-08-20 01:58:16 $
     8 *  @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-08-23 00:55:49 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727#include "pmMoments.h"
    2828#include "pmResiduals.h"
     29#include "pmGrowthCurve.h"
     30#include "pmPSF.h"
    2931#include "pmModel.h"
    3032#include "pmSource.h"
     
    6062}
    6163
    62 pmSource *pmSourceFromModel (pmModel *model, pmReadout *readout, pmSourceType type) {
     64pmSource *pmSourceFromModel (pmModel *model, pmReadout *readout, float radius, pmSourceType type) {
    6365
    6466    pmSource *source = pmSourceAlloc ();
     
    7577        psAbort ("invalid source type");
    7678    }
     79    source->type = type;
    7780
    7881    pmCell *cell = readout->parent;
     
    8992    int yParityCell = psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY");
    9093
    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;
    9499
    95100    // Position on the cell
     
    101106    // float yReadout = CELL_TO_READOUT(yCell, y0Readout);
    102107   
    103     float radius = 5.0; // XXX need to define the radius in some rational way
    104 
    105108    pmSourceDefinePixels (source, readout, xCell, yCell, radius);
    106109
Note: See TracChangeset for help on using the changeset viewer.