IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19858


Ignore:
Timestamp:
Oct 2, 2008, 10:57:22 AM (18 years ago)
Author:
eugene
Message:

add visualizations

File:
1 edited

Legend:

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

    r19762 r19858  
    3737
    3838    // set up the Visual display, display the image, weight, mask (ch 1,2,3)
    39     psphotVisualShowImage (readout);
     39    psphotVisualShowImage (config, readout);
    4040
    4141    // generate a background model (median, smoothed image)
     
    4949        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    5050    }
     51
     52    // display the backsub and backgnd images
     53    psphotVisualShowBackground (config, view, readout);
    5154
    5255    // run a single-model test if desired (exits from here if test is run)
     
    6669    }
    6770 
     71    // display the backsub and backgnd images
     72    psphotVisualShowPeaks (config, view, detections);
     73    psphotVisualShowFootprints (config, view, detections);
     74
    6875    // XXX test write out the footprint image
    6976    if (0) {
     
    7178        psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
    7279        psFree (footprintImage);
    73     }
    74 
    75     // XXX test write out the footprint image
    76     if (0) {
    77         psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
    78         psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
    79         psFree (footprintImage);
    8080    }
    8181
     
    8787    }
    8888
     89    psphotVisualShowMoments (config, view, sources);
     90
    8991    // find blended neighbors of very saturated stars
    9092    // XXX merge this with Basic Deblend?
     
    105107        return psphotReadoutCleanup(config, readout, recipe, detections, psf, sources);
    106108    }
     109
     110    psphotVisualShowRoughClass (config, view, sources);
    107111
    108112    // if we were not supplied a PSF, choose one here
     
    122126    }
    123127
     128    psphotVisualShowPSFModel (config, readout, psf);
     129
    124130    // Define source fitting parameters for everything that follows PSF fits
    125131    // This allows different parameters to be used from the PSF fitting
     
    161167    psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
    162168
     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
    163177    if (0) {
    164178        FILE *out = fopen ("out.pass1.dat", "w");
     
    187201    }
    188202
     203    // XXX psphotVisualShowSourceSize (config, view, sources);
     204
    189205    // non-linear PSF and EXT fit to brighter sources
    190206    psphotBlendFit (readout, sources, recipe, psf);
     207
     208    // XXX psphotVisualShowNonLinearFit (config, view, sources);
    191209
    192210    // replace all sources
Note: See TracChangeset for help on using the changeset viewer.