sphere, with application to internal tides