Title: The dipole field in an inhomogeneous atmosphere