Last change
on this file since 1787 was
1454,
checked in by slebonnois, 9 years ago
|
SL: corrections in Titan and Venus tools
|
File size:
1.2 KB
|
Line | |
---|
1 | SUBROUTINE moytim(iim,jjp1,nl,nt,indefini,x,xmean) |
---|
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,nt |
---|
19 | real indefini |
---|
20 | REAL x(iim,jjp1,nl,nt) |
---|
21 | REAL xmean(iim,jjp1,nl) |
---|
22 | |
---|
23 | c Local: |
---|
24 | c ------ |
---|
25 | |
---|
26 | iNTEGER i,j,l,t , n |
---|
27 | |
---|
28 | c------------------------------------------------------------------------ |
---|
29 | do l=1,nl |
---|
30 | do j=1,jjp1 |
---|
31 | do i=1,iim |
---|
32 | xmean(i,j,l)=0. |
---|
33 | n = 0 |
---|
34 | do t=1,nt |
---|
35 | if (x(i,j,l,t).ne.indefini) then |
---|
36 | xmean(i,j,l) = xmean(i,j,l) + x(i,j,l,t) |
---|
37 | n = n+1 |
---|
38 | end if |
---|
39 | end do |
---|
40 | if (n.ne.0) then |
---|
41 | xmean(i,j,l) = xmean(i,j,l)/float(n) |
---|
42 | else |
---|
43 | xmean(i,j,l) = indefini |
---|
44 | end if |
---|
45 | end do |
---|
46 | end do |
---|
47 | end do |
---|
48 | |
---|
49 | RETURN |
---|
50 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.