A possibility of reconstructing the near-ground value and gradient of the refractive index from the data on the derivative of the refraction angle is investigated. To obtain these data, it is proposed to use the ground–based measurements of the apparent difference between the vertical and horizontal dimensions of the solar or lunar disks. The efficiency of the proposed technique has been checked.