IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2009, 7:59:50 AM (17 years ago)
Author:
beaumont
Message:

Added visualizations to ppSub. Set up a single variable in pmVisual to control when plots are drawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20090215/ppStack/src/ppStackSources.c

    r21260 r21536  
    6969        psString name = NULL;
    7070        psStringAppend(&name, "start_%03d.fits", i);
     71        pmStackVisualPlotTestImage(fake->image, name);
    7172        psFits *fits = psFitsOpen(name, "w");
    7273        psFree(name);
     
    154155    int minMatches = PS_MAX (2, 0.5*num);
    155156    for (int i = 0; i < matches->n; i++) {
    156         pmSourceMatch *match = matches->data[i]; // Match of interest
    157         if (match->num < minMatches) continue;
    158 
    159         // We need to grab a single instance of this source: just take the first available
    160         int nImage = match->image->data.S32[0];
    161         int nIndex = match->index->data.S32[0];
    162         psArray *sources = sourceLists->data[nImage];
    163         pmSource *source = sources->data[nIndex];
    164        
    165         // stick this sample source on sourcesBest
    166         psArrayAdd (sourcesBest, 100, source);
     157        pmSourceMatch *match = matches->data[i]; // Match of interest
     158        if (match->num < minMatches) continue;
     159
     160        // We need to grab a single instance of this source: just take the first available
     161        int nImage = match->image->data.S32[0];
     162        int nIndex = match->index->data.S32[0];
     163        psArray *sources = sourceLists->data[nImage];
     164        pmSource *source = sources->data[nIndex];
     165
     166        // stick this sample source on sourcesBest
     167        psArrayAdd (sourcesBest, 100, source);
    167168    }
    168169    psMetadataAdd (sourcesCell->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY | PS_META_REPLACE, "psphot sources", sourcesBest);
Note: See TracChangeset for help on using the changeset viewer.