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

Annotation of /MITgcm_contrib/high_res_cube/matlab-grid-generator/displaytiles.m

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


Revision 1.1 - (hide annotations) (download)
Tue Nov 11 18:08:08 2003 UTC (21 years, 8 months ago) by cnh
Branch point for: MAIN, initial
Initial revision

1 cnh 1.1 function [] = displaytiles(A)
2     % Display tiled field.
3     %
4     % Dimensions of A must be (n,n,6)
5    
6     global cmin cmax
7     clf
8    
9     cmin=min(min(min(A)));
10     cmax=max(max(max(A)));
11     if isnan(cmin)
12     cmin = 0;
13     end
14     if isnan(cmax)
15     cmax = 1;
16     end
17     if cmin==cmax
18     cmax = cmin+1;
19     end
20    
21     subplot(3,4,9)
22     myplot(tiles(A,1)')
23     subplot(3,4,10)
24     myplot(tiles(A,2)')
25     subplot(3,4,6)
26     myplot(tiles(A,3)')
27     subplot(3,4,7)
28     myplot(tiles(A,4)')
29     subplot(3,4,3)
30     myplot(tiles(A,5)')
31     subplot(3,4,4)
32     myplot(tiles(A,6)')
33    
34    
35     %Colorbar
36     subplot(3,10,30)
37     x=1;
38     y=(0:63)'/63*(cmax-cmin)+cmin;
39     pcol(x,y,y);
40     set(gca,'XTickLabel',[]);
41    
42     function [] = myplot( Q )
43     global cmin cmax
44     pcol( Q );
45     caxis([cmin cmax])

  ViewVC Help
Powered by ViewVC 1.1.22