At least 27 people, including nine children, are dead in central Texas after flash floods struck suddenly on the morning of the Fourth of July holiday. After a storm in which a month’s worth of rain fell in some regions in just a few hours, officials say they rescued more than 850 people from the floods over Friday and Saturday. A number of people were still missing as of Saturday afternoon, including 27 young campers from a Christian girls’ camp on the banks of the Guadalupe River. Some local and state officials have said that insufficient forecasts from the National Weather Service caught the region off guard. That claim has been amplified by pundits across social media, who say that cuts to the NWS and the National Oceanic and Atmospheric Administration, its parent organization, inevitably led to the failure in Texas. But meteorologists who spoke to WIRED say that the NWS accurately predicted the risk of flooding in Texas and could not have foreseen the extreme severity of the storm. What’s more, they say that what the NWS did forecast this week underscores the need to sustain funding to the crucial agency. Meteorologists first had an idea that a storm may be coming for this part of Texas last weekend, after Tropical Storm Barry made landfall in Mexico. “When you have a tropical system, it’s just pumping moisture northward,” says Chris Vagasky, an American Meteorological Society-certified digital meteorologist based in Wisconsin. “It starts setting the stage for heavy rainfall events.” The NWS office in San Antonio on Monday predicted a potential for “downpours”—as well as heavy rain specifically at nighttime—later on in the week as the result of these conditions. By Thursday, it forecast up to 7 inches of rainfall in isolated areas. The San Antonio and Hill Country regions of Texas are no stranger to floods. But Friday morning’s storm was particularly catastrophic. The Guadalupe River surged more than 20 feet in just a few hours to its second-highest level in recorded history. Kerr County judge Rob Kelly told media Friday morning that the county “didn’t know this flood was coming.” “We have floods all the time… we deal with floods on a regular basis,” he said. “When it rains, we get water. We had no reason to believe that this was going to be anything like what’s happened here.” W. Nim Kidd, the Chief of the Texas Division of Emergency Management (TDEM), echoed Kelly’s comments at a press conference with Governor Greg Abbott on Friday. Kidd said that TDEM worked with its meteorologist to “refine” NWS forecasts. “The amount of rain that fell in this specific location was never in any of those forecasts,” he said. Predicting “how much rain is going to fall out of a thunderstorm, that’s the hardest thing that a meteorologist can do,” Vagasky says. A number of unpredictable factors—including some element of chance—go into determining the amount of rainfall in a specific area, he says.