Parent Directory | Revision Log | Revision Graph
Merge from branch pre38: o essential mods for cubed sphere o debugged atmosphere, dynamcis + physics (aim) o new packages (mom_vecinv, mom_fluxform, ...)
1 | adcroft | 1.2 | function [] = plotcube(X,Y,Z,C) |
2 | % e.g. | ||
3 | % load CUBE_3DGRID | ||
4 | % tt=rdmds('TTtave.0000103680'); | ||
5 | % plotcube(XG,YG,ZG,tt(:,:,1)) | ||
6 | % | ||
7 | % $Header: % | ||
8 | % $Name: % | ||
9 | |||
10 | n=size(C,2); | ||
11 | |||
12 | surf(X(:,:,1),Y(:,:,1),Z(:,:,1),C(1:n,:)) | ||
13 | hold on | ||
14 | for j=2:6 | ||
15 | surf(X(:,:,j),Y(:,:,j),Z(:,:,j),C((j-1)*n+1:j*n,:)) | ||
16 | end | ||
17 | hold off | ||
18 | xlabel('X'); | ||
19 | ylabel('Y'); | ||
20 | zlabel('Z'); |
ViewVC Help | |
Powered by ViewVC 1.1.22 |