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 |
% |
% |
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; |