Absorption and density distribution in the galactic system