IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

we had 3 items conceptually equivalent to the brightness of a peak: "value", "flux", and "SN"; Ive modified pmPeak to carry explicitly named elements "rawFlux", "smoothFlux", and "detValue". Ive also added the corresponding variance values for rawFlux and smoothFlux. This lets us choose independently of the peak detection process whether flux comparisons are done relative to the smoothed or unsmoothed image. It also simplifies tests of the peak flux compared to something else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceIO_RAW.c

    r29004 r30974  
    126126                 source[0].apMag, source[0].type, source[0].mode,
    127127                 logChi, logChiNorm,
    128                  source[0].peak->SN,
     128                 source[0].peak->rawFlux,
    129129                 source[0].apRadius,
    130130                 source[0].pixWeightNotBad,
     
    188188                 log10(model[0].chisq/model[0].nDOF),
    189189                 log10(model[0].chisqNorm/model[0].nDOF),
    190                  source[0].peak->SN,
     190                 source[0].peak->rawFlux,
    191191                 source[0].apRadius,
    192192                 source[0].pixWeightNotBad,
     
    234234
    235235        fprintf (f, "%5d %5d  %7.1f  %7.1f %7.1f  %6.3f %6.3f  %8.1f %7.1f %7.1f %7.1f  %4d %2d\n",
    236                  source->peak->x, source->peak->y, source->peak->value,
     236                 source->peak->x, source->peak->y, source->peak->detValue,
    237237                 moment->Mx, moment->My,
    238238                 moment->Mxx, moment->Myy,
     
    270270            continue;
    271271        fprintf (f, "%5d %5d  %8.1f  %7.1f %7.1f  %6.3f %6.3f  %10.1f %7.1f %7.1f %7.1f  %4d %2d %#5x\n",
    272                  source->peak->x, source->peak->y, source->peak->value,
     272                 source->peak->x, source->peak->y, source->peak->detValue,
    273273                 source->moments->Mx, source->moments->My,
    274274                 source->moments->Mxx, source->moments->Myy,
     
    299299            continue;
    300300        fprintf (f, "%5d %5d  %7.1f %7.2f %7.2f %7.2f\n",
    301                  peak->x, peak->y, peak->value, peak->SN, peak->xf, peak->yf);
    302     }
    303     fclose (f);
    304     return true;
    305 }
    306 
     301                 peak->x, peak->y, peak->detValue, peak->rawFlux, peak->xf, peak->yf);
     302    }
     303    fclose (f);
     304    return true;
     305}
     306
Note: See TracChangeset for help on using the changeset viewer.