Katabatic flow: analytic solution for gradually varying eddy diffusivitie