source: Roms_tools/air_sea/wavdist2.m @ 2

Last change on this file since 2 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

File size: 876 bytes
Line 
1function y=wavdist2(za)
2% WAVDIST2: plots wave distortion effects on wind at za.
3% WAVDIST2(za) plots the effects of wave distortion on the
4% wind Ua measured at height za for the following significant
5% wave heights Hw=[0:2:8] in m.
6%
7% INPUT:   za - wind measurement height [m]
8
9%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10% 5/5/97: version 1.0
11% 4/10/98: version 1.1
12% 8/5/99: version 2.0
13%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15Hw=[0:2:8];
16Ua=[0.01:.01:20]';
17
18N=length(Hw);
19M=length(Ua);
20Ut=zeros(M,N);
21
22clg
23hold on
24for n=1:N
25  Ut=wavdist1(Ua,za,Hw(n));
26  plot(Ua,Ut)
27end
28
29title(['Predicted effects of wave distortion on wind speed at height ',num2str(za),' m'])
30xlabel('Measured wind speed Ua (m/s)')
31ylabel('Predicted wind speed Ut (m/s)')
32text(10,2,'Wave height increment = 2 m')
33grid
34
35
Note: See TracBrowser for help on using the repository browser.