Calculation of the Ionospheric Photoelectron Distribution Function.