Constraints to the three-dimensional non-hydrostatic density distribution in the earth