Fix sea surface output

This patch fixes the problem detailed in issue #13.