Template reduction script for MAPS single crystal data