IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17339


Ignore:
Timestamp:
Apr 6, 2008, 10:14:40 AM (18 years ago)
Author:
eugene
Message:

split ExtendedSources into ExtendedSourceAnalysis and ExtendedSourceFits

File:
1 edited

Legend:

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

    r17112 r17339  
    117117    psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
    118118
    119     // XXX test the CR/EXT measurement
    120     // XXX we need to call this here and after the second pass: option for starting number?
     119    // identify CRs and extended sources
    121120    psphotSourceSize (readout, sources, recipe, 0);
    122121    if (!strcasecmp (breakPt, "ENSEMBLE")) {
     
    127126    psphotBlendFit (readout, sources, recipe, psf);
    128127
    129     // replace all sources (make this part of psphotFitSourcesLinear?)
     128    // replace all sources
    130129    psphotReplaceAll (sources, recipe);
    131130
    132131    // linear fit to include all sources
    133132    psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE);
     133
     134    // if we only do one pass, skip to extended source analysis
    134135    if (!strcasecmp (breakPt, "PASS1")) {
    135         goto finish;
     136        goto pass1finish;
    136137    }
    137138
     
    145146    psphotAddNoise (readout, sources, recipe);
    146147
     148    // find fainter sources (pass 2)
    147149    detections = psphotFindDetections (detections, readout, recipe);
    148150
    149     // remove noise for subtracted objects
     151    // remove noise for subtracted objects (ie, return to normal noise level)
    150152    psphotSubNoise (readout, sources, recipe);
    151153
     
    172174    psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE);
    173175
     176pass1finish:
     177
    174178    // measure source size for the remaining sources
    175179    psphotSourceSize (readout, sources, recipe, 0);
    176180
    177     psphotExtendedSources (readout, sources, recipe);
     181    psphotExtendedSourceAnalysis (readout, sources, recipe);
     182
     183    psphotSaveImage (NULL, readout->image, "image.x0.fits");
     184
     185    psphotExtendedSourceFits (readout, sources, recipe);
    178186
    179187finish:
Note: See TracChangeset for help on using the changeset viewer.