IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2007, 5:14:57 PM (18 years ago)
Author:
Paul Price
Message:

Adding const in various places.

File:
1 edited

Legend:

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

    r15562 r15697  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-10 01:09:20 $
     8 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-27 03:14:57 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    114114 Object Normalization
    115115 *****************************************************************************/
    116 pmPSF *pmPSFAlloc (pmPSFOptions *options)
     116pmPSF *pmPSFAlloc (const pmPSFOptions *options)
    117117{
    118118    PS_ASSERT_PTR_NON_NULL(options, NULL);
     
    164164    }
    165165    psf->params = psArrayAlloc(Nparams);
    166    
     166
    167167    // save the trend stats on the psf for use in pmPSFFromPSFtry
    168168    psf->psfTrendStats = psMemIncrRefCounter (options->stats);
     
    185185    // elements are only used by the image map representation
    186186    if (options->psfTrendMode == PM_TREND_MAP) {
    187         psImageBinningSetScale (binning, PS_IMAGE_BINNING_CENTER);
    188         psImageBinningSetSkipByOffset (binning, options->psfFieldXo, options->psfFieldYo);
     187        psImageBinningSetScale (binning, PS_IMAGE_BINNING_CENTER);
     188        psImageBinningSetSkipByOffset (binning, options->psfFieldXo, options->psfFieldYo);
    189189    }
    190190
     
    386386
    387387    for (int i = PM_PAR_SXY + 1; i < psf->params->n; i++) {
    388         trend = psf->params->data[i];
     388        trend = psf->params->data[i];
    389389        trend->poly->coeff[0][0] = (psF32)va_arg(ap, psF64);
    390390    }
     
    461461        if (!pmSourcePhotometryAper (&apMag, model, image, mask, maskVal)) {
    462462            psError(PM_ERR_PHOTOM, false, "Measuring apMag for radius == %g", radius);
    463             psErrorStackPrint (stderr, "failure to get growth curve");
    464             psErrorClear();
     463            psErrorStackPrint (stderr, "failure to get growth curve");
     464            psErrorClear();
    465465            completeGrowthCurve = false;
    466466            break;
Note: See TracChangeset for help on using the changeset viewer.