New equations for nearly geostrophic flow

I have used a novel approach based upon Hamiltonian mechanics to derive new equations for nearly geostrophic motion in a shallow homogeneous fluid. The equations have the same order accuracy as (say) the quasigeostrophic equations, but they allow order-one variations in the depth and Coriolis parameter. My equations exactly conserve proper analogues of the energy and potential vorticity, and they take a simple form in transformed coordinates.