/[MITgcm]/MITgcm/utils/matlab/plotcube.m
ViewVC logotype

Contents of /MITgcm/utils/matlab/plotcube.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue May 29 14:01:40 2001 UTC (22 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre1, checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, checkpoint40pre4, checkpoint40pre3, checkpoint40pre7
Changes since 1.1: +20 -0 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 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