Atmospheric refraction is one of the most significant factors that affect the geolocation accuracy of high-resolution remote sensing images. However, most of the current atmospheric refraction correction methods based on empirical data neglect the spatiotemporal variation of pressure, temperature, and humidity of the atmosphere, inevitably resulting in poor geometric positioning accuracy. Therefore, in terms of the problems mentioned above, this study proposed a spatiotemporal atmospheric refraction correction method (SARCM) based on global measured data to avoid the uncertainty of traditional empirical models. Initially, the atmosphere was stratified into 42 layers according to their pressure property, and each layer was divided into 1,042,560 grid cells with intervals of 0.25 longitude and 0.25 latitude. Then, the atmospheric refractive index of each grid in the imaging region was accurately calculated using the high-precision Ciddor formula, and the result was interpolated using three splines. Subsequently, according to the rigorous geometric positioning model, the line-of-sight of each pixel and the viewing zenith angle outside the atmosphere in WGS84 were derived to provide input for atmospheric refraction correction. Finally, the coordinates of the ground control points were corrected with the calculated atmospheric refractive index and Snell’s law. The experimental results showed that the proposed SARCM could effectively improve the positioning accuracy of the image with a large viewing zenith angle, and especially, the improvement percentage for a viewing zenith angle of 34.2426° in the x-direction was 99.5%. Moreover, the atmospheric refraction correction result of the SARCM was better than that of the primary state-of-the-art methods.