Changeset 7851 for trunk/psModules/src/concepts/pmConceptsAverage.c
- Timestamp:
- Jul 7, 2006, 7:35:59 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsAverage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsAverage.c
r7850 r7851 19 19 bool pmConceptsAverageCells(pmCell *target,// Target cell 20 20 psList *sources, // List of source cells 21 int xBin, int yBin, // Binning in x and y22 21 psRegion *trimsec, // The trim section 23 22 psRegion *biassec // The bias section … … 27 26 PS_ASSERT_PTR_NON_NULL(sources, false); 28 27 PS_ASSERT_INT_POSITIVE(sources->n, false); 29 PS_ASSERT_INT_NONNEGATIVE(xBin, false);30 PS_ASSERT_INT_NONNEGATIVE(yBin, false);31 28 32 29 bool success = true; // Result of setting everything … … 96 93 MD_UPDATE(target->concepts, "CELL.DARKTIME", F32, darktime); 97 94 MD_UPDATE(target->concepts, "CELL.TIMESYS", S32, timeSys); 98 MD_UPDATE(target->concepts, "CELL.X0", S32, 0);99 MD_UPDATE(target->concepts, "CELL.Y0", S32, 0);100 if (xBin > 0) {101 MD_UPDATE(target->concepts, "CELL.XBIN", S32, xBin);102 }103 if (yBin > 0) {104 MD_UPDATE(target->concepts, "CELL.YBIN", S32, yBin);105 }106 95 MD_UPDATE(target->concepts, "CELL.READDIR", S32, readdir); 107 96
Note:
See TracChangeset
for help on using the changeset viewer.
