Found mistakes in regrid and df.to.mat (transpose problem). These have now been corrected