Home > omviz > freshthick.m

freshthick

PURPOSE ^

function [f,x,y]=freshthick(cdf,tind,s0);

SYNOPSIS ^

function [f,x,y]=freshthick(cdf,tind,s0);

DESCRIPTION ^

 function [f,x,y]=freshthick(cdf,tind,s0);
 finds the depth-integrated freshwater thickness
 relative to a reference salinity s0

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [f,x,y]=freshthick(cdf,tind,s0);
0002 % function [f,x,y]=freshthick(cdf,tind,s0);
0003 % finds the depth-integrated freshwater thickness
0004 % relative to a reference salinity s0
0005 
0006 [s,x,y]=depave(cdf,'salt',tind);
0007 [d,x,y]=kslice(cdf,'depth');
0008 fmean=(s0-s)/s0;
0009 f=fmean.*d;

Generated on Thu 01-Dec-2005 08:50:35 by m2html © 2003