The movement and space between particles in a fluid affects the amount of pressure the fluid exerts. This means that the pressure in a fluid changes depending on its height, depth and temperature.
Density is usually calculated using a mathematical function of temperature, salinity, and pressure ... in terms of the change in volume of a fluid. As time went on, more and more precisely ...