function [taux,tauy]=stress10(u,v,sensor_height) %STRESS10 Compute windstress at 10-meter reference level % STRESS10 computes the windstress from the windspeed (u,v) % recorded at sensor_height meters above MSL, as described % in Large and Pond, 1981, JPO, and Blanton, et. al., GALE... % % Instead of iterating until some tolerance is satisfied, % 4 iterations are made, PERIOD. % % STRESS10 assumes neutral stability. The routine % STAB10 makes corrections to the neutral stability % stress estimates from air-sea temperature differences % and humidity. % % Inputs: u,v - east/north wind velocity (meters/sec) % sensor_height - anemometer height (meters) % % Outputs:[taux,tauy] - windstress (pascals) at 10 meter ref level. % % Call as:[taux,tauy]=stress10(u,v,sensor_height) % % Written by: Brian O. Blanton % Spring '98 % % 3 args in required. if nargin~=3 error('3 args to STRESS10 are REQUIRED!') end % Set number of iterations nit=4; % Von Karman's Constant kar=.4; % density of air, kg/m^3 rho=1.22; % Compute magnitude mag=sqrt(u.*u+v.*v); % We'll need to keep track of NaN and 0 speeds entries. ikeep=find(~isnan(mag)& mag>eps); iNaN=find(isnan(mag)); izero=find(mag