/[MITgcm]/MITgcm/utils/matlab/ini_poly3.m
ViewVC logotype

Contents of /MITgcm/utils/matlab/ini_poly3.m

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


Revision 1.1.2.1 - (show annotations) (download)
Wed Feb 6 15:48:10 2002 UTC (21 years, 4 months ago) by heimbach
Branch: ecco-branch
CVS Tags: ecco_c50_e32, ecco_c50_e33, ecco_c50_e30, ecco_c50_e31, ecco_c51_e34d, ecco_c51_e34e, ecco_c51_e34f, ecco_c51_e34g, ecco_c51_e34a, ecco_c51_e34b, ecco_c51_e34c, icebear5, icebear4, icebear3, icebear2, ecco_c50_e29, ecco_c50_e28, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, ecco_c50_e33a, ecco_c51_e34, ecco_ice2, ecco_ice1, ecco_c44_e22, ecco_c44_e25, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5
Branch point for: c24_e25_ice, icebear
Changes since 1.1: +0 -0 lines
Updating ecco-branch-mod1 to checkpoint44.
Will be tagged ecco-branch-mod2.

1 function [poly3] = ini_poly3()
2 % P=INI_POLY3
3 %
4 % Reads the file 'POLY3.COEFFS' and returns coefficients in P
5
6 fid=fopen('POLY3.COEFFS','r');
7
8 n=fscanf(fid,'%i',1);
9
10 for k=1:n,
11 a=fscanf(fid,'%g',3);
12 T(k)=a(1);
13 S(k)=a(2);
14 D(k)=a(3);
15 poly3(k).t=a(1);
16 poly3(k).s=a(2);
17 poly3(k).dens=a(3);
18 end
19 for k=1:n,
20 a=fscanf(fid,'%g',9);
21 P(k,:)=a';
22 poly3(k).coeffs=a';
23 end
24 P(:,10)=T';
25 P(:,11)=S';
26 P(:,12)=D';

  ViewVC Help
Powered by ViewVC 1.1.22