IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25613


Ignore:
Timestamp:
Sep 27, 2009, 11:10:45 AM (17 years ago)
Author:
eugene
Message:

update some comments, drop some old deprecated code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotReadout.c

    r25533 r25613  
    124124        return psphotReadoutCleanup (config, readout, recipe, detections, psf, sources);
    125125    }
    126 
    127126    psphotVisualShowPSFModel (readout, psf);
    128127
     
    130129    psphotLoadExtSources (config, view, sources);
    131130
    132     // construct an initial model for each object
     131    // construct an initial model for each object, set the radius to fitRadius, set circular fit mask
    133132    psphotGuessModels (config, readout, sources, psf);
    134133
    135     // XXX test output of models
    136     // psphotTestSourceOutput (readout, sources, recipe, psf);
    137 
    138     // linear PSF fit to source peaks
     134    // linear PSF fit to source peaks, subtract the models from the image (in PSF mask)
    139135    psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
    140136
     
    151147
    152148    // non-linear PSF and EXT fit to brighter sources
     149    // replace model flux, adjust mask as needed, fit, subtract the models (full stamp)
    153150    psphotBlendFit (config, readout, sources, psf);
    154151
     
    156153    psphotReplaceAllSources (sources, recipe);
    157154
    158     // linear fit to include all sources
     155    // linear fit to include all sources (subtract again)
    159156    psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE);
    160157
     
    163160        goto pass1finish;
    164161    }
    165 
    166     // XXX for the moment, drop the re-calc of the background (prove this works)
    167     // replace background in residual image
    168     // psphotSkyReplace (config, view);
    169     // re-measure background model (median, smoothed image)
    170     // psphotImageMedian (config, view);
     162    // NOTE: possibly re-measure background model here with objects subtracted
    171163
    172164    // add noise for subtracted objects
     
    188180    }
    189181
    190     // create full input models
     182    // create full input models, set the radius to fitRadius, set circular fit mask
    191183    psphotGuessModels (config, readout, newSources, psf);
    192184
     
    212204finish:
    213205
    214     // XXX drop this : test dev version
    215     // psphotPetrosianAnalysis (readout, sources, recipe);
    216 
    217206    // plot positive sources
    218207    // psphotSourcePlots (readout, sources, recipe);
Note: See TracChangeset for help on using the changeset viewer.