/[MITgcm]/MITgcm_contrib/osse/utils/hmaker.m
ViewVC logotype

Contents of /MITgcm_contrib/osse/utils/hmaker.m

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


Revision 1.1 - (show annotations) (download)
Tue Jun 8 19:38:54 2004 UTC (21 years, 1 month ago) by afe
Branch: MAIN
observation location generator

1
2 nx=120;
3 ny=31;
4 nz=29;
5 nf=2;
6 vectorsize=nx*ny*nz*nf;
7 dim=1;
8 fid = fopen('hfile.txt','w')
9
10 for i=1:nf
11 for j=1:nz
12 for k=1:ny % get every other ring
13 for l=1:nx
14 if (any(j==[5 10 15 20 25]) && ... % 5 levels
15 any(i==[1 2]) && ... % u, v
16 mod(k,2)==0)
17 % if mod(dim,359)==0
18 fprintf(fid,'%i\n',dim);
19 end
20 dim=dim+1;
21 end
22 end
23 end
24 end
25
26

  ViewVC Help
Powered by ViewVC 1.1.22