/[MITgcm]/MITgcm_contrib/high_res_cube/matlab-grid-generator/bin/oldplotcube.m
ViewVC logotype

Contents of /MITgcm_contrib/high_res_cube/matlab-grid-generator/bin/oldplotcube.m

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


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Nov 11 18:08:08 2003 UTC (21 years, 8 months ago) by cnh
Branch: MAIN, initial
CVS Tags: baseline, HEAD
Changes since 1.1: +0 -0 lines
Checking in work done with Dimitri on high-resolution cube gridding and parallel 
communications. 
   o code is in a contrib experiment for now so we can continue collaborating
     on it. However most code is general and will be moved into main branch once 
     it is fully hardened.
   o There are README files in the contrib root and in the subdirectories that
     explain the contents

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