IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2008, 8:36:06 AM (18 years ago)
Author:
eugene
Message:

merging from eam_branch_20080324 : psphot work on extended source fitting and related I/O functions

File:
1 edited

Legend:

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

    r17287 r17396  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-04-02 22:40:36 $
     5 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-04-08 18:35:38 $
    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.