Commit cb39c6ca authored by Pierre Cazenave's avatar Pierre Cazenave

Add spherical coordinates of element centres.

parent 8cd9daa5
......@@ -44,6 +44,7 @@ function [Mobj] = read_sms_mesh(varargin)
% 2013-12-11 Closed the sms_2dm file using fclose (ROM).
% 2014-04-10 Fix bugs when not using bathymetry (i.e. only reading the
% grid data in).
% 2015-03-19 Add spherical coordinates on element centres.
%
%==============================================================================
......@@ -348,6 +349,10 @@ Mobj.tri = tri;
% Make a depth array for the element centres.
Mobj.hc = nodes2elems(h, Mobj);
% Add element spherical coordinates too.
Mobj.lonc = nodes2elems(lon, Mobj);
Mobj.latc = nodes2elems(lat, Mobj);
if ftbverbose
fprintf('end : %s\n', subname)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment