47 |
|
|
48 |
C == end of interface == |
C == end of interface == |
49 |
|
|
50 |
|
_BEGIN_MASTER( myThid ) |
51 |
|
|
52 |
c solar constant |
c solar constant |
53 |
c -------------- |
c -------------- |
54 |
SOLC = 1368. _d 0 |
SOLC = 1368. _d 0 |
55 |
|
|
|
DO bj = myByLo(myThid),myByHi(myThid) |
|
|
DO bi = myBxLo(myThid),myBxHi(myThid) |
|
56 |
DO iLat=1,181 |
DO iLat=1,181 |
57 |
DO iTyear=1,366 |
DO iTyear=1,366 |
58 |
|
|
113 |
c compute weighted average of albedo |
c compute weighted average of albedo |
114 |
c ---------------------------------- |
c ---------------------------------- |
115 |
if ( 0.5 _d 0 * tmpINT2 .GT. tmpINT1) then |
if ( 0.5 _d 0 * tmpINT2 .GT. tmpINT1) then |
116 |
zen_albedo_table(iTyear,iLat,bi,bj)=tmpINT1/tmpINT2 |
zen_albedo_table(iTyear,iLat)=tmpINT1/tmpINT2 |
117 |
else |
else |
118 |
zen_albedo_table(iTyear,iLat,bi,bj)=0.5 _d 0 |
zen_albedo_table(iTyear,iLat)=0.5 _d 0 |
119 |
endif |
endif |
120 |
|
|
121 |
ENDDO |
ENDDO |
122 |
ENDDO |
ENDDO |
|
ENDDO |
|
|
ENDDO |
|
123 |
|
|
124 |
|
_END_MASTER( myThid ) |
125 |
|
_BARRIER |
126 |
|
|
127 |
|
|
128 |
c determine interpolation coefficient for each grid point |
c determine interpolation coefficient for each grid point |
132 |
DO i = 1,sNx |
DO i = 1,sNx |
133 |
LLLAT=yC(i,j,bi,bj)+91. _d 0 |
LLLAT=yC(i,j,bi,bj)+91. _d 0 |
134 |
c ensure that it is in valid range |
c ensure that it is in valid range |
135 |
LLLAT=max(LLLAT, 1._d 0) |
LLLAT=max(LLLAT, 1. _d 0) |
136 |
LLLAT=min(LLLAT, 181._d 0) |
LLLAT=min(LLLAT, 181. _d 0) |
137 |
c store |
c store |
138 |
zen_albedo_pointer(i,j,bi,bj)=LLLAT |
zen_albedo_pointer(i,j,bi,bj)=LLLAT |
139 |
ENDDO |
ENDDO |