how does the distance from the bodies of water affect climate ​