IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25652


Ignore:
Timestamp:
Sep 28, 2009, 5:56:02 PM (17 years ago)
Author:
eugene
Message:

drop old test code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotChoosePSF.c

    r25612 r25652  
    11# include "psphotInternal.h"
    2 
    3 void psphotCountPSFStars (psArray *sources) {
    4 
    5     int nPSF = 0;
    6 
    7     // select the candidate PSF stars (pointers to original sources)
    8     for (int i = 0; i < sources->n; i++) {
    9         pmSource *source = sources->data[i];
    10         if (source->mode & PM_SOURCE_MODE_PSFSTAR) {
    11             nPSF ++;
    12         }
    13     }
    14 
    15     fprintf (stderr, "N PSF: %d\n", nPSF);
    16 }
    172
    183// try PSF models and select best option
     
    11196
    11297    psArray *stars = psArrayAllocEmpty (sources->n);
    113 
    114     // psphotCountPSFStars (sources);
    11598
    11699    // select the candidate PSF stars (pointers to original sources)
     
    127110    }
    128111
    129     // psphotCountPSFStars (sources);
    130 
    131112    // check that the identified psf stars sufficiently cover the region; if not, extend the
    132113    // limits somewhat
    133114    psphotCheckStarDistribution (stars, sources, options);
    134 
    135     // psphotCountPSFStars (sources);
    136115
    137116    psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n);
     
    305284
    306285    // save only the best model;
    307     // XXX we are not saving the fitted sources
    308     // XXX do we want to keep them so we may optionally write them out?
    309286    pmPSF *psf = psMemIncrRefCounter(try->psf);
    310287    psFree (models);
     
    316293        return NULL;
    317294    }
    318 
    319     // psphotCountPSFStars (sources);
    320295
    321296    char *modelName = pmModelClassGetName (psf->type);
Note: See TracChangeset for help on using the changeset viewer.