IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29312


Ignore:
Timestamp:
Oct 4, 2010, 2:48:37 PM (16 years ago)
Author:
eugene
Message:

dipole measurements redefined to match definitions from Armin (do not filter pixels by S/N)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c

    r29271 r29312  
    444444    }
    445445
     446    // NOTE: until 2010.10.01, these measurements included a 3sigma-per-pixel significance
     447    // this followed what we understood as the definition given to us
     448    // by Armin, but it always seemed a poor idea -- a faint source is unlikely to have any 3sigma pixels.
     449    // changed to remove the per-pixel filter.
     450
    446451    for (int iy = 0; iy < flux->numRows; iy++) {
    447452        for (int ix = 0; ix < flux->numCols; ix++) {
    448453            // only count up the stats in the unmarked region (ie, the aperture)
     454            // skip the marked pixels; these are not relevant
    449455            if (mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & markVal) {
    450456                continue;
     
    455461            }
    456462
    457             float SN = flux->data.F32[iy][ix] / sqrt(variance->data.F32[iy][ix]);
    458 
    459             if (SN > +FLUX_LIMIT) {
     463            float flux = flux->data.F32[iy][ix];
     464
     465            if (flux > 0.0) {
    460466                nGood ++;
    461                 fGood += fabs(flux->data.F32[iy][ix]);
    462             }
    463 
    464             if (SN < -FLUX_LIMIT) {
     467                fGood += fabs(flux);
     468            } else {
    465469                nBad ++;
    466                 fBad += fabs(flux->data.F32[iy][ix]);
     470                fBad += fabs(flux-);
    467471            }
    468472        }
Note: See TracChangeset for help on using the changeset viewer.