- Timestamp:
- Dec 3, 2010, 2:28:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/psphot/src/psphotSourceMatch.c
r29548 r29904 6 6 psArray *psphotMatchSources (pmConfig *config, const pmFPAview *view, const char *filerule) 7 7 { 8 bool status = true;9 10 8 psArray *objects = psArrayAllocEmpty(100); 11 9 12 int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 13 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); 10 int num = psphotFileruleCount(config, filerule); 14 11 15 12 // loop over the available readouts 16 13 for (int i = 0; i < num; i++) { 17 14 if (!psphotMatchSourcesReadout (objects, config, view, filerule, i)) { 18 psError (PSPHOT_ERR_CONFIG, false, "failed to merge sources for PSPHOT.INPUT entry %d", i);15 psError (PSPHOT_ERR_CONFIG, false, "failed to merge sources for %s entry %d", filerule, i); 19 16 psFree (objects); 20 17 return NULL; … … 162 159 psAssert (status, "missing SKY_OUTER_RADIUS in recipe?"); 163 160 164 int nImages = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 165 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); 161 int nImages = psphotFileruleCount(config, filerule); 166 162 167 163 // generate look-up arrays for detections and readouts
Note:
See TracChangeset
for help on using the changeset viewer.
