IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2008, 11:49:42 AM (18 years ago)
Author:
eugene
Message:

updates from eam_branch_20080926

File:
1 edited

Legend:

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

    r18973 r19869  
    3636    }
    3737
     38    // set up the Visual display, display the image, weight, mask (ch 1,2,3)
     39    psphotVisualShowImage (config, readout);
     40
    3841    // generate a background model (median, smoothed image)
    3942    if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) {
     
    4649        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    4750    }
     51
     52    // display the backsub and backgnd images
     53    psphotVisualShowBackground (config, view, readout);
    4854
    4955    // run a single-model test if desired (exits from here if test is run)
     
    6369    }
    6470 
     71    // display the backsub and backgnd images
     72    psphotVisualShowPeaks (config, view, detections);
     73    psphotVisualShowFootprints (config, view, detections);
     74
    6575    // XXX test write out the footprint image
    6676    if (0) {
     
    6878        psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
    6979        psFree (footprintImage);
    70     }
    71 
    72     // XXX test write out the footprint image
    73     if (0) {
    74         psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
    75         psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
    76         psFree (footprintImage);
    7780    }
    7881
     
    8487    }
    8588
     89    psphotVisualShowMoments (config, view, sources);
     90
    8691    // find blended neighbors of very saturated stars
    8792    // XXX merge this with Basic Deblend?
     
    102107        return psphotReadoutCleanup(config, readout, recipe, detections, psf, sources);
    103108    }
     109
     110    psphotVisualShowRoughClass (config, view, sources);
    104111
    105112    // if we were not supplied a PSF, choose one here
     
    119126    }
    120127
     128    psphotVisualShowPSFModel (config, readout, psf);
     129
    121130    // Define source fitting parameters for everything that follows PSF fits
    122131    // This allows different parameters to be used from the PSF fitting
     
    158167    psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
    159168
     169    // XXX we have to place this here because the models are not realized until psphotGuessModels
     170    // or fitted until psphotFitSourcesLinear.  There is an example of generating a residual image
     171    // in pmPSFtry.c
     172
     173    psphotVisualShowPSFStars (config, view, psf, sources);
     174    psphotVisualShowSatStars (config, view, psf, sources);
     175    psphotVisualShowLinearFit (config, readout);
     176
    160177    if (0) {
    161178        FILE *out = fopen ("out.pass1.dat", "w");
     
    184201    }
    185202
     203    // XXX psphotVisualShowSourceSize (config, view, sources);
     204
    186205    // non-linear PSF and EXT fit to brighter sources
    187206    psphotBlendFit (readout, sources, recipe, psf);
     207
     208    // XXX psphotVisualShowNonLinearFit (config, view, sources);
    188209
    189210    // replace all sources
Note: See TracChangeset for help on using the changeset viewer.