IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2006, 4:47:20 PM (20 years ago)
Author:
magnier
Message:

fixed up low-level issues with sky levels, sky bias

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmGrowthCurve.c

    r6556 r6751  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.1.4.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-03-09 03:14:23 $
     7 *  @version $Revision: 1.1.4.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-04-01 02:47:20 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626}
    2727
    28 pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 dRadius)
     28pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 refRadius)
    2929{
    3030
     
    3232    psMemSetDeallocator(growth, (psFreeFunc) pmGrowthCurveFree);
    3333
    34     growth->radius = psVectorCreate (NULL, minRadius, maxRadius, dRadius, PS_TYPE_F32);
     34    // fractional pixel radii are not well defined; use integer steps
     35    growth->radius = psVectorCreate (NULL, minRadius, maxRadius, 1.0, PS_TYPE_F32);
    3536    growth->apMag  = psVectorAlloc (growth->radius->n, PS_TYPE_F32);
    3637
    3738    // XXX may want to extend this to allow for a different refRadius;
    38     growth->refRadius = maxRadius;
     39    growth->refRadius = refRadius;
    3940    growth->maxRadius = maxRadius;
    4041    growth->apLoss = 0.0;
     
    111112
    112113    if (n1 == 0) {
    113         int n0 = psVectorBracket (index, key, FALSE);
     114        n0 = psVectorBracket (index, key, FALSE);
    114115        n1 = n0 + 1;
    115116    }
Note: See TracChangeset for help on using the changeset viewer.