Last change
on this file since 1242 was
816,
checked in by slebonnois, 12 years ago
|
SL: tools for postprocessing (Veznus and Titan); see DOC/documentation/vt-tools.pdf
|
File size:
1.1 KB
|
Line | |
---|
1 | SUBROUTINE moyzon(iim,jjp1,nl,indefini,x,xbar) |
---|
2 | c======================================================================= |
---|
3 | c |
---|
4 | c |
---|
5 | c Subject: |
---|
6 | c ------ |
---|
7 | c Calcul de la moyenne zonale de la variable au point scalaire x |
---|
8 | c |
---|
9 | c======================================================================= |
---|
10 | IMPLICIT NONE |
---|
11 | c----------------------------------------------------------------------- |
---|
12 | c Declararations: |
---|
13 | c --------------- |
---|
14 | |
---|
15 | c Arguments: |
---|
16 | c ---------- |
---|
17 | |
---|
18 | INTEGER iim,jjp1,nl |
---|
19 | real indefini |
---|
20 | REAL x(iim+1,jjp1,nl) |
---|
21 | REAL xbar(jjp1,nl) |
---|
22 | |
---|
23 | c Local: |
---|
24 | c ------ |
---|
25 | |
---|
26 | iNTEGER i,j,l , n |
---|
27 | |
---|
28 | c------------------------------------------------------------------------ |
---|
29 | do l=1,nl |
---|
30 | do j=1,jjp1 |
---|
31 | xbar(j,l)=0. |
---|
32 | n = 0 |
---|
33 | do i=1,iim |
---|
34 | if (x(i,j,l).lt.indefini) then |
---|
35 | xbar(j,l) = xbar(j,l) + x(i,j,l) |
---|
36 | n = n+1 |
---|
37 | end if |
---|
38 | end do |
---|
39 | if (n.ne.0) then |
---|
40 | xbar(j,l) = xbar(j,l)/float(n) |
---|
41 | else |
---|
42 | xbar(j,l) = indefini |
---|
43 | end if |
---|
44 | end do |
---|
45 | end do |
---|
46 | |
---|
47 | RETURN |
---|
48 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.