IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16909


Ignore:
Timestamp:
Mar 10, 2008, 11:03:30 AM (18 years ago)
Author:
Paul Price
Message:

Check for non-finite metrics; not sure where these are coming from yet (nor whether the mask value that's applied when a bad one is found is proper), but they stop the PSF determination from working.

File:
1 edited

Legend:

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

    r15842 r16909  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.53 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-12-15 01:23:18 $
     7 *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-03-10 21:03:30 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    281281
    282282    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        }
    283287        if (psfTry->mask->data.U8[i] & PSFTRY_MASK_ALL)
    284288            continue;
Note: See TracChangeset for help on using the changeset viewer.