/[MITgcm]/MITgcm_contrib/timour_matlab/mscripts/plotuv2.m
ViewVC logotype

Contents of /MITgcm_contrib/timour_matlab/mscripts/plotuv2.m

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


Revision 1.1 - (show annotations) (download)
Wed Sep 3 21:22:22 2003 UTC (21 years, 10 months ago) by edhill
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
initial checkin of Timour's MatLAB scripts

1 clear
2 clear path
3
4 global Nx Ny Nz
5 global lat long dz dm mdep
6 global delt_su su_its t_su delt
7 global descriptor this_path
8 global f deltaf Q beta r_expt r_heat H
9 global time rots it
10 global g Cp rho_bar alpha
11 global u v t w
12 global iterations
13
14
15 tt(1:Nx/2,:,:)=t(Nx/2+1:Nx,:,:);
16 uu(1:Nx/2,:,:)=u(Nx/2+1:Nx,:,:);
17 vv(1:Nx/2,:,:)=v(Nx/2+1:Nx,:,:);
18 cmin=20;
19 cmax=32;
20 V=[cmin cmax];
21
22 counter=0;
23 for i=Nx/2+2:4:Nx,
24 counter=counter+1;
25 x(counter)=i;
26 end
27
28 counter=0;
29 for i=2:4:Ny,
30 counter=counter+1;
31 y(counter)=i;
32 end
33
34 caxis('manual')
35 imagesc(x,y,squeeze(tt(:,:,5))');shading flat;axis image;caxis(V);colorbar('horizontal');
36 set(gca,'ydir','norm')
37 hold on
38
39 quiver(x,y,uu(2:4:Nx/2,2:4:Ny,5)',vv(2:4:Nx/2,2:4:Ny,5)')
40 title(['velocity and temperature at the timestep ' num2str(eval(it)) ' level ' int2str(5) ]);
41 hold off

  ViewVC Help
Powered by ViewVC 1.1.22