Want climate news in your inbox? Sign up here for Climate Fwd:, our email newsletter.

WASHINGTON — When officials at a government weather forecasting office assured Alabama residents that a September hurricane would not hit their state, they did not intend to contradict President Trump’s insistence that it would, according to newly disclosed documents.

Instead, they were answering a deluge of questions from Alabama residents whose concerns had been raised by Mr. Trump’s statements.

Hundreds of emails and other documents obtained this week through public records requests shed new light on how the weather can turn political in an administration that demands loyalty to Mr. Trump even when his positions are at odds with scientific facts. They show that the National Oceanic and Atmospheric Administration, which oversees the National Weather Service, was fully aware that Hurricane Dorian was not headed for Alabama even though they issued a statement days later chastising scientists for saying just that.

“I wanted to let you know that the forecasters in Birmingham who made the clarification post for Alabama was unaware of the POTUS tweet when they made their post,” Susan Buchanan, director of public affairs for the National Weather Service, wrote to NOAA officials the morning after scientists posted their Twitter message on Sept. 1 saying that “Alabama will NOT see any impacts from Dorian.” Potus is shorthand for president of the United States.