IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5124


Ignore:
Timestamp:
Sep 25, 2005, 9:20:18 PM (21 years ago)
Author:
eugene
Message:

added function to measure magnitude from correct model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMagnitudes.c

    r5085 r5124  
    11# include "psphot.h"
    22
     3// XXX EAM : this aperture correction business is invalid (& wrong) for galaxies
    34pmModel *pmSourceMagnitudes (pmSource *source, pmPSF *psf, float apRadius) {
    45
     6    int status;
    57    float x, y;
    68    float sky, rflux, apMag, fitMag;
     
    810    // use the correct model (PSF vs FLT)
    911    pmModel *model = pmSourceSelectModel (source);
    10     if (model == NULL) continue;
     12    if (model == NULL) return NULL;
    1113
    1214    x = source->peak->x;
     
    4648}
    4749
    48 pmModel *pmSourceSelectMode (pmSource *source) {
     50pmModel *pmSourceSelectModel (pmSource *source) {
    4951
    5052    pmModel *model;
Note: See TracChangeset for help on using the changeset viewer.