| 1 | 
edhill | 
1.1 | 
clear path | 
| 2 | 
  | 
  | 
 | 
| 3 | 
  | 
  | 
global Nx Ny Nz | 
| 4 | 
  | 
  | 
global lat long dz dm mdep | 
| 5 | 
  | 
  | 
global delt_su su_its t_su delt | 
| 6 | 
  | 
  | 
global descriptor this_path | 
| 7 | 
  | 
  | 
global f deltaf Q beta r_expt r_heat H | 
| 8 | 
  | 
  | 
global time rots it | 
| 9 | 
  | 
  | 
global g Cp rho_bar alpha | 
| 10 | 
  | 
  | 
global u v t w | 
| 11 | 
  | 
  | 
global iterations | 
| 12 | 
  | 
  | 
 | 
| 13 | 
  | 
  | 
cmin=19; | 
| 14 | 
  | 
  | 
cmax=37; | 
| 15 | 
  | 
  | 
V=[cmin cmax]; | 
| 16 | 
  | 
  | 
caxis('manual') | 
| 17 | 
  | 
  | 
 | 
| 18 | 
  | 
  | 
% Load experimental parameters | 
| 19 | 
  | 
  | 
param_file_name =   ... | 
| 20 | 
  | 
  | 
   input(' Please enter the name of the m-file with the parameters for this run : ','s') ; | 
| 21 | 
  | 
  | 
feval(param_file_name) ; | 
| 22 | 
  | 
  | 
path   = this_path  | 
| 23 | 
  | 
  | 
cmdstr=['cd ' path ]; | 
| 24 | 
  | 
  | 
eval(cmdstr); | 
| 25 | 
  | 
  | 
path=pwd | 
| 26 | 
  | 
  | 
 | 
| 27 | 
  | 
  | 
it=iterations; | 
| 28 | 
  | 
  | 
frames=length(it); | 
| 29 | 
  | 
  | 
%   title='in-situ surface temperature'; | 
| 30 | 
  | 
  | 
  | 
| 31 | 
  | 
  | 
M=moviein(frames); | 
| 32 | 
  | 
  | 
 | 
| 33 | 
  | 
  | 
for i=1:frames | 
| 34 | 
  | 
  | 
    tfilename=(['T.' it(i,1:10) ]); | 
| 35 | 
  | 
  | 
    t=rdmeta(tfilename,'b'); | 
| 36 | 
  | 
  | 
    time   = (eval(it(i,1:10))-su_its)*delt ; | 
| 37 | 
  | 
  | 
    rots = time*f/(4*pi); | 
| 38 | 
  | 
  | 
    imagesc(lat(2:Nx-1),long(2:Ny-1),t(2:Nx-1,2:Ny-1,1)');axis image;caxis(V),colorbar | 
| 39 | 
  | 
  | 
    text(0,(Ny+5),descriptor); | 
| 40 | 
  | 
  | 
%    text(0,(Ny+7),title); | 
| 41 | 
  | 
  | 
    text(0,-2,'time');text(15,-2,num2str(time)); | 
| 42 | 
  | 
  | 
    M(:,i)=getframe(gcf); | 
| 43 | 
  | 
  | 
end | 
| 44 | 
  | 
  | 
 | 
| 45 | 
  | 
  | 
 |