Scripts to compute the tidal force tensor M