IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26317


Ignore:
Timestamp:
Dec 2, 2009, 9:43:55 AM (16 years ago)
Author:
eugene
Message:

adding visualization and fixing the S/N of peaks loaded from smf files

Location:
branches/eam_branches/20091201
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/objects/pmSourceIO_CMF_PS1_V2.c

    r25754 r26317  
    304304        source->peak->dx   = dPAR[PM_PAR_XPOS];
    305305        source->peak->dy   = dPAR[PM_PAR_YPOS];
     306        source->peak->SN   = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N
    306307
    307308        source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF");
  • branches/eam_branches/20091201/psphot/src/psphot.h

    r25987 r26317  
    182182bool psphotVisualShowImage (pmReadout *readout);
    183183bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout);
    184 bool psphotVisualShowSignificance (psImage *image);
     184bool psphotVisualShowSignificance (psImage *image, float min, float max);
    185185bool psphotVisualShowPeaks (pmDetections *detections);
    186186bool psphotVisualShowFootprints (pmDetections *detections);
  • branches/eam_branches/20091201/psphot/src/psphotFindDetections.c

    r25755 r26317  
    3939    psImage *significance = psphotSignificanceImage (readout, recipe, pass, maskVal);
    4040
    41     // display the backsub and backgnd images
    42     psphotVisualShowSignificance (significance);
     41    // display the significance image
     42    psphotVisualShowSignificance (significance, -1.0, 25.0*25.0);
     43
     44    // XXX getting some strange results from significance image
     45    {
     46        psImage *lsig = (psImage *) psUnaryOp (NULL, significance, "log");
     47        psphotVisualShowSignificance (lsig, 0.0, 4.0);
     48        psFree (lsig);
     49    }   
    4350
    4451    // detect the peaks in the significance image
  • branches/eam_branches/20091201/psphot/src/psphotMergeSources.c

    r25983 r26317  
    124124        }
    125125
     126        // use the existing peak information, otherwise generate a new peak
     127        if (source->peak) {
     128            psArrayAdd (detections->peaks, 100, source->peak);
     129            continue;
     130        }
     131
    126132        float flux = powf(10.0, -0.4 * source->psfMag);
    127133        float xpos = model->params->data.F32[PM_PAR_XPOS];
  • branches/eam_branches/20091201/psphot/src/psphotSourceStats.c

    r25988 r26317  
    418418        psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.DY", PS_META_REPLACE, "psf clump center", psfClump.dY);
    419419
    420         // psphotVisualPlotMoments (recipe, sources);
     420        psphotVisualPlotMoments (recipe, analysis, sources);
    421421
    422422        Sout[i] = sqrt(0.5*(psfClump.X + psfClump.Y)) / sigma[i];
  • branches/eam_branches/20091201/psphot/src/psphotVisual.c

    r26003 r26317  
    171171    if (kapa == -1) return false;
    172172
    173     // psphotVisualShowMask (kapa, readout->mask, "mask", 2);
     173    psphotVisualShowMask (kapa, readout->mask, "mask", 2);
    174174    psphotVisualScaleImage (kapa, readout->variance, readout->mask, "variance", 1);
    175175    psphotVisualScaleImage (kapa, readout->image, readout->mask, "image", 0);
     
    204204}
    205205
    206 bool psphotVisualShowSignificance (psImage *image) {
     206bool psphotVisualShowSignificance (psImage *image, float min, float max) {
    207207
    208208    if (!pmVisualIsVisual()) return true;
     
    211211    if (kapa == -1) return false;
    212212
    213     psphotVisualRangeImage (kapa, image, "signif", 2, -1.0, 25.0*25.0);
     213    psphotVisualRangeImage (kapa, image, "signif", 2, min, max);
    214214
    215215    pmVisualAskUser(NULL);
Note: See TracChangeset for help on using the changeset viewer.