There are many descriptions of these two averaging processes in the literature (e.g., Thompson, Moran, and Swenson 1986, NRAO Synthesis workshop 1988) so I will just give an outline and show the pertinent results.