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

Contents of /MITgcm_contrib/timour_matlab/mscripts/plottwfields.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 function plotfields( iter )
2 clear
3 clear path
4
5 global Nx Ny Nz
6 global lat long dz dm mdep
7 global delt_su su_its t_su delt
8 global descriptor this_path
9 global f deltaf Q beta r_expt r_heat H
10 global time rots it
11 global g Cp rho_bar alpha
12 global u v t w
13 global iterations
14
15
16 for k=1:Nz
17 k
18 figure(1)
19 subplot(2,2,1)
20 pcolor(squeeze(t(:,:,k)'));shading flat; colorbar; axis square
21 title(['t timestep ' num2str(eval(it)) ' level ' int2str(k) ]);
22 drawnow
23 subplot(2,2,2)
24 pcolor(squeeze(w(:,:,k)'));shading flat; colorbar; axis square
25 title(['w timestep ' num2str(eval(it)) ' level ' int2str(k) ]);
26 drawnow
27
28 pause
29
30 %subplot(2,2,3)
31 %pcolor(squeeze((v(:,:,k)'.^2+u(:,:,k)'.^2).^0.5));shading flat; colorbar; axis square
32 %title(['speed timestep ' num2str(eval(it)) ' level ' int2str(k) ]);
33 %drawnow
34 end
35
36 return

  ViewVC Help
Powered by ViewVC 1.1.22