Script to study the binning of 2d templates