A Vector Derivation of the Semigeostrophic Potential Vorticity Equation.