3 |
|
|
4 |
#include "MONITOR_OPTIONS.h" |
#include "MONITOR_OPTIONS.h" |
5 |
|
|
6 |
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
|
CBOP |
8 |
|
C !ROUTINE: MON_STATS_LATBND_RL |
9 |
|
|
10 |
|
C !INTERFACE: |
11 |
SUBROUTINE MON_STATS_LATBND_RL( |
SUBROUTINE MON_STATS_LATBND_RL( |
12 |
I myNr, mskNr, kLoc, nSepBnd, ySepBnd, |
I myNr, mskNr, kLoc, nSepBnd, ySepBnd, |
13 |
I arr, arrMask, arrhFac, arrArea, arrY, arrDr, |
I arr, arrMask, arrhFac, arrArea, arrY, arrDr, |
14 |
O theMin,theMax,theMean,theVar,theVol, |
O theMin,theMax,theMean,theVar,theVol, |
15 |
I myThid ) |
I myThid ) |
|
C *==========================================================* |
|
|
C | SUBROUTINE MON_STATS_LATBND_RL |
|
|
C | o Calculate bare statistics of global array "_RL arr" |
|
|
C | on each Latitude band (given by ySepBnd) |
|
|
C *==========================================================* |
|
|
C *==========================================================* |
|
|
IMPLICIT NONE |
|
16 |
|
|
17 |
C === Global data === |
C !DESCRIPTION: |
18 |
|
C Calculate bare statistics of global array "\_RL arr" on each |
19 |
|
C Latitude band (given by \texttt{ySepBnd}). |
20 |
|
|
21 |
|
C !USES: |
22 |
|
IMPLICIT NONE |
23 |
#include "SIZE.h" |
#include "SIZE.h" |
24 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
25 |
|
INTEGER NLATBND |
26 |
|
EXTERNAL NLATBND |
27 |
|
|
28 |
C === Routine arguments === |
C !INPUT PARAMETERS: |
29 |
C nSepBnd :: Number of latitude bands |
C nSepBnd :: Number of latitude bands |
30 |
C ySepBnd :: Southern latitude egde (from 2 to nSepBnd, 1 is not used) |
C ySepBnd :: Southern latitude egde (from 2 to nSepBnd, 1 is not used) |
31 |
INTEGER myNr, mskNr, kLoc |
INTEGER myNr, mskNr, kLoc |
43 |
_RL theVar(nSepBnd) |
_RL theVar(nSepBnd) |
44 |
_RL theVol(nSepBnd) |
_RL theVol(nSepBnd) |
45 |
INTEGER myThid |
INTEGER myThid |
46 |
|
CEOP |
47 |
|
|
48 |
C === Functions ==== |
C !LOCAL VARIABLES: |
|
INTEGER NLATBND |
|
|
EXTERNAL NLATBND |
|
|
|
|
|
C === Local variables ==== |
|
49 |
INTEGER bi,bj,i,j,k,n |
INTEGER bi,bj,i,j,k,n |
50 |
INTEGER km, k1, k2 |
INTEGER km, k1, k2 |
51 |
INTEGER numPnts |
INTEGER numPnts |
122 |
RETURN |
RETURN |
123 |
END |
END |
124 |
|
|
125 |
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
126 |
CBOP |
CBOP |
127 |
C !ROUTINE: NLATBND |
C !ROUTINE: NLATBND |
128 |
|
|
131 |
IMPLICIT NONE |
IMPLICIT NONE |
132 |
|
|
133 |
C !DESCRIPTION: |
C !DESCRIPTION: |
134 |
C *==========================================================* |
C Find the latidude band of yLoc in nSep strip |
135 |
C | FUNCTION NLATBND |
|
|
C | o Find the latidude band of yLoc in nSep strip |
|
|
C *==========================================================* |
|
|
C |
|
136 |
C !INPUT PARAMETERS: |
C !INPUT PARAMETERS: |
137 |
C nBnd :: Number of latitude bands |
C nBnd :: Number of latitude bands |
138 |
C yBnd :: latitude of southern boundary (for each lat. band) |
C yBnd :: latitude of southern boundary (for each lat. band) |
140 |
INTEGER nBnd |
INTEGER nBnd |
141 |
_RS yBnd(nBnd) |
_RS yBnd(nBnd) |
142 |
_RS yLoc |
_RS yLoc |
143 |
|
CEOP |
144 |
|
|
145 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
146 |
INTEGER n |
INTEGER n |
152 |
|
|
153 |
RETURN |
RETURN |
154 |
END |
END |
155 |
|
|
156 |
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |