Two factors that affect the density of ocean water are