All five of the hottest years on record have occurred in the last five years, according to global temperature data released Wednesday by NASA and the National Oceanic and Atmospheric Administration.

While 2018 was slightly cooler than the three prior years, Earth still had its fourth-warmest year since scientists began keeping records in 1880, the federal agencies said. Their separate analyses add to decades of evidence that the burning of fossil fuels, the clearing of forests and other human activities are releasing heat-trapping greenhouse gases into the atmosphere and causing the planet to warm.

Last year’s average global surface temperature was 1.42 degrees Fahrenheit above the 20th-century average, according to NOAA.

The warmest year was 2016, followed by 2017, 2015, 2018 and 2014, according to NASA’s rankings.

All five of those years were exceptionally warm, with only slight differences that were driven by natural variations in the weather, including the alternating cool and warm cycles from El Nino and La Nina.

“You get ups and downs — years that are a little bit warmer, a little bit cooler — but the long-term underlying trend is very, very clear,” said NASA climatologist Gavin Schmidt, who worked on the space agency’s analysis. “It’s the long-term trends that are having impacts on ice, on severity of droughts, on heat waves, on sea level rise and wildfires.”

The combination of rising greenhouse gases and a mild El Nino underway in the Pacific Ocean means it’s likely that 2019 will be hotter than 2018. Scientists say there’s a good chance this year will wind up ranking among the top five hottest on record.

NOAA and NASA each analyze temperature measurements from thousands of sites around the world, including weather stations and ships and buoys spread across the world’s oceans.

The two agencies use much of the same data but perform independent analyses with minor differences in methods that yield slightly different rankings. NASA, for instance, ranked 2015 as the third-warmest year on record while NOAA found it was 2017. But in the long-term, the two agencies agree on the pace and trajectory of global warming.

Temperatures in 2018 were higher than average across much of the globe, including most of the lower 48 United States, and the Arctic is warming two to three times faster than the global average, federal scientists said. Those higher temperatures continue to drive the decline in sea ice in the Arctic. The average annual sea ice extent was 4 million square miles in 2018, the second smallest extent in records going back to 1979, NOAA reported.

Those observations are at odds with President Donald Trump’s statements attacking the scientific consensus on climate change. Icy cold weather across the Midwest and East Coast last week prompted Trump to tweet a plea to global warming: “Please come back fast, we need you!”

Scientists say such remarks confuse short-term natural variations — that is, weather — with long-term shifts in the climate that are driven by human activity. That natural variation is why climate scientists look primarily at temperature trends over long timescales and don’t give too much significance to a single hot or cold year.

“But these are warm years that have persisted over a five-year period, and they sit on top of a long-standing, increasing trend over the last one-and-a-half centuries,” said Waleed Abdalati, director of the Cooperative Institute for Research in Environmental Sciences at the University of Colorado at Boulder who was not involved in the federal reports. “That’s a clear upward signal. It drives home the point that this trend is robust.”

Global warming is also increasingly evident in local measurements, where daily records for high temperatures are toppling more than twice as often as daily records for low temperatures, said Gerald Meehl, a senior scientist at the National Center for Atmospheric Research. “If there was no warming of average temperatures, there would be about an even chance of a daily record high maximum or daily record low minimum occurring,” said Meehl, who was not involved in the report.

The NASA and NOAA reports are consistent with analyses by other governments, including the Japan Meteorological Agency and the European Union’s Copernicus Climate Change Service, both of which also said that 2018 was the fourth-warmest year on record.

An independent analysis released last month by Berkeley Earth calculated that in 2018, 85 percent of the Earth’s surface was significantly warmer than the planet’s average temperature from 1951 to 1980.