When coastal communities experience heavy rainfall, officials often must prohibit swimming due to unacceptable levels of bacteria.