1 |
function []=mitgcm_plot_adv_xy(fil,cc); |
2 |
|
3 |
gcmfaces_global; |
4 |
|
5 |
if isempty(whos('fil')); |
6 |
%cd MITgcm/verification/advect_xy/run; |
7 |
grid_load('./',1,'straight'); |
8 |
cc=[-0.25:0.05:1]/10; suf='T'; num=1; |
9 |
figureL; set(gcf,'Renderer','zbuffer'); |
10 |
for tt=0:16:80; |
11 |
fil={sprintf('%s.%010d',suf,tt),num}; |
12 |
mitgcm_plot_adv_xy(fil,cc); |
13 |
%fprintf('paused: hit enter to proceed\n'); pause; |
14 |
pause(1); |
15 |
end; |
16 |
return; |
17 |
end; |
18 |
|
19 |
m=squeeze(mygrid.mskC(:,:,1)); |
20 |
|
21 |
if ~iscell(fil); |
22 |
c=rdmds2gcmfaces(fil); |
23 |
else; |
24 |
c=rdmds2gcmfaces(fil{1},'rec',fil{2}); |
25 |
end; |
26 |
c=c(:,:,1); |
27 |
|
28 |
% figureL; |
29 |
clf; |
30 |
if isempty(whos('cc')); cc=[]; end; |
31 |
qwckplot(c.*m); gcmfaces_cmap_cbar(cc); |
32 |
title(fil); |