Horizontal coordinate system
The horizontal coordinate system is a celestial coordinate system that uses the observer's local horizon as the fundamental plane. This coordinate system divides the sky into the upper hemisphere where objects are visible, and the lower hemisphere where objects cannot be seen since the earth is in the way. The great circle separating hemispheres is called celestial horizon or rational horizon. The pole of the upper hemisphere is called the zenith. The pole of the lower hemisphere is called the nadir. 
The horizontal coordinates are:
- Altitude (Alt), sometimes referred to as elevation, is the angle between the object and the observer's local horizon. For visible objects it is an angle between 0 degrees to 90 degrees.
- Azimuth (Az), that is the angle of the object around the horizon, usually measured from the north increasing towards the east. Exceptions are, for example, ESO's FITS convention where it is measured from the south increasing towards the west, or the FITS convention of the SDSS where it is measured from the south increasing towards the east.
- Zenith distance, the distance from directly overhead (i.e. the zenith) is sometimes used instead of altitude in some calculations using these coordinates. The zenith distance is the complement of altitude (i.e. 90°-altitude).
The horizontal coordinate system is sometimes also called the az/el system, the Alt/Az system, or the altazimuth system (from the name of the altazimuth mount for telescopes, whose two axes follow altitude and azimuth).
The horizontal coordinate system is fixed to the Earth, not the stars. Therefore, the altitude and azimuth of an object in the sky changes with time, as the object appears to drift across the sky. In addition, because the horizontal system is defined by the observer's local horizon, the same object viewed from different locations on Earth at the same time will have different values of altitude and azimuth.
Horizontal coordinates are very useful for determining the rise and set times of an object in the sky. When an object's altitude is 0°, it is on the horizon. If at that moment its altitude is increasing, it is rising, but if its altitude is decreasing it is setting. However, all objects on the celestial sphere are subject to diurnal motion, which is always from east to west. One can determine whether altitude is increasing or decreasing by instead considering the azimuth of the celestial object:
- if the azimuth is between 0° and 180° (north–east–south), it is rising.
- if the azimuth is between 180° and 360° (south–west–north), it is setting.
There are the following special cases:
- At the north pole all directions are south, and at the south pole all directions are north, so the azimuth is undefined in both locations. A star (or any object with fixed equatorial coordinates) has constant altitude, and therefore never rises or sets when viewed from either pole. The Sun, Moon, and planets can rise or set over the span of a year when viewed from the poles because their right ascensions and declinations are constantly changing.
- At the equator objects on the celestial poles stay at fixed points on the horizon.
Note that the above considerations are strictly speaking true for the geometric horizon only: the horizon as it would appear for an observer at sea level on a perfectly smooth Earth without an atmosphere. In practice the apparent horizon has a negative altitude, whose absolute value gets larger as the observer ascends higher above sea level, due to the curvature of the Earth. In addition, atmospheric refraction causes celestial objects very close to the horizon to appear about half a degree higher than they would if there were no atmosphere.
Transformation of coordinates