IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2007, 2:11:02 PM (19 years ago)
Author:
magnier
Message:
  • added function pointers to pmModel to provide class-dependent functions
  • dropped pmModel*_GetFunction functions (use pmModel->func functions instead)
  • added modelParamsFromPSF functions to model classes
  • changed pmModelGroup to pmModelClass
  • added pmSourceFitSet.[ch]
  • updated pmSourceFitSet to allow variable model classes
  • added functions to add/sub and eval models & sources with an offset between image and chip
  • added function to set a pmModel flux
  • added function to instatiate a pmModel from a pmPSF at a coordinate
  • moved pmPSF I/O to chip->analysis from readout->analysis
  • changed pmPSF I/O function names from *ForPSFmodel to pmPSFmodel*
  • changed pmModel.params_NEW back to pmModel.params
  • changed pmFind*Peaks to pmPeaksIn* (* = Image,Vector)
  • dropped pmCullPeaks (deprecated)
  • changed pmModelSetType to pmModelClassGetType
  • changed pmModelGetType to pmModelClassGetName
  • fixed PGAUSS implementation of modelRadius function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r13898 r14652  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-06-20 02:22:26 $
     5 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-08-24 00:11:02 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "pmGrowthCurve.h"
    2727#include "pmResiduals.h"
     28#include "pmPSF.h"
    2829#include "pmModel.h"
    29 #include "pmPSF.h"
    3030#include "pmSource.h"
    31 #include "pmModelGroup.h"
     31#include "pmModelClass.h"
    3232#include "pmSourcePhotometry.h"
    3333
     
    250250
    251251    // measure fitMag
    252     pmModelFlux modelFluxFunc = pmModelFlux_GetFunction (model->type);
    253     fitSum = modelFluxFunc (model->params);
     252    fitSum = model->modelFlux (model->params);
    254253    if (fitSum <= 0)
    255254        return false;
     
    324323
    325324    // the model function returns the source flux at a position
    326     pmModelFunc modelFunc = pmModelFunc_GetFunction (model->type);
    327325    psVector *coord = psVectorAlloc(2, PS_TYPE_F32);
    328326
     
    354352
    355353            // for the full model, add all points
    356             value = modelFunc (NULL, params, coord) - sky;
     354            value = model->modelFunc (NULL, params, coord) - sky;
    357355            modelSum += value;
    358356
Note: See TracChangeset for help on using the changeset viewer.