NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/DPWavesProc/trunk/DPWavesProc/adcp_matlab/Winfo_plot1.m

Revision 216 (checked in by gdusek, 15 years ago)

Some new files updated and added

Line 
1 function [fig_sigh,fig_pp,fig_dp,fig_dd]=Winfo_plot1(Winfo);
2
3 %This function takes the wave info (sigH, peak period, direction of peak and dominant direction
4 %for a series of bursts and plots it as a function of time
5
6
7 %plot sig wave height
8 scrsz = get(0,'ScreenSize');
9 fig_sigh=figure('Position',[scrsz]);
10 h1=plot(Winfo.time,Winfo.hsig(1,:),'b.-');
11
12 datetick('x',15,'keepticks');
13 legend([h1],'EMEP radial','location','best');
14 title(['Significant Wave Height starting on ',datestr(Winfo.time(:,1),0)]);
15 xlabel('time');
16 ylabel('Wave Height (m)');
17
18 %plot peak period
19 fig_pp=figure('Position',[scrsz]);
20 h1=plot(Winfo.time,Winfo.peakP(1,:),'b.-');
21
22 datetick('x',15,'keepticks');
23 legend([h1],'EMEP radial','location','best');
24 title(['Peak Period starting on ',datestr(Winfo.time(:,1),0)]);
25 xlabel('time');
26 ylabel('Period (seconds)');
27
28 %plot dir of peak period
29 fig_dp=figure('Position',[scrsz]);
30 h1=plot(Winfo.time,Winfo.dirP(1,:),'b.-');
31
32 datetick('x',15,'keepticks');
33 legend([h1],'EMEP radial','location','best');
34 title(['Direction of Peak Period starting on ',datestr(Winfo.time(:,1),0)]);
35 xlabel('time');
36 ylabel('Direction (Degrees True)');
37
38 %plot the dominant direction
39
40 fig_dd=figure('Position',[scrsz]);
41 h1=plot(Winfo.time,Winfo.Ddir(1,:),'b.-');
42
43 datetick('x',15,'keepticks');
44 legend([h1],'EMEP radial','location','best');
45 title(['Dominant Direction starting on ',datestr(Winfo.time(:,1),0)] );
46 xlabel('time');
47 ylabel('Direction (Degrees True)');
48
Note: See TracBrowser for help on using the browser.