IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30977


Ignore:
Timestamp:
Mar 18, 2011, 2:11:57 PM (15 years ago)
Author:
eugene
Message:

change due to pmPeak element changes

Location:
branches/eam_branches/ipp-20110213
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppSim/src/Makefile.am

    r30618 r30977  
    4848        ppSimLoop.c               \
    4949        ppSimMergeReadouts.c      \
    50         ppSimDetections.c         \
    5150        ppSimMergeSources.c       \
    5251        ppSimMosaicChip.c         \
  • branches/eam_branches/ipp-20110213/ppSim/src/ppSimDetectionLimits.c

    r18011 r30977  
    33// compare injected sources (PPSIM.SOURCES) and measured fake sources (PPSIM.FAKE.SOURCES)
    44// to determine detection limits and recovered magnitude errors
     5// XXX this function is not used
    56bool ppSimDetectionLimits (pmConfig *config, pmFPAview *view) {
    67
  • branches/eam_branches/ipp-20110213/ppSim/src/ppSimDetections.c

    r18011 r30977  
    11# include "ppSim.h"
    22
     3// XXX this function is not used
    34bool ppSimDetections (psImage *significance, psMetadata *recipe, psArray *sources) {
    45    psAssert (sources, "programming error: ppSimDetections passed NULL sources");
     
    1213    float SIGMA_SMTH  = psMetadataLookupF32 (&status, recipe, "SIGMA_SMOOTH");
    1314    psAssert (status, "SIGMA_SMOOTH missing: call psphotSignificanceImage first");
    14     float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
     15    // float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
    1516
    1617    int row0 = significance->row0;
     
    2324        psAssert (peak, "peak is not defined for the source");
    2425
    25         peak->value = significance->data.F32[peak->y-row0][peak->x-col0];
    26         peak->SN = sqrt(peak->value*effArea);
    27 
     26        peak->detValue = significance->data.F32[peak->y-row0][peak->x-col0];
    2827    }
    2928    return true;
  • branches/eam_branches/ipp-20110213/ppSub/src/ppSubFlagNeighbors.c

    r30892 r30977  
    191191        if (!isfinite(src->peak->xf)) NEXT1;
    192192        if (!isfinite(src->peak->yf)) NEXT1;
    193         if (!isfinite(src->peak->SN)) NEXT1;
    194         if (src->peak->SN < MIN_SN) NEXT1;
     193        if (!isfinite(src->peak->detValue)) NEXT1;
     194        if (sqrt(src->peak->detValue) < MIN_SN) NEXT1;
    195195 
    196196        if (!obj) NEXT2;
     
    213213            if (!isfinite(src->peak->xf)) NEXT1;
    214214            if (!isfinite(src->peak->yf)) NEXT1;
    215             if (!isfinite(src->peak->SN)) NEXT1;
    216             if (src->peak->SN < MIN_SN) NEXT1;
     215            if (!isfinite(src->peak->detValue)) NEXT1;
     216            if (sqrt(src->peak->detValue) < MIN_SN) NEXT1;
    217217
    218218            dx = src->peak->xf - obj->x;
     
    235235        src = sources->data[Imin];
    236236
    237         // fprintf (stderr, "j: %d, Imin: %d, obj x,y: %f, %f  src x,y: %f, %f, SN: %f, ID: %d\n", j, Imin, obj->x, obj->y, src->peak->xf, src->peak->yf, src->peak->SN, src->id);
     237        // fprintf (stderr, "j: %d, Imin: %d, obj x,y: %f, %f  src x,y: %f, %f, SN: %f, ID: %d\n", j, Imin, obj->x, obj->y, src->peak->xf, src->peak->yf, sqrt(src->peak->detValue), src->id);
    238238
    239239        // add source to object
  • branches/eam_branches/ipp-20110213/ppSub/src/ppSubMakePSF.c

    r30619 r30977  
    158158psArray *ppSubSelectPSFSources(psArray *sources){
    159159
    160     sources = psArraySort (sources, pmSourceSortBySN);
     160    sources = psArraySort (sources, pmSourceSortByFlux);
    161161
    162162    psArray *subset = psArrayAllocEmpty(MAX_NPSF);
  • branches/eam_branches/ipp-20110213/psastro/src/psastroConvert.c

    r26897 r30977  
    5858    // sort in ascending magnitude order
    5959    // psArraySort (inStars, psastroSortByMag);
    60     // psVector *index = psArraySortIndex (sources, pmSourceSortBySN);
     60    // psVector *index = psArraySortIndex (sources, pmSourceSortByFlux);
    6161    psVector *index = psArraySortIndex (NULL, inStars, psastroSortByMag);
    6262
  • branches/eam_branches/ipp-20110213/pswarp/src/pswarpTransformSources.c

    r29000 r30977  
    9494        // relative flux) that's OK.
    9595        pmSource *new = pmSourceAlloc(); ///< New source
    96         new->peak = pmPeakAlloc(xOut, yOut, source->peak->flux, PM_PEAK_LONE);
    97         new->peak->flux = source->peak->flux;
     96        new->peak = pmPeakAlloc(xOut, yOut, source->peak->detValue, PM_PEAK_LONE);
     97        new->peak->rawFlux = source->peak->rawFlux;
     98        new->peak->smoothFlux = source->peak->smoothFlux;
    9899        new->type = source->type;
    99100        new->mode = source->mode;
Note: See TracChangeset for help on using the changeset viewer.