grid.to.xyz function

Convert Grid Matrix to (x,y,z) data.frame