/[MITgcm]/MITgcm_contrib/gael/comm/course-idma2016/matlab/mitgcm_plot_held_suarez.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/comm/course-idma2016/matlab/mitgcm_plot_held_suarez.m

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


Revision 1.2 - (hide annotations) (download)
Fri Jan 22 19:05:59 2016 UTC (9 years, 6 months ago) by gforget
Branch: MAIN
Changes since 1.1: +4 -0 lines
- point to gcmfaces.pdf

1 gforget 1.1 function []=mitgcm_plot_held_suarez(fil,cc);
2     %Example:
3     % cd MITgcm/verification/tutorial_held_suarez_cs/run;
4     % grid_load('./',6,'cube');
5     % cc=[260:2:310]; suf='T'; num=1;
6     % figureL; set(gcf,'Renderer','zbuffer');
7     % for tt=282240:192*30:345600;
8     % fil={sprintf('%s.%010d',suf,tt),num};
9     % mitgcm_plot_held_suarez(fil,cc);
10     % shading interp;
11     % pause(0.1);
12     % end;
13 gforget 1.2 %
14     %note: this requires that the gcmfaces software has been
15     % installed and added to the matlab path as explained in
16     % http://mitgcm.org/viewvc/*checkout*/MITgcm/MITgcm_contrib/gael/matlab_class/gcmfaces.pdf
17 gforget 1.1
18     gcmfaces_global;
19    
20     m=squeeze(mygrid.mskC(:,:,1));
21    
22     if ~iscell(fil);
23     c=rdmds2gcmfaces(fil);
24     else;
25     c=rdmds2gcmfaces(fil{1},'rec',fil{2});
26     end;
27     c=c(:,:,1);
28    
29     clf;
30     if isempty(whos('cc')); cc=[]; end;
31     %gcmfaces_sphere(c.*m,cc,[],[],1);
32     qwckplot(c.*m); gcmfaces_cmap_cbar(cc);
33     title(fil);
34    

  ViewVC Help
Powered by ViewVC 1.1.22