I'm curious about the refractive index changing in the atmosphere. As I understand it (and I may very well be wrong/naive) when a ray of light enters from one medium into another, the electric field component of the light perpendicular to the interface between the mediums will be altered as such:
$$E^{\;Medium 2}_{\perp} = \frac{\epsilon_{Medium 1}}{\epsilon_{Medium 2}} E^{\;Medium 1}_{\perp}$$
However wouldn't the dielectric constant of air in the atmosphere be constant, meaning that the light entering it would undergo the same amount of refraction? I know this is not the case and I'm wondering if anyone could explain how the dielectric constant changes (if it does) and how this relates to the refractive index changing, or could at least point me to good resources on the matter.