Storm surge predictions

Simply, how do meteorlogists and others make a prediction of what sort of storm surge a hurricane or storm can produce?

Is it based on tides, topography, winds, combination of all or some of these factors?