IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2010, 8:48:51 AM (16 years ago)
Author:
eugene
Message:

add photometry mode PSFONLY to avoid excess calculations before they are needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c

    r29353 r29489  
    7676
    7777// XXX masked region should be (optionally) elliptical
     78// if mode is PM_SOURCE_PHOT_PSFONLY, we skip all other magnitudes
    7879bool pmSourceMagnitudes (pmSource *source, pmPSF *psf, pmSourcePhotometryMode mode, psImageMaskType maskVal, psImageMaskType markVal)
    7980{
     
    117118    // measure PSF model photometry
    118119    // XXX TEST: do not use flux scale
     120    // XXX NOTE: turn this back on?
    119121    if (0 && psf->FluxScale) {
    120122        // the source peak pixel is guaranteed to be on the image, and only minimally different from the source center
     
    128130        status = pmSourcePhotometryModel (&source->psfMag, &source->psfFlux, source->modelPSF);
    129131        source->psfFluxErr = source->psfFlux * (source->modelPSF->dparams->data.F32[PM_PAR_I0] / source->modelPSF->params->data.F32[PM_PAR_I0]);
     132    }
     133
     134    if (mode == PM_SOURCE_PHOT_PSFONLY) {
     135        return true;
    130136    }
    131137
Note: See TracChangeset for help on using the changeset viewer.