factors affecting temperature distribution of ocean water