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

Diff of /MITgcm/utils/matlab/merccube.m

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

revision 1.1 by adcroft, Mon Aug 13 18:10:28 2001 UTC revision 1.2 by adcroft, Wed Aug 15 15:47:19 2001 UTC
# Line 1  Line 1 
1  function [] = merccube(XX,YY,C)  function [] = merccube(XX,YY,C)
2  % merccube(xg,yg,c)  % merccube(x,y,c)
3  %  %
4  % Plots cubed-sphere data in mercator projection. (xg,yg) are grid-corners  % Plots cubed-sphere data in mercator projection. (x,y) are
5  % coordinates, c is cell-centered scalar to be plotted.  % coordinates, c is cell-centered scalar to be plotted.
6    % All arrays (x,y,c) should have dimensions of NxNx6 or 6NxN.
7    %
8    % The default plotting mode is shading faceted. Using this or
9    % shading flat, (x,y) should be the coordinates of grid-corners
10    % and can legitimately have dimension (N+1)x(N+1)x6.
11    %
12    % If using shading interp, then (x,y) must be the coordinates of
13    % the cell centers.
14  %  %
15  % e.g.  % e.g.
16  %  %
# Line 11  function [] = merccube(XX,YY,C) Line 19  function [] = merccube(XX,YY,C)
19  % ps=rdmds('Eta.0000000000');  % ps=rdmds('Eta.0000000000');
20  % mercube(xg,yg,ps);  % mercube(xg,yg,ps);
21  % colorbar;xlabel('Longitude');ylabel('Latitude');  % colorbar;xlabel('Longitude');ylabel('Latitude');
22    %
23    % xc=rdmds('XC');
24    % yc=rdmds('YC');
25    % mercube(xc,yc,ps);shading interp
26    
27  if max(max(max(YY)))-min(min(min(YY))) < 3*pi  if max(max(max(YY)))-min(min(min(YY))) < 3*pi
28   X=XX*180/pi;   X=XX*180/pi;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22