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

Annotation of /MITgcm_contrib/timour_matlab/mscripts/warming2.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
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     param_file_name = ...
16     input(' Please enter the name of the m-file with the parameters for this run : ','s') ;
17     feval(param_file_name) ;
18     path = this_path
19     cmdstr=['cd ' path ];
20     eval(cmdstr);
21     path=pwd
22    
23     % create circular sampling rings
24    
25    
26     sizeit=size(iterations);
27     theta20=zeros(sizeit(1),1);
28     figure;hold on
29    
30     for i=1:sizeit(1)-1
31     tfilename=(['T.' iterations((i),1:10) ]);
32     t=rdmds(tfilename,'b');
33    
34     psfilename=(['PS.' iterations((i),1:10) ]);
35     ps=rdmds(psfilename,'b');
36    
37     tt=zeros(Nx,Ny);
38    
39     for k=1:Nz,
40     tt=tt+(t(:,:,k)-20);
41     end
42     % tt(i,:)=t(3*Nx/4,Ny/2,:)-20;
43     ttt(i)=max(max(tt));
44    
45     time(i)=eval(iterations(i,1:10));
46    
47    
48     end
49    
50     plot(time(1:sizeit(1)-1),ttt(1:sizeit-1));drawnow
51    
52    
53     title(descriptor)
54     xlabel('timestep')
55     ylabel('max PS (eastern part)')
56     grid
57    

  ViewVC Help
Powered by ViewVC 1.1.22