ENH: Initial commit of new PR re: dpc

"This function should also be in core" You mean I should put this function and image_reduction() into core.py?