Q: What is the definition of sunrise and sunset?
A: Generally speaking, when referring to the sun, the definition is when the leading or trailing edge of the sun passes the horizon.
This time is somewhat different from the more specific definition which is called the geometric rise or set. The geometric rise or set of a celestial body is when the center of the object, such as a star, passes the horizon and there is no
atmospheric refraction.
Please see the next few questions.
Q: What is atmospheric refraction and how does it affect times calculated on this site?
Here on Earth we have an atmosphere which actually bends light down toward the surface when the object is near the horizon, allowing us to see the sun (and the moon, planets and stars) before and after they would normally be visible if there were no atmosphere. This is called
atmospheric refraction.
The amount of 'bending', called the
refractive index, varies due to many factors and is not constant from day to day or even by the minute. The two main factors that affect the refractive index are the amount of water vapor in the atmosphere and the temperature of the atmosphere. A third, smaller factor is the atmospheric pressure and then there are many much smaller factors, such as the presence and amount dust in the air. All these factors together will affect the refractive index and when taking into account that we are interested in sunrise and sunset, when the light goes through much more atmosphere than at noon, we realize that the refractive index will have quite an effect on the times, making them off by many seconds.
Because these factors are always changing it makes no sense to claim that the times are accurate to a second. It is also now apparent that we cannot say that any specific day has exactly 12 hours (or some other number) of sunlight.