Longwave flux is a product of both downwelling infrared energy as well as emission by the underlying surface. The cooling associated with the divergence of longwave radiation is necessary for creating and sustaining lasting inversion layers close to the surface during polar night. Longwave radiation flux divergence also plays a role in the formation of fog.