Calculation of turbulence effects in an upward-refracting atmosphere