IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2005, 5:00:41 PM (20 years ago)
Author:
eugene
Message:

updating to work with current psModules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/pmObjects_EAM.c

    r5593 r5607  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-11-25 23:13:43 $
     8 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-11-26 03:00:41 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    723723    for (psS32 row = 0; row < source->pixels->numRows ; row++) {
    724724        for (psS32 col = 0; col < source->pixels->numCols ; col++) {
    725             if ((source->mask != NULL) && (source->mask->data.U8[row][col])) continue;
     725            if ((source->mask != NULL) && (source->mask->data.U8[row][col])) {
     726                continue;
     727            }
    726728
    727729            psF32 xDiff = col + source->pixels->col0 - xPeak;
     
    730732            // XXX EAM : calculate xDiff, yDiff up front;
    731733            //           radius is just a function of (xDiff, yDiff)
    732             if (!VALID_RADIUS(xDiff, yDiff, R2)) continue;
     734            if (!VALID_RADIUS(xDiff, yDiff, R2)) {
     735                continue;
     736            }
    733737
    734738            psF32 pDiff = source->pixels->data.F32[row][col] - sky;
     
    736740            // XXX EAM : check for valid S/N in pixel
    737741            // XXX EAM : should this limit be user-defined?
    738             if (pDiff / sqrt(source->weight->data.F32[row][col]) < 1) continue;
     742            if (pDiff / sqrt(source->weight->data.F32[row][col]) < 1) {
     743                continue;
     744            }
    739745           
    740746            Sum += pDiff;
     
    10311037
    10321038        // XXX EAM : can we use the value of SATURATE if mask is NULL?
    1033         // allArray = psRegionSet (0, 0, 0, 0);
    10341039        int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
    10351040
     
    16701675        }
    16711676    }
    1672     # if (0)
    1673     else {
    1674         // try keeping the moments sky -- unsuccessful
    1675         for (int i = 1; i < paramMask->n; i++) {
    1676             paramMask->data.U8[i] = 0;
    1677         }
    1678         paramMask->data.U8[0] = 1;
    1679     }
    1680     # endif
    16811677
    16821678
     
    18141810    return(p_pmSourceAddOrSubModel(image, mask, model, center, 1));
    18151811}
    1816 
    1817 
    1818 // XXX: Put this is psConstants.h
    1819 #define PS_VECTOR_CHECK_SIZE(VEC1, N, RVAL) \
    1820 if (VEC1->n != N) { \
    1821     psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    1822             "psVector %s has size %d, should be %d.", \
    1823             #VEC1, VEC1->n, N); \
    1824     return(RVAL); \
    1825 }
Note: See TracChangeset for help on using the changeset viewer.