IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 29, 2008, 2:16:50 PM (18 years ago)
Author:
eugene
Message:

moved peaks and footprints into detections; moving mask selections into recipe and called functions; dropping unused MODE flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080229/psphot/src/psphotBlendFit.c

    r15800 r16760  
    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)
     
    9296        pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    9397        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    94         source->mode |= PM_SOURCE_MODE_TEMPSUB;
     98    }
     99
     100    if (psTraceGetLevel("psphot") >= 6) {
     101      psphotSaveImage (NULL, readout->image,  "image.v2.fits");
    95102    }
    96103
Note: See TracChangeset for help on using the changeset viewer.