Boeing’s Starliner spacecraft has landed successfully in a US desert after aborting a botched mission.

The crewless astronaut capsule landed at the White Sands desert in New Mexico on Sunday after abandoning its milestone test mission.

A software problem on Friday meant it failed to reach the orbit needed to dock with the International Space Station two days earlier.

It came at the end of a year that has seen Boeing plagued with engineering issues afters its 737 Max jetliner was grounded following two fatal crashes.

Sunday's landing, which tested the capsule's difficult re-entry into the atmosphere and parachute deployment, will provide the mission's most valuable test data after it failed to meet one of its core objectives of docking to the space station.

Jim Chilton, senior vice president of Boeing’s space and launch division, told reporters: “It couldn't really have gone any better." He added experts would need weeks to analyse the data from this mission before determining if Boeing could continue with its plan to send a crewed mission on the craft in 2020.

Nasa's groundbreaking decade of space exploration: In pictures Show all 10 1 /10 Nasa's groundbreaking decade of space exploration: In pictures Nasa's groundbreaking decade of space exploration: In pictures Mystic Mountain, a pillar of gas and dust standing at three-light-years tall, bursting with jets of gas from fledgling stars buried within, was captured by Nasa's Hubble Space Telescope in February 2010 Nasa/ESA/STScI Nasa's groundbreaking decade of space exploration: In pictures The first ever selfie taken on an alien planet, captured by Nasa's Curiosity Rover in the early days of its mission to explore Mars in 2012 Nasa/JPL-Caltech/MSSS Nasa's groundbreaking decade of space exploration: In pictures Death of a star: This image from Nasa's Chandra X-ray telescope shows the supernova of Tycho, a star in our Milky Way galaxy Nasa Nasa's groundbreaking decade of space exploration: In pictures Arrokoth, the most distant object ever explored, pictured here on 1 January 2019 by a camera on Nasa's New Horizons spaceraft at a distance of 4.1 billion miles from Earth Getty Nasa's groundbreaking decade of space exploration: In pictures An image of the Large Magellanic Cloud galaxy seen in infrared light by the Herschel Space Observatory in January 2012. Regions of space such as this are where new stars are born from a mixture of elements and cosmic dust Nasa Nasa's groundbreaking decade of space exploration: In pictures The first ever image of a black hole, captured by the Event Horizon telescope, as part of a global collaboration involving Nasa, and released on 10 April 2019. The image reveals the black hole at the centre of Messier 87, a massive galaxy in the nearby Virgo galaxy cluster. This black hole resides about 54 million light-years from Earth Getty Nasa's groundbreaking decade of space exploration: In pictures Pluto, as pictured by Nasa's New Horizons spacecraft as it flew over the dwarf planet for the first time ever in July 2015 Nasa/APL/SwRI Nasa's groundbreaking decade of space exploration: In pictures A coronal mass ejection as seen by the Chandra Observatory in 2019. This is the first time that Chandra has detected this phenomenon from a star other than the Sun Nasa Nasa's groundbreaking decade of space exploration: In pictures Dark, narrow, 100 meter-long streaks running downhill on the surface Mars were believed to be evidence of contemporary flowing water. It has since been suggested that they may instead be formed by flowing sand Nasa/JPL/University of Arizona Nasa's groundbreaking decade of space exploration: In pictures Morning Aurora: Nasa astronaut Scott Kelly captured this photograph of the green lights of the aurora from the International Space Station in October 2015 Nasa/Scott Kelly

Jim Bridenstine, head of Nasa, said: “We're going to get I think a lot more data than we would have gotten if the test had gone according to plan.”

After the Starliner capsule was launched from Florida on Friday, an automated timer error prevented it from attaining the right orbit to meet and dock with the space station.

Mr Chilton said the timer was running 11 hours ahead, which caused the spacecraft to burn fuel too quickly.

Boeing, NASA, and US Army personnel work around the Boeing CST-100 Starliner spacecraft shortly after it landed in White Sands, New Mexico, on 22 December, 2019. (NASA/AFP via Getty Images)

Boeing and Nasa officials said they still do not understand why software caused the craft to miss the orbit required.

After the Starliner spacecraft touched down, teams of engineers in trucks raced to inspect the vehicle, whose six airbags cushioned its impact on the desert surface as planned.

Mr Chilton said the spacecraft was in a good condition after landing, with little charring and stable air pressure and temperature in the cabin.

The landing marked the first time a US orbital space capsule designed for humans landed on land.

All previous American capsules, including SpaceX's Crew Dragon, splashed down in the ocean. Russia's Soyuz capsules and China's past crew capsules made land landings.

The CST-100 Starliner's debut launch to orbit was a milestone test for Boeing.

The company is vying with SpaceX, the privately-held rocket company of billionaire entrepreneur Elon Musk, to revive Nasa's human spaceflight capabilities.

SpaceX carried out a successful unmanned flight of its Crew Dragon capsule to the space station in March.