Density layer models for the geopotential