HUNTSVILLE, Ala. (AP) — The head of the National Weather Service issued a strong public defense Monday of forecasters who contradicted President Donald Trump’s claim that Hurricane Dorian posed a threat to Alabama as it approached the United States.

Director Louis Uccellini said forecasters in Birmingham did the right thing Sept. 1 when they tried to combat public panic and rumors that Dorian posed a threat to Alabama. It was only later that they found out the source of the mistaken information, he said.

Speaking at a meeting of the National Weather Association, Uccellini said Birmingham forecasters “did what any office would do to protect the public.”

“They did that with one thing in mind: public safety,” said Uccellini, who prompted a standing ovation from hundreds of forecasters by asking members of the Birmingham weather staff to stand.

Earlier, the president of the 2,100-member association, Paul Schlatter, said any forecast office “would have done the exact same thing” as the Birmingham forecast office.

Trump has defended his tweet about Alabama, and he displayed an altered forecast map in the Oval Office last week in an attempt to make his point. Apparently siding with the president, the National Oceanic and Atmospheric Administration issued an unsigned statement critical of the Birmingham forecasters Friday.

WATCH: Trump uses altered, week-old map in briefing to falsely show Alabama was in Dorian’s path

But Alabama had never been included in hurricane advisories and Trump’s information, based on less authoritative computer models than an official forecast, was outdated when he sent a tweet saying Alabama could be affected by Dorian.

Discussing the flurry of social media contacts and phone calls that followed Trump’s tweet, Uccellini said Birmingham forecasters used “an emphasis they deemed essential to shut down what they thought were rumors” when they posted on social media that Alabama’s wasn’t at risk.

“Only later, when the retweets and politically based comments started coming to their office, did they learn the sources of this information,” he said.

An earlier version of this report had an incorrect spelling of National Weather Association President Paul Schlatter’s name.