IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17118


Ignore:
Timestamp:
Mar 24, 2008, 6:17:54 PM (18 years ago)
Author:
eugene
Message:

working on better ext detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotSourceSize.c

    r17113 r17118  
    4747        // XXX for now, just skip any sources with masked pixels
    4848        source->crNsigma  = -5.0;
     49        bool keep = true;
     50        for (int iy = -1; (iy <= +1) && keep; iy++) {
     51            for (int ix = -1; (ix <= +1) && keep; ix++) {
     52                if (mask[yPeak+iy][xPeak+ix]) { keep &= false; }
     53            }
     54        }
     55        if (!keep) continue;
     56
     57        // need a reasonably fast way to follow the psf R = 1 annulus
     58
     59        // save the PSF model from the Ensemble fit
     60        pmModel *PSF = source->modelPSF;
     61
     62        // convert model to polar terms
     63        psEllipseShape shape;
     64        psF32 *PAR = PSF->params->data.F32;
     65        shape.sx   = PAR[PM_PAR_SXX] / M_SQRT2;
     66        shape.sy   = PAR[PM_PAR_SYY] / M_SQRT2;
     67        shape.sxy  = PAR[PM_PAR_SXY];
     68
     69        psEllipseShapeToAxes (shape, 20.0);
     70       
     71
     72        for (theta = 0.0; theta < 360.0; theta += 10.0) {
     73         
     74
     75
     76        // XXX for now, just skip any masked pixels
     77        extSum = 0.0;
    4978        bool keep = true;
    5079        for (int iy = -1; (iy <= +1) && keep; iy++) {
Note: See TracChangeset for help on using the changeset viewer.