IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2008, 3:49:23 PM (18 years ago)
Author:
eugene
Message:

measure mags for all extended source models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psModules/src/objects/pmSourcePhotometry.c

    r17310 r17328  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.39.2.1 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-04-03 06:01:55 $
     5 *  @version $Revision: 1.39.2.2 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-04-05 01:49:23 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    119119    }
    120120
    121     // measure EXT model photometry (do both modelEXT and modelConv or just the one?)
    122     status = pmSourcePhotometryModel (&source->extMag, source->modelEXT);
     121    // if we have a collection of model fits, one of them is a pointer to modelEXT?
     122    // XXX not guaranteed
     123    if (source->modelFits) {
     124      for (int i = 0; i < source->modelFits->n; i++) {
     125        pmModel *model = source->modelFits->data[i];
     126        status = pmSourcePhotometryModel (&model->mag, model);
     127      }
     128      if (source->modelEXT) {
     129        source->extMag = source->modelEXT->mag;
     130      }
     131    } else {
     132      if (source->modelEXT) {
     133        status = pmSourcePhotometryModel (&source->extMag, source->modelEXT);
     134      }
     135    }
    123136
    124137    // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS
Note: See TracChangeset for help on using the changeset viewer.