added a (barely working) method to calculated spherical harmonic moments
using d_i values