Changeset 29936 for trunk/psphot/src/psphotSourceMatch.c
- Timestamp:
- Dec 5, 2010, 9:42:25 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotSourceMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20101103/psphot (added) merged: 29660,29824-29825,29904,29914,29918,29920
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotSourceMatch.c
r29548 r29936 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.
