Changeset 38389
- Timestamp:
- Jun 5, 2015, 12:42:15 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMergeSources.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMergeSources.c
r36375 r38389 64 64 // only expect a single entry for PSPHOT.INPUT.CMF and PSPHOT.SOURCES.TEXT, so we can only 65 65 // associate input sources with a single entry for the filerule 66 bool psphotLoadExtSources (pmConfig *config, const pmFPAview *view, const char *filerule) {66 bool psphotLoadExtSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index) { 67 67 68 68 bool status; … … 70 70 pmDetections *extCFF = NULL; 71 71 psArray *extSourcesTXT = NULL; 72 int index = 0;73 72 74 73 // find the currently selected readout … … 197 196 psLogMsg ("psphot", 3, "%d external sources (%d cmf, %d cff, %d text) merged to yield %ld total sources", 198 197 nCMF + nCFF + nTXT, nCMF, nCFF, nTXT, sources->n); 198 return true; 199 } 200 bool psphotLoadExtSources(pmConfig *config, const pmFPAview *view, const char *filerule) { 201 int num = psphotFileruleCount(config, filerule); 202 203 // loop over the available readouts 204 for (int i = 0; i < num; i++) { 205 if (!psphotLoadExtSourcesReadout (config, view, filerule, i)) { 206 psError (PSPHOT_ERR_CONFIG, false, "failed to load sources for %s entry %d", filerule, i); 207 return false; 208 } 209 } 199 210 return true; 200 211 }
Note:
See TracChangeset
for help on using the changeset viewer.
