- Timestamp:
- Feb 19, 2009, 7:59:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branch_20090215/ppStack/src/ppStackSources.c
r21260 r21536 69 69 psString name = NULL; 70 70 psStringAppend(&name, "start_%03d.fits", i); 71 pmStackVisualPlotTestImage(fake->image, name); 71 72 psFits *fits = psFitsOpen(name, "w"); 72 73 psFree(name); … … 154 155 int minMatches = PS_MAX (2, 0.5*num); 155 156 for (int i = 0; i < matches->n; i++) { 156 pmSourceMatch *match = matches->data[i]; // Match of interest157 if (match->num < minMatches) continue;158 159 // We need to grab a single instance of this source: just take the first available160 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 sourcesBest166 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); 167 168 } 168 169 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.
