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

Annotation of /MITgcm_contrib/timour_matlab/mscripts/makemovie.m

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


Revision 1.1 - (hide annotations) (download)
Wed Sep 3 21:22:22 2003 UTC (21 years, 10 months ago) by edhill
Branch: MAIN
CVS Tags: HEAD
initial checkin of Timour's MatLAB scripts

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    

  ViewVC Help
Powered by ViewVC 1.1.22