Code for looking at Legendre moments for Haofei