| 1 | clear | 
| 2 | clear path | 
| 3 | whos | 
| 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 | % i=find(t<20); | 
| 15 | % t(i)=20; | 
| 16 |  | 
| 17 | cmin=20; | 
| 18 | cmax=32; | 
| 19 | V=[cmin cmax]; | 
| 20 | figure | 
| 21 | caxis('manual') | 
| 22 |  | 
| 23 | %subplot(2,1,1) | 
| 24 | title='in-situ temperature at z=3'; | 
| 25 | imagesc(lat,long,squeeze(t(1:Nx-1,1:Ny-1,3))');shading flat;axis off;box on; | 
| 26 | %        imagesc(lat,long,squeeze(t(:,:,5))');shading flat;axis image;caxis(V);colorbar('vertical'); | 
| 27 | set(gca,'ydir','norm') | 
| 28 | text(0,-50,descriptor); | 
| 29 | text(0,140,title); | 
| 30 | text(0,-30,'timestep');text(80,-30,num2str(it)) | 
| 31 | %subplot(2,1,2) | 
| 32 | figure | 
| 33 | contour(flipud(squeeze(t(1:Nx-2,Ny/4,1:Nz-1))'),50);grid;axis off; | 
| 34 | %        contour(flipud(squeeze(t(1:Nx-1,Ny/2,3:Nz))'),50);caxis(V);colorbar;grid | 
| 35 | %        text(0,-2,'in-situ east-west temperature ') | 
| 36 | %figure | 
| 37 | %        contour(flipud(squeeze(t(Ny/4,1:Ny-1,1:Nz))'),50);colorbar;grid | 
| 38 | %        text(0,-2,'in-situ north-south temperature') | 
| 39 |  |