Add by blocks option to do the analysis block by block (as IRAF did) or use the percentile_filter in scipy which is a slightly different algorithm.
Add by blocks option to do the analysis block by block (as IRAF did) or use the percentile_filter in scipy which is a slightly different algorithm.

mwcraig/ccdproc,astropy/ccdproc