1 |
cnh |
1.1 |
% 2 - Plot grid |
2 |
|
|
% Make some plots showing the 16 fields in absolute and in relative |
3 |
|
|
% magnitude |
4 |
|
|
% csg=load_cs_grid(510,510,510,'t510'); |
5 |
|
|
% csg=make_cs_segments_and_patches(csg); |
6 |
|
|
% bathy=load_cs_bathy(csg,'t510','bathy.bin','float32'); |
7 |
|
|
csg=load_cs_grid(32,32,32,'t32'); |
8 |
|
|
csg=make_cs_segments_and_patches(csg); |
9 |
|
|
bathy=load_cs_bathy(csg,'t32','bathy.bin','float32'); |
10 |
|
|
|
11 |
|
|
gridarr=csg.gridarr; |
12 |
|
|
xcpos=1; ycpos=2; dxfpos=3; dyfpos=4; |
13 |
|
|
rapos=5; xgpos=6; ygpos=7; dxvpos=8; |
14 |
|
|
dyupos=9; razpos=10; dxcpos=11; dycpos=12; |
15 |
|
|
rawpos=13; raspos=14; dxgpos=15; dygpos=16; |
16 |
|
|
clf |
17 |
|
|
|
18 |
|
|
subplot(4,4,1); |
19 |
|
|
imagesc(flipud(gridarr(:,:,xcpos)'));colorbar;title('XC (lon)');axis equal |
20 |
|
|
|
21 |
|
|
subplot(4,4,2); |
22 |
|
|
imagesc(flipud(gridarr(:,:,ycpos)'));colorbar;title('YC (lat)');axis equal |
23 |
|
|
|
24 |
|
|
subplot(4,4,3); |
25 |
|
|
phi=gridarr(:,:,dxfpos)./1e3; |
26 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
27 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
28 |
|
|
ttl=sprintf('DXF (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
29 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
30 |
|
|
|
31 |
|
|
subplot(4,4,4); |
32 |
|
|
phi=gridarr(:,:,dyfpos)./1e3; |
33 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
34 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
35 |
|
|
ttl=sprintf('DYF (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
36 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
37 |
|
|
|
38 |
|
|
subplot(4,4,5); |
39 |
|
|
phi=gridarr(:,:,rapos)./1e6; |
40 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
41 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
42 |
|
|
ttl=sprintf('RA (km^2, min=%0.5g, max=%0.5g)',phimin,phimax); |
43 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
44 |
|
|
|
45 |
|
|
subplot(4,4,6); |
46 |
|
|
imagesc(flipud(gridarr(:,:,xgpos)'));colorbar;title('XG (lon)');axis equal |
47 |
|
|
|
48 |
|
|
subplot(4,4,7); |
49 |
|
|
imagesc(flipud(gridarr(:,:,ygpos)'));colorbar;title('YG (lat)');axis equal |
50 |
|
|
|
51 |
|
|
subplot(4,4,8); |
52 |
|
|
phi=gridarr(:,:,dxvpos)./1e3; |
53 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
54 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
55 |
|
|
ttl=sprintf('DXV (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
56 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
57 |
|
|
|
58 |
|
|
subplot(4,4,9); |
59 |
|
|
phi=gridarr(:,:,dyupos)./1e3; |
60 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
61 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
62 |
|
|
ttl=sprintf('DYU (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
63 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
64 |
|
|
|
65 |
|
|
subplot(4,4,10); |
66 |
|
|
phi=gridarr(:,:,razpos)./1e6; |
67 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
68 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
69 |
|
|
ttl=sprintf('RAZ (km^2, min=%0.5g, max=%0.5g)',phimin,phimax); |
70 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
71 |
|
|
|
72 |
|
|
subplot(4,4,11); |
73 |
|
|
phi=gridarr(:,:,dxcpos)./1e3; |
74 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
75 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
76 |
|
|
ttl=sprintf('DXC (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
77 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
78 |
|
|
|
79 |
|
|
subplot(4,4,12); |
80 |
|
|
phi=gridarr(:,:,dycpos)./1e3; |
81 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
82 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
83 |
|
|
ttl=sprintf('DYC (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
84 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
85 |
|
|
|
86 |
|
|
subplot(4,4,13); |
87 |
|
|
phi=gridarr(:,:,rawpos)./1e6; |
88 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
89 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
90 |
|
|
ttl=sprintf('RAW (km^2, min=%0.5g, max=%0.5g)',phimin,phimax); |
91 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
92 |
|
|
|
93 |
|
|
subplot(4,4,14); |
94 |
|
|
phi=gridarr(:,:,raspos)./1e6; |
95 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
96 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
97 |
|
|
ttl=sprintf('RAS (km^2, min=%0.5g, max=%0.5g)',phimin,phimax); |
98 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
99 |
|
|
|
100 |
|
|
subplot(4,4,15); |
101 |
|
|
phi=gridarr(:,:,dxgpos)./1e3; |
102 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
103 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
104 |
|
|
ttl=sprintf('DXG (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
105 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |
106 |
|
|
|
107 |
|
|
subplot(4,4,16); |
108 |
|
|
phi=gridarr(:,:,dygpos)./1e3; |
109 |
|
|
phimin=min(phi(find(phi~=NaN & phi~=0))); |
110 |
|
|
phimax=max(phi(find(phi~=NaN & phi~=0))); |
111 |
|
|
ttl=sprintf('DYG (km, min=%0.5g, max=%0.5g)',phimin,phimax); |
112 |
|
|
imagesc(flipud(phi'));title(ttl,'FontSize',8);axis equal;caxis([phimin phimax]);colorbar; |