IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2011, 12:04:42 PM (15 years ago)
Author:
eugene
Message:

set peak->rawFlux and peak->smoothFlux to the peak pixel value by default

Location:
branches/eam_branches/ipp-20110213/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotLoadSRCTEXT.c

    r30975 r31026  
    7878
    7979            source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE);
    80             source->peak->rawFlux = peakFlux;
    81             source->peak->smoothFlux = peakFlux;
    8280            source->peak->dx   = dPAR[PM_PAR_XPOS];
    8381            source->peak->dy   = dPAR[PM_PAR_YPOS];
  • branches/eam_branches/ipp-20110213/psphot/src/psphotMergeSources.c

    r30975 r31026  
    337337        peak->xf = xpos;
    338338        peak->yf = ypos;
    339         peak->rawFlux = flux; // this are being set wrong, but does it matter?
    340         peak->smoothFlux = flux; // this are being set wrong, but does it matter?
    341339
    342340        psArrayAdd (detections->peaks, 100, peak);
  • branches/eam_branches/ipp-20110213/psphot/src/psphotSourceMatch.c

    r30975 r31026  
    229229            int col0 = readout->image->col0;
    230230
    231             // XXX the peak type is not really used in psphot
    232             // PM_PEAK_LONE is certainly not true, but irrelevant
     231            // The peak type is not used in psphot. PM_PEAK_LONE may be wrong, but irrelevant
    233232            float peakFlux = readout->image->data.F32[(int)(obj->y-row0-0.5)][(int)(obj->x-col0-0.5)];
    234233            pmPeak *peak = pmPeakAlloc(obj->x, obj->y, peakFlux, PM_PEAK_LONE);
    235             peak->rawFlux = peakFlux;
    236             peak->smoothFlux = peakFlux;
    237234            peak->xf = obj->x;
    238235            peak->yf = obj->y;
Note: See TracChangeset for help on using the changeset viewer.