IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2011, 1:09:10 PM (15 years ago)
Author:
eugene
Message:

correctly handle the second pass in the detection image: the code was creating duplicate detections in 2 ways: 1) the source subtraction before the second pass was only being applied to the SRC, not the DET image, thus all 1st pass detections were also found as 2nd pass detections; 2) the DBL star fitting function was causing trouble, with the two positions merging to a single object -- this was considered a success, but left behind flux in the subtracted image (and garbage detections in general); Ive turned off the DBL fitting for now as I am not convinced that code is ready

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111110/psphot/src/psphotOutput.c

    r32685 r32689  
    414414    char filename[64];
    415415
    416     // XXX uncomment to disreturn true;
     416    // XXX dump tests are disabled unless this is commented out:
     417    return true;
    417418
    418419    bool status = true;
     
    453454
    454455            // XXX only dump a given region
    455             if (peak->xf < 20) continue;
    456             if (peak->yf < 20) continue;
    457             if (peak->xf > 40) continue;
    458             if (peak->yf > 70) continue;
     456            // if (peak->xf < 20) continue;
     457            // if (peak->yf < 20) continue;
     458            // if (peak->xf > 40) continue;
     459            // if (peak->yf > 70) continue;
    459460
    460461            float Msum = source->moments ? source->moments->Sum : NAN;
    461462            float Mx   = source->moments ? source->moments->Mx : NAN;
    462463            float My   = source->moments ? source->moments->My : NAN;
    463             float Npix = source->moments ? source->moments->nPixels : NAN;
    464             fprintf (f, "%f %f  : %f %f : %f %f\n", peak->xf, peak->yf, Mx, My, Msum, Npix);
     464            // float Npix = source->moments ? source->moments->nPixels : NAN;
     465            float Io = source->modelPSF ? source->modelPSF->params->data.F32[PM_PAR_I0] : NAN;
     466            fprintf (f, "%d %f %f  : %f %f : %f %f\n", source->imageID, peak->xf, peak->yf, Mx, My, Msum, Io);
    465467        }
    466468    }
Note: See TracChangeset for help on using the changeset viewer.