Ideally the effect of bad pixels, bad columns and chip gaps would be taken into account in the spatial averaging. Such a level of sophistication has NOT yet been implemented.