IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2006, 8:18:46 PM (20 years ago)
Author:
magnier
Message:

additions to objects for further flexibility with options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmPSFtry.c

    r6825 r6848  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.4.4.3 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-04-10 20:21:36 $
     7 *  @version $Revision: 1.4.4.4 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-04-13 06:18:46 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5050
    5151// allocate a pmPSFtry based on the desired sources and the model (identified by name)
    52 pmPSFtry *pmPSFtryAlloc (psArray *sources, char *modelName)
     52pmPSFtry *pmPSFtryAlloc (psArray *sources, char *modelName, bool poissonErrors)
    5353{
    5454
     
    5959    // XXX probably need to increment ref counter
    6060    type           = pmModelSetType (modelName);
    61     test->psf      = pmPSFAlloc (type);
     61    test->psf      = pmPSFAlloc (type, poissonErrors);
    6262    test->sources  = psMemIncrRefCounter(sources);
    6363    test->modelEXT = psArrayAlloc (sources->n);
     
    8888// mask values indicate the reason the source was rejected:
    8989
    90 pmPSFtry *pmPSFtryModel (psArray *sources, char *modelName, float RADIUS)
     90pmPSFtry *pmPSFtryModel (psArray *sources, char *modelName, float RADIUS, bool poissonErrors)
    9191{
    9292    bool status;
     
    9898    int Npsf = 0;
    9999
    100     pmPSFtry *psfTry = pmPSFtryAlloc (sources, modelName);
     100    pmPSFtry *psfTry = pmPSFtryAlloc (sources, modelName, poissonErrors);
    101101
    102102    // stage 1:  fit an independent model (freeModel) to all sources
     
    113113
    114114        psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_SOURCE_MASK_MARKED);
    115         status = pmSourceFitModel (source, model, false);
     115        status = pmSourceFitModel (source, model, PM_SOURCE_FIT_EXT);
    116116        psImageKeepCircle (source->mask, x, y, RADIUS, "AND", ~PM_SOURCE_MASK_MARKED);
    117117
     
    147147
    148148        psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_SOURCE_MASK_MARKED);
    149         status = pmSourceFitModel (source, modelPSF, true);
     149        status = pmSourceFitModel (source, modelPSF, PM_SOURCE_FIT_PSF);
    150150
    151151        // skip poor fits
Note: See TracChangeset for help on using the changeset viewer.