IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5735


Ignore:
Timestamp:
Dec 7, 2005, 11:36:05 AM (20 years ago)
Author:
desonia
Message:

fixed small errors (Bug 614 and 615)

Location:
trunk/psModules
Files:
2 added
2 edited

Legend:

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

    r5435 r5735  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-10-20 23:06:24 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-12-07 21:35:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    11071107        bool big = (sigX > (clump.X - clump.dX)) && (sigY > (clump.Y - clump.dY));
    11081108        if ((Nsatpix > 1) && big) {
    1109             tmpSrc->type |= PM_SOURCE_SATSTAR;
     1109            tmpSrc->type = PM_SOURCE_SATSTAR;
    11101110            Nsatstar ++;
    11111111            continue;
     
    11141114        // saturated object (not a star, eg bleed trails, hot pixels)
    11151115        if (Nsatpix > 1) {
    1116             tmpSrc->type |= PM_SOURCE_SATURATED;
     1116            tmpSrc->type = PM_SOURCE_SATURATED;
    11171117            Nsat ++;
    11181118            continue;
     
    11231123        // only set candidate defects if
    11241124        if ((sigX < 0.05) || (sigY < 0.05)) {
    1125             tmpSrc->type |= PM_SOURCE_DEFECT;
     1125            tmpSrc->type = PM_SOURCE_DEFECT;
    11261126            Ncr ++;
    11271127            continue;
     
    11301130        // likely unsaturated galaxy (too large to be stellar)
    11311131        if ((sigX > (clump.X + 3*clump.dX)) || (sigY > (clump.Y + 3*clump.dY))) {
    1132             tmpSrc->type |= PM_SOURCE_GALAXY;
     1132            tmpSrc->type = PM_SOURCE_GALAXY;
    11331133            Ngal ++;
    11341134            continue;
     
    11431143        psF32 radius = hypot ((sigX-clump.X)/clump.dX, (sigY-clump.Y)/clump.dY);
    11441144        if ((SN > PSF_SN_LIM) && (radius < 1.5)) {
    1145             tmpSrc->type |= PM_SOURCE_PSFSTAR;
     1145            tmpSrc->type = PM_SOURCE_PSFSTAR;
    11461146            Npsf ++;
    11471147            continue;
     
    11491149
    11501150        // random type of star
    1151         tmpSrc->type |= PM_SOURCE_OTHER;
     1151        tmpSrc->type = PM_SOURCE_OTHER;
    11521152    }
    11531153
  • trunk/psModules/src/objects/pmPSF.c

    r5255 r5735  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-10-10 19:53:40 $
     8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-12-07 21:35:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9494    for (int i = 0; i < psf->params->n; i++) {
    9595        // XXX EAM : make this a user-defined value?
    96         // XXX EAM : future version (0.7.0?) psf->params->data[i] = psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, 1);
    97         psf->params->data[i] = psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, 1);
     96        psf->params->data[i] = psPolynomial2DAlloc(1, 1, PS_POLYNOMIAL_ORD);
    9897    }
    9998
Note: See TracChangeset for help on using the changeset viewer.