IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2008, 2:49:14 PM (18 years ago)
Author:
Paul Price
Message:

The NANs in the pmPSFtry->metric vector were coming from
pmSourceMagnitudes with mode=PM_SOURCE_PHOT_INTERP, and some bad
pixels in the source postage stamp. The NANs were effectively grown
by the call to psImageShift, while the mask was not grown. This
results in NAN pixels being accumulated in pmSourcePhotometryAper,
resulting in a NAN aperMag, so that the metric is also NAN.

Another possible error I found while debugging is that
pmSourcePixelWeight and pmSourcePhotometryAper should be run with the
mask value set to "maskVal | mark", so that only the circular aperture
is used.

File:
1 edited

Legend:

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

    r16909 r16911  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2008-03-10 21:03:30 $
     7 *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-03-11 00:49:14 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    193193        psfTry->metric->data.F32[i] = source->apMag - source->psfMag;
    194194        psfTry->metricErr->data.F32[i] = source->errMag;
     195
    195196        Npsf ++;
    196197    }
     
    281282
    282283    for (int i = 0; i < psfTry->sources->n; i++) {
    283         if (!isfinite(psfTry->metric->data.F32[i]) || !isfinite(psfTry->metricErr->data.F32[i])) {
    284             psfTry->mask->data.U8[i] = PSFTRY_MASK_ALL;
    285             continue;
    286         }
    287284        if (psfTry->mask->data.U8[i] & PSFTRY_MASK_ALL)
    288285            continue;
Note: See TracChangeset for help on using the changeset viewer.