IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2006, 7:35:59 PM (20 years ago)
Author:
Paul Price
Message:

pmConceptsAverageCells shouldn't have to set the binning, offsets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsAverage.c

    r7850 r7851  
    1919bool pmConceptsAverageCells(pmCell *target,// Target cell
    2020                            psList *sources, // List of source cells
    21                             int xBin, int yBin, // Binning in x and y
    2221                            psRegion *trimsec, // The trim section
    2322                            psRegion *biassec // The bias section
     
    2726    PS_ASSERT_PTR_NON_NULL(sources, false);
    2827    PS_ASSERT_INT_POSITIVE(sources->n, false);
    29     PS_ASSERT_INT_NONNEGATIVE(xBin, false);
    30     PS_ASSERT_INT_NONNEGATIVE(yBin, false);
    3128
    3229    bool success = true;                // Result of setting everything
     
    9693    MD_UPDATE(target->concepts, "CELL.DARKTIME", F32, darktime);
    9794    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     }
    10695    MD_UPDATE(target->concepts, "CELL.READDIR", S32, readdir);
    10796
Note: See TracChangeset for help on using the changeset viewer.