A clever use of non-science engineering data from NASA's Mars rover Curiosity has let a team of researchers to measure the density of rock layers in Gale Crater.