IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8474


Ignore:
Timestamp:
Aug 22, 2006, 1:20:23 PM (20 years ago)
Author:
rhl
Message:

Two changes relating to Bug 807:
1/ Ignore objects with PM_SOURCE_MODE_BLEND set when determining rough PSF
2/ OR in new pmSource.mode values so as not to override previous bits

File:
1 edited

Legend:

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

    r8471 r8474  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-08-22 20:46:55 $
     8 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-22 23:20:23 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    225225                continue;
    226226            }
     227            if (tmpSrc->mode & PM_SOURCE_MODE_BLEND) {
     228                continue;
     229            }
    227230
    228231            // for the moment, force splane dimensions to be 10x10 image pix
     
    258261
    259262        if (peaks == NULL)
     263        {
    260264            return (psfClump);
     265        }
    261266    }
    262267    // XXX EAM : possible errors:
     
    395400        if ((Nsatpix > 1) && big) {
    396401            tmpSrc->type = PM_SOURCE_TYPE_STAR;
    397             tmpSrc->mode = PM_SOURCE_MODE_SATSTAR;
     402            tmpSrc->mode |= PM_SOURCE_MODE_SATSTAR;
    398403            Nsatstar ++;
    399404            continue;
     
    403408        if (Nsatpix > 1) {
    404409            tmpSrc->type = PM_SOURCE_TYPE_SATURATED;
    405             tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
     410            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
    406411            Nsat ++;
    407412            continue;
     
    413418        if ((sigX < 0.05) || (sigY < 0.05)) {
    414419            tmpSrc->type = PM_SOURCE_TYPE_DEFECT;
    415             tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
     420            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
    416421            Ncr ++;
    417422            continue;
     
    421426        if ((sigX > (clump.X + 3*clump.dX)) || (sigY > (clump.Y + 3*clump.dY))) {
    422427            tmpSrc->type = PM_SOURCE_TYPE_EXTENDED;
    423             tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
     428            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
    424429            Next ++;
    425430            continue;
     
    435440        if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < 1.5)) {
    436441            tmpSrc->type = PM_SOURCE_TYPE_STAR;
    437             tmpSrc->mode = PM_SOURCE_MODE_PSFSTAR;
     442            tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR;
    438443            Npsf ++;
    439444            continue;
     
    442447        // random type of star
    443448        tmpSrc->type = PM_SOURCE_TYPE_STAR;
    444         tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
     449        tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
    445450    }
    446451
Note: See TracChangeset for help on using the changeset viewer.