Template reduction script for MAPS powder data