/[MITgcm]/MITgcm_contrib/gael/comm/course-idma2015/computing/mitgcm_plot_adv_xy.m
ViewVC logotype

Contents of /MITgcm_contrib/gael/comm/course-idma2015/computing/mitgcm_plot_adv_xy.m

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


Revision 1.1 - (show annotations) (download)
Thu Jan 29 14:20:44 2015 UTC (10 years, 5 months ago) by gforget
Branch: MAIN
CVS Tags: HEAD
- display output from various verification experiments

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

  ViewVC Help
Powered by ViewVC 1.1.22