IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36216


Ignore:
Timestamp:
Oct 14, 2013, 7:43:34 AM (13 years ago)
Author:
eugene
Message:

plug leaks; reduced chisq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotGalaxyShape.c

    r36210 r36216  
    155155    }
    156156    psFree (cellGroups);
     157    psFree (fitOptions);
    157158
    158159    psLogMsg ("psphot.galaxy", PS_LOG_WARN, "measure galaxy shapes : %f sec for %ld objects\n", psTimerMark ("psphot.galaxy"), sources->n);
     
    253254        }
    254255    }
    255 
     256    psFree (pcm);
    256257    return true;
    257258}
     
    303304    float Io = YM / MM;
    304305    float dIo = sqrt (1.0 / MM);
    305     float Chisq = YY - 2 * Io * YM + Io * Io * MM;
     306    float Chisq = (YY - 2 * Io * YM + Io * Io * MM) / (float) nPix;
    306307
    307308    // fprintf (stderr, "Io: %f, Chisq: %f\n", Io, Chisq);
Note: See TracChangeset for help on using the changeset viewer.