/[MITgcm]/MITgcm_contrib/high_res_cube/eddy_flux/run_calcUVBave.m
ViewVC logotype

Annotation of /MITgcm_contrib/high_res_cube/eddy_flux/run_calcUVBave.m

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


Revision 1.2 - (hide annotations) (download)
Fri Aug 13 01:45:50 2004 UTC (20 years, 11 months ago) by edhill
Branch: MAIN
Changes since 1.1: +26 -7 lines
 o fix a few small bugs

1 edhill 1.1 %
2     % Ed Hill
3     % Mon Aug 2 23:43:41 EDT 2004
4     %
5    
6     matlab -nojvm -nodisplay
7    
8     clear all ; close all
9 edhill 1.2
10     % Get the 1-yr list of days
11     load ilist
12     deltatT = 1200; % model time step size (s)
13     tavefreq = 259200; % averaging period (s)
14     startDate = datenum(1992,1,1); % model integration starting date
15     for iy = 1992:2004
16     fid = fopen(sprintf('ilist_%d.txt',iy),'w');
17     for it = 1:length(ilist)
18     iter = ilist(it);
19     dv = datevec(startDate + (iter*deltatT-tavefreq/2)/60/60/24);
20     newyear = dv(1);
21     if newyear == iy
22     a = sprintf('%10.10d %d',iter,dv(1));
23     fprintf(fid,'%s\n',a);
24     end
25     end
26     fclose(fid);
27     end
28    
29    
30     clear all ; close all
31 edhill 1.1 nlay = 50;
32     ne = 510;
33    
34     Spat = 'Stave/data/Stave.%10.10d.data';
35     Tpat = 'Ttave/data/Ttave.%10.10d.data';
36     Upat = '_Veltave/data/uVeltave.%10.10d.data';
37     Vpat = '_Veltave/data/vVeltave.%10.10d.data';
38    
39 edhill 1.2 load ilist
40    
41     calcUVBave(Spat, Tpat, Upat, Vpat, ilist, nlay, ne)
42    
43 edhill 1.1
44    

  ViewVC Help
Powered by ViewVC 1.1.22