The theoretical model of atmospheric refractive index based on the standard atmospheric environment cannot explain the atmospheric refractive index when optical satellites detect targets. Aiming at this problem, a method for estimating the refractive index of the atmosphere based on multispectral stellar observation data is proposed. Based on optical satellites' multispectral stellar observation data, according to the principle of deflection when the stellar light passes through the atmosphere, the optical path model of the stellar light refracted by the atmosphere is established under the assumption of a layered spherical atmosphere. A method of using multispectral segment stars to measure the actual light and the iterative forward feedback of stellar theoretical light is proposed, to estimate the refractive index of each layer of the atmosphere of the layered atmosphere to different spectral segments of light.