National Hurricane Center in Miami said the storm could dump up to 40 inches of rain