IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2005, 1:13:43 PM (20 years ago)
Author:
eugene
Message:

updated to use psLib.v8, dropping _EAM code everywhere

File:
1 edited

Legend:

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

    r5351 r5593  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-10-17 19:04:33 $
     8 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-11-25 23:13:43 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    999999    int Ncr      = 0;
    10001000    int Nsatstar = 0;
    1001     // psRegion allArray;
     1001    psRegion allArray = psRegionSet (0, 0, 0, 0);
    10021002
    10031003    psVector *starsn = psVectorAlloc (sources->n, PS_TYPE_F32);
     
    10311031
    10321032        // XXX EAM : can we use the value of SATURATE if mask is NULL?
    1033         // XXX EAM *** serious errors in psImageCountPixelMask: inconsistent with psRegion and subimage
    1034         // allArray = psRegionSet (1, tmpSrc->mask->numCols, 1, tmpSrc->mask->numRows);
    1035         // int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
    1036         int Nsatpix = psImageCountPixelMask_EAM (tmpSrc->mask, PSPHOT_MASK_SATURATED);
     1033        // allArray = psRegionSet (0, 0, 0, 0);
     1034        int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
    10371035
    10381036        // saturated star (size consistent with PSF or larger)
     
    16481646                Ro = 1.0 + fabs (y->data.F32[tmpCnt] - ymodel) / sqrt(PS_SQR(ymodel - So) + PS_SQR(So));
    16491647
    1650                 // psMinimizeLMChi2_EAM takes wt = 1/dY^2
     1648                // psMinimizeLMChi2 takes wt = 1/dY^2
    16511649                if (source->weight->data.F32[i][j] == 0) {
    16521650                  yErr->data.F32[tmpCnt] = 0.0;
     
    17011699
    17021700    psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n");
    1703     fitStatus = psMinimizeLMChi2_EAM(myMin, covar, params, paramMask, x, y, yErr, modelFunc);
     1701
     1702    fitStatus = psMinimizeLMChi2 (myMin, covar, params, paramMask, x, y, yErr, modelFunc);
    17041703    for (int i = 0; i < dparams->n; i++) {
    17051704        if ((paramMask != NULL) && paramMask->data.U8[i]) continue;
    17061705        dparams->data.F32[i] = sqrt(covar->data.F64[i][i]);
    17071706    }
    1708  
    17091707    // XXX EAM: we need to do something (give an error?) if rc is false
    17101708    // XXX EAM: psMinimizeLMChi2 does not check convergence
     
    17241722    if (paramMask != NULL) {
    17251723        psVector *delta = psVectorAlloc (params->n, PS_TYPE_F64);
    1726         psMinimizeGaussNewtonDelta_EAM (delta, params, NULL, x, y, yErr, modelFunc);
     1724        psMinimizeGaussNewtonDelta (delta, params, NULL, x, y, yErr, modelFunc);
    17271725        for (int i = 0; i < dparams->n; i++) {
    17281726            if (!paramMask->data.U8[i]) continue;
Note: See TracChangeset for help on using the changeset viewer.