function s = sumsea(sea)

[r c] = size(sea);
s = 0;
for ii = 1:r
   for jj = 1:c
      s = s + sea(ii,jj).h;
   end
end

