Planewave form of the geostrophic streamfunction