source: trunk/src/paper01/fig6/statistics.pro @ 182

Last change on this file since 182 was 182, checked in by pinsard, 12 years ago

fix some svn propset

  • Property svn:keywords set to Id URL
File size: 1.6 KB
Line 
1;+
2; .. _statistics.pro:
3;
4; ==============
5; statistics.pro
6; ==============
7;
8; DESCRIPTION
9; ===========
10;
11; SEE ALSO
12; ========
13;
14; :ref:`project_profile.sh`
15;
16; :ref:`as_validation_net_1994_95_v10.pro`
17; :ref:`coare_validation_net_1992_93_all_v10.pro`
18; :ref:`stratus_validation_net_2001_2002_all_v10.pro`
19; :ref:`subdctn_cs_validation_net_1991_93_all_v10.pro`
20; :ref:`subdctn_ses_validation_net_1991_93_all_v10.pro`
21; :ref:`subdctn_sws_validation_net_1991_93_all_v10.pro`
22; :ref:`whots_validation_net_2004_2007_all_v10.pro`
23; :ref:`icoads_q2m_stats_paper.pro`
24; :ref:`icoads_sst_stats_paper.pro`
25; :ref:`icoads_t2m_stats_paper.pro`
26; :ref:`icoads_ws_stats_paper.pro`
27;
28; EXAMPLES
29; ========
30;
31; ::
32;
33;  moor = ++
34;  ++
35;  statistics, moor, erai, cor, bias, std, rmsd
36;
37; TODO
38; ====
39;
40; coding rules
41;
42; complete description
43;
44; complete example
45;
46; EVOLUTIONS
47; ==========
48;
49; $Id$
50;
51; $URL$
52;
53; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
54;
55;   * minimal header
56;
57;-
58;
59pro statistics, moor, erai, $
60   cor, bias, std, rmsd
61@cm_project
62; mean1= mean of mooring variable      std1=std of mooring variable
63; mean2= mean of erai variable         std2=std of erai variable
64x=moor
65y=erai
66ind1=where(finite(x,/nan))
67ind2=where(finite(y,/nan))
68ind=inter(ind1,ind2)
69if (ind ne -1 ) then begin
70   x(ind)=!Values.f_nan
71   y(ind)=!Values.f_nan
72endif
73;
74ind=where(finite(x))
75x=x(ind)
76y=y(ind)
77;
78nn=n_elements(ind)
79;
80cor=correlate(x,y)
81xxx=moment(x)
82mean1=xxx(0)
83std1=sqrt(xxx(1))
84xxx=moment(y)
85mean2=xxx(0)
86std2=sqrt(xxx(1))
87bias=mean2-mean1
88std=std2/std1
89rmsd=sqrt(total((x-y)*(x-y))/n_elements(x))
90;
91end
Note: See TracBrowser for help on using the repository browser.