Geologist may determine the density of earth materials by measuring the mass of the object and its volume.
<h3>What is density ?</h3>
The mass of a substance per unit of volume is its density. Density is most frequently represented by the symbol, however Latin letter D may also be used. The formula for density is mass divided by volume
Earth's density is around 5.513 g/cm3 if you average the density throughout the entire globe. However, if you compare the density of the Earth by its layers, you'll notice that it rises continuously from the crust to the core.
The pressure gradient is the force that is produced due to the rotation of earth pressure cells that creates lighter air to move upwards and heavier to move downwards due to the difference in densities of air.
As the air above consists of lighter elements the oceanic air mostly consist of diatomic molecules of oxygen and nitrogen thus containing a large amount of water vapor, all these molecules have a mass that are pulled down by the gravity and this pull of gravity on columns of gas applies a force what we see an atmospheric pressure.
The gas particles and molecules of heavy and denser matter get stuck at the ground, similarly, as the air cools is descends and warm air rises. Thus upwards and downward motion of air causes convergence and divergence of molecules.