/[MITgcm]/MITgcm_contrib/timour_matlab/mscripts/rawio
ViewVC logotype

Annotation of /MITgcm_contrib/timour_matlab/mscripts/rawio

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 PARAMETER (
2     & sNx = 124,
3     & sNy = 124,
4     & OLx = 3,
5     & OLy = 3,
6     & nSx = 1,
7     & nSy = 1,
8     & nPx = 1,
9     & nPy = 1,
10     & Nx = sNx*nSx*nPx,
11     & Ny = sNy*nSy*nPy,
12     & Nz = 30)
13    
14    
15     _RS taux (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
16    
17     OPEN(31,FILE='taux',FORM='unformatted')
18     WRITE(31) taux
19     CLOSE(31)
20    
21    
22    
23     fid=fopen('taux','r','ieee-be')
24     fread(fid,1,'int')
25     phi=fread(fid,130*130,'float32');
26     th=reshape(phi,[130,130]);
27    
28    
29     fid=fopen('tauy','r','ieee-be')
30     fread(fid,1,'int')
31     phi=fread(fid,130*130,'float32');
32     th=reshape(phi,[130,130]);

  ViewVC Help
Powered by ViewVC 1.1.22