IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2008, 3:10:25 PM (18 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20080229: better flag definitions, cleanup footprint code (move into psphotFindDetections), push mask selection into called functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotBlendFit.c

    r15800 r16820  
    22
    33// XXX I don't like this name
    4 bool psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal) {
     4bool psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf) {
    55
    66    int Nfit = 0;
     
    1111
    1212    psTimerStart ("psphot");
     13
     14    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     15    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
     16    assert (maskVal);
    1317
    1418    // source analysis is done in S/N order (brightest first)
     
    7377        // try fitting PSFs, then try extended sources
    7478        // these functions subtract the resulting fitted source (XXX and update the modelFlux?)
    75         // XXX consider conditions under which the source has EXT fit
     79        // XXX re-consider conditions under which the source has EXT fit:
     80        // I should try EXT if the source size measurement says it is large
    7681        if (psphotFitBlend (readout, source, psf, maskVal)) {
    7782            psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     
    9297        pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    9398        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    94         source->mode |= PM_SOURCE_MODE_TEMPSUB;
     99    }
     100
     101    if (psTraceGetLevel("psphot") >= 6) {
     102      psphotSaveImage (NULL, readout->image,  "image.v2.fits");
    95103    }
    96104
Note: See TracChangeset for help on using the changeset viewer.