We investigate the boundary-value problem of atmospheric Ekman flows with piecewise-uniform eddy viscosity. In addition we present a method for finding more general solutions by considering eddy viscosity as an arbitrary step-function. We discuss the existence and uniqueness of the solutions obtained through this method, providing detailed proofs for cases with one and two ‘jumps’ in eddy viscosity. For scenarios with more ‘jumps,’ we establish results inductively. Furthermore, we examine the angle between the bottom surface of the Ekman layer and geostrophic winds by extremizing variables such as the eddy viscosity and its point of change. These calculations reveal how the angle can differ from 45°, demonstrating that the extreme values of 0° and 90° are achievable, indicating the potential range of the deflection angle.