


Convert sediment grain size from phi to d (m)
function [d] = ST_phi2d(phi)
DESCRIPTION:
Convert a sediment grain size from phi to d (m)
INPUT:
phi: sediment grain size in phi scale
OUTPUT:
d: sediment grain size in m
EXAMPLE USAGE
d = ST_phi2d(2.5)
Author(s):
Geoff Cowles (University of Massachusetts Dartmouth)
Revision history
==============================================================================

0001 function d = ST_phi2d(phi) 0002 % Convert sediment grain size from phi to d (m) 0003 % 0004 % function [d] = ST_phi2d(phi) 0005 % 0006 % DESCRIPTION: 0007 % Convert a sediment grain size from phi to d (m) 0008 % 0009 % INPUT: 0010 % phi: sediment grain size in phi scale 0011 % 0012 % OUTPUT: 0013 % d: sediment grain size in m 0014 % 0015 % EXAMPLE USAGE 0016 % d = ST_phi2d(2.5) 0017 % 0018 % Author(s): 0019 % Geoff Cowles (University of Massachusetts Dartmouth) 0020 % 0021 % Revision history 0022 % 0023 %============================================================================== 0024 0025 global ftbverbose 0026 [~, subname] = fileparts(mfilename('fullpath')); 0027 if ftbverbose 0028 fprintf('\nbegin : %s\n', subname) 0029 end 0030 0031 %------------------------------------------------------------------------------ 0032 % calculate d and convert to m 0033 %------------------------------------------------------------------------------ 0034 0035 d = 2^(-phi); 0036 d = d*.001; 0037 0038 if ftbverbose 0039 fprintf('end : %s\n', subname) 0040 end