Densities and temperatures of the upper atmosphere inferred from satellite observations