UCSD is sometimes said to stand for “UC Socially Dead”, and it is close to the ocean, and to the Scripps Institute of Oceanography. So it seems like a good fit, except for size. However, the six-college system is supposed to make it feel smaller.
Stony Brook is one of the top state schools in the northeast, is near the coast, and does not have a party reputation. They have a big school of marine sciences, with multiple field stations on Long Island. Not as cold as Maine. It’s a big school, but I think marine sciences are at the Southampton campus, which is small.