IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31026


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
Files:
5 edited

Legend:

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

    r30974 r31026  
    151151    tmp->y = y;
    152152    tmp->detValue        = value;
    153     tmp->rawFlux         = NAN;
     153    tmp->rawFlux         = value; // set this by default: it is up to the user to supply a better value
    154154    tmp->rawFluxStdev    = NAN;
    155     tmp->smoothFlux      = NAN;
     155    tmp->smoothFlux      = value; // set this by default: it is up to the user to supply a better value
    156156    tmp->smoothFluxStdev = NAN;
    157157    // tmp->SN = 0;
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceIO_SMPDATA.c

    r30974 r31026  
    205205
    206206        source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE);
    207         source->peak->rawFlux = peakFlux;
    208207
    209208        sources->data[i] = source;
  • 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.