source: trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_as.m @ 17

Last change on this file since 17 was 17, checked in by pinsard, 15 years ago

remove CR from CRLF in matlab files

File size: 513 bytes
Line 
1%
2
3clear;
4close all;
5
6fid=fopen('olrf10-30_as.80.dat','r');
7siz=24*15*3538;
8v=fread(fid,siz,'float');
9fclose(fid);
10olr=reshape(v,360,3538);
11clear v;
12
13% calcul de la matrice de covariance
14vaudou=zeros(360,360);
15for a=1:360;
16    for b=1:360;
17      clear e d covaria;
18      e=olr(b,:);
19      d=olr(a,:);
20      covaria=cov(e,d);
21      vaudou(a,b)=covaria(2,1);
22    end;
23end;
24
25% on diagonalise la matrice de covariance
26[C,L]=eig(vaudou);
27
28delete('eof_1030_ircaam_as.mat');
29save('eof_1030_ircaam_as.mat','C','L','olr')
Note: See TracBrowser for help on using the repository browser.