Skip to content

Commit

Permalink
Fix CTDDepthBinPP to update global attributes geospatial_vertical_min…
Browse files Browse the repository at this point in the history
…/max accordingly.
  • Loading branch information
ggalibert committed Oct 27, 2016
1 parent 57acbac commit b256386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Preprocessing/CTDDepthBinPP.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@
zend = zbin(2:end);

z = (zstart + zend)/2; % depth of the actual centre of each bin
curSam.dimensions{iDepth}.data = z(:);

curSam.dimensions{iDepth}.data = z(:); % update dimension and global attribute values
curSam.geospatial_vertical_min = min(z(:));
curSam.geospatial_vertical_max = max(z(:));

[Z, ZSTART] = meshgrid(depth, zstart);
[~, ZEND] = meshgrid(depth, zend);
Expand Down

0 comments on commit b256386

Please sign in to comment.