Skip to content
Snippets Groups Projects
Commit 9bf981e6 authored by Dr. rer. nat. Jürgen Mey's avatar Dr. rer. nat. Jürgen Mey :eye:
Browse files

mean instead of sum for water and topo

parent 3d887d7e
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ parse(p,variable);
switch variable
case 'topo'
filetype = 'alt';
iylabel = 'Elevation (m)';
iylabel = 'Mean elevation along profile (m)';
case 'sediment'
filetype = 'sed';
iylabel = 'Mean sediment thickness along path (m)';
......@@ -74,6 +74,10 @@ for i = 1:length(Z)
c = improfile(z,x,y);
if strcmp(filetype,'sed')==1
Q(i) = nanmean(c);
elseif strcmp(filetype,'alt')==1
Q(i) = nanmean(c);
elseif strcmp(filetype,'water')==1
Q(i) = nanmean(c);
else
Q(i) = nansum(c);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment