title: Applying rectangular step function using scipy
body: <p>Is there a rectangular filter in scipy? I want to replicate @Mike T's solution <a href="https://gis.stackexchange.com/questions/9431/what-raster-smoothing-generalization-tools-are-available/162852">https://gis.stackexchange.com/questions/9431/what-raster-smoothing-generalization-tools-are-available/162852</a> but nstead of doing gaussian blur, I want to apply a rectangular filter (i.e. essentially a step function)</p>