Detailed 3D images of the Moon and Mars will soon be just a click away for web users, following a deal between search giant Google and US space agency Nasa.

The Space Agreement Act, signed on Monday, will put "the most useful of Nasa's information on the internet".

Real-time weather data and the positions of the International Space Station and shuttle could be included.

The deal will also see scientists from both institutions working together to solve complex computational problems.

"This agreement between Nasa and Google will soon allow every American to experience a virtual flight over the surface of the moon or through the canyons of Mars," said Nasa administrator Michael Griffin.

The deal will make "Nasa's space exploration work accessible to everyone," he added.