magpie.pixels.bin_pix
- magpie.pixels.bin_pix(pixID, pixlen, weights=None)
Bin weights by pixel index.
- Parameters
- pixIDarray
Pixel indices.
- pixlenint
Size of the pixel grid.
- weightsarray, optional
Pixel index weights, if None is given this is assumed to be one.
- Returns
- pixarray
Binned pixel values.