IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18631


Ignore:
Timestamp:
Jul 20, 2008, 1:05:57 PM (18 years ago)
Author:
eugene
Message:

add test output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/psphot/src/psphotReadout.c

    r18004 r18631  
    6161        psLogMsg ("psphot", 3, "unable to find detections in this image");
    6262        return psphotReadoutCleanup (config, readout, recipe, detections, psf, NULL);
     63    }
     64 
     65    // XXX test write out the footprint image
     66    if (0) {
     67        psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
     68        psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
     69        psFree (footprintImage);
    6370    }
    6471
     
    138145
    139146    // identify CRs and extended sources
    140     psphotSourceSize (readout, sources, recipe, 0);
     147    psphotSourceSize (config, readout, sources, recipe, 0);
    141148    if (!strcasecmp (breakPt, "ENSEMBLE")) {
    142149        goto finish;
     
    168175    // find fainter sources (pass 2)
    169176    detections = psphotFindDetections (detections, readout, recipe);
     177
     178    // XXX test write out the footprint image
     179    if (0) {
     180        psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
     181        psphotSaveImage (NULL, footprintImage, "footprints.2.fits");
     182        psFree (footprintImage);
     183    }
    170184
    171185    // remove noise for subtracted objects (ie, return to normal noise level)
     
    217231
    218232    // measure source size for the remaining sources
    219     psphotSourceSize (readout, sources, recipe, 0);
    220 
     233    psphotSourceSize (config, readout, sources, recipe, 0);
     234
     235    if (0) {
     236        psphotSaveImage (NULL, readout->mask, "mask.fits");
     237    }
     238       
    221239    psphotExtendedSourceAnalysis (readout, sources, recipe);
    222240
Note: See TracChangeset for help on using the changeset viewer.