1 |
% Load in nod and ele files, find boundary if one does not exist locally |
---|
2 |
% if one does not exist locally it will wait until you tell it to save the bnd file or not. |
---|
3 |
[ele,x,y,z,bnd]=loadgrid('g2ssubgom'); |
---|
4 |
% |
---|
5 |
% |
---|
6 |
%plot boundary |
---|
7 |
%set window size and axis type |
---|
8 |
%plot bathymetry |
---|
9 |
% |
---|
10 |
% JF |
---|
11 |
subplot(3,2,1),plotbnd(x,y,bnd); |
---|
12 |
axis('equal'); |
---|
13 |
set(gca,'XLim',[0.0 500000]); |
---|
14 |
set(gca,'YLim',[-200000 150000]); |
---|
15 |
set(gca,'Box','on'); |
---|
16 |
set(gca,'XTick',[]); |
---|
17 |
set(gca,'YTick',[]); |
---|
18 |
set(gca,'visible','off'); |
---|
19 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('JF/DR56',4,'JF') |
---|
20 |
cval=[60 100 200]; |
---|
21 |
lcontour2(ele,x,y,z,cval); |
---|
22 |
% |
---|
23 |
% MA |
---|
24 |
subplot(3,2,2),plotbnd(x,y,bnd); |
---|
25 |
axis('equal'); |
---|
26 |
set(gca,'XLim',[0.0 500000]); |
---|
27 |
set(gca,'YLim',[-200000 150000]); |
---|
28 |
set(gca,'Box','on'); |
---|
29 |
set(gca,'XTick',[]); |
---|
30 |
set(gca,'YTick',[]); |
---|
31 |
set(gca,'visible','off'); |
---|
32 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('MA/DR56',4,'MA') |
---|
33 |
cval=[60 100 200]; |
---|
34 |
lcontour2(ele,x,y,z,cval); |
---|
35 |
% |
---|
36 |
% MJ |
---|
37 |
subplot(3,2,3),plotbnd(x,y,bnd); |
---|
38 |
axis('equal'); |
---|
39 |
set(gca,'XLim',[0.0 500000]); |
---|
40 |
set(gca,'YLim',[-200000 150000]); |
---|
41 |
set(gca,'Box','on'); |
---|
42 |
set(gca,'XTick',[]); |
---|
43 |
set(gca,'YTick',[]); |
---|
44 |
set(gca,'visible','off'); |
---|
45 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('MJ/DR56',4,'MJ') |
---|
46 |
cval=[60 100 200]; |
---|
47 |
lcontour2(ele,x,y,z,cval); |
---|
48 |
% |
---|
49 |
% JA |
---|
50 |
subplot(3,2,4),plotbnd(x,y,bnd); |
---|
51 |
axis('equal'); |
---|
52 |
set(gca,'XLim',[0.0 500000]); |
---|
53 |
set(gca,'YLim',[-200000 150000]); |
---|
54 |
set(gca,'Box','on'); |
---|
55 |
set(gca,'XTick',[]); |
---|
56 |
set(gca,'YTick',[]); |
---|
57 |
set(gca,'visible','off'); |
---|
58 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('JA/DR56',4,'JA') |
---|
59 |
cval=[60 100 200]; |
---|
60 |
lcontour2(ele,x,y,z,cval); |
---|
61 |
% |
---|
62 |
% SO |
---|
63 |
subplot(3,2,5),plotbnd(x,y,bnd); |
---|
64 |
axis('equal'); |
---|
65 |
set(gca,'XLim',[0.0 500000]); |
---|
66 |
set(gca,'YLim',[-200000 150000]); |
---|
67 |
set(gca,'Box','on'); |
---|
68 |
set(gca,'XTick',[]); |
---|
69 |
set(gca,'YTick',[]); |
---|
70 |
set(gca,'visible','off'); |
---|
71 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('SO/DR56',4,'SO') |
---|
72 |
cval=[60 100 200]; |
---|
73 |
lcontour2(ele,x,y,z,cval); |
---|
74 |
% |
---|
75 |
% ND |
---|
76 |
subplot(3,2,6),plotbnd(x,y,bnd); |
---|
77 |
axis('equal'); |
---|
78 |
set(gca,'XLim',[0.0 500000]); |
---|
79 |
set(gca,'YLim',[-200000 150000]); |
---|
80 |
set(gca,'Box','on'); |
---|
81 |
set(gca,'XTick',[]); |
---|
82 |
set(gca,'YTick',[]); |
---|
83 |
set(gca,'visible','off'); |
---|
84 |
[gridname,ndrog,ndts,tsec,pth]=read_pth('ND/DR56',4,'ND') |
---|
85 |
cval=[60 100 200]; |
---|
86 |
lcontour2(ele,x,y,z,cval); |
---|
87 |
|
---|
88 |
|
---|
89 |
% |
---|
90 |
% Print to file |
---|
91 |
orient tall |
---|
92 |
print -deps paths.eps |
---|
93 |
|
---|
94 |
|
---|
95 |
% |
---|
96 |
%Draw vectors as arrows - the 1 is the scale, so the vector scale that you |
---|
97 |
% put in with a mouse click will be 100cm/s. If you want to increase the |
---|
98 |
% size of your vectors then put in a smaller scale size( so 0.5 scale will give |
---|
99 |
% a representative scale length of 50 cm/s. |
---|
100 |
hv=vecplot2(x,y,data(:,2),data(:,3),0.4,'cm/s'); |
---|
101 |
end |
---|