source: trunk/src/SIMULS_IRCAAM/obsolete/eof_olr_ircaam_1030.m @ 91

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

unparametrized files in obsolete directory

File size: 648 bytes
Line 
1%
2%+
3%
4% EVOLUTIONS
5% ===========
6%
7% $Id$
8%
9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin)
10%
11%   * replaced by eof_df.m
12%
13%-
14
15clear;
16close all;
17
18fid=fopen('olrf10-30.80.dat','r');
19siz=24*15*3538;
20v=fread(fid,siz,'float');
21fclose(fid);
22olr=reshape(v,360,3538);
23clear v;
24
25% calcul de la matrice de covariance
26vaudou=zeros(360,360);
27for a=1:360;
28    for b=1:360;
29      clear e d covaria;
30      e=olr(b,:);
31      d=olr(a,:);
32      covaria=cov(e,d);
33      vaudou(a,b)=covaria(2,1);
34    end;
35end;
36
37% on diagonalise la matrice de covariance
38[C,L]=eig(vaudou);
39
40delete('eof_1030_ircaam.mat');
41save('eof_1030_ircaam.mat','C','L','olr')
Note: See TracBrowser for help on using the repository browser.