29 |
#include "fizhi_chemistry_coms.h" |
#include "fizhi_chemistry_coms.h" |
30 |
#include "fizhi_earth_coms.h" |
#include "fizhi_earth_coms.h" |
31 |
#include "fizhi_land_coms.h" |
#include "fizhi_land_coms.h" |
32 |
|
#include "fizhi_ocean_coms.h" |
33 |
#include "chronos.h" |
#include "chronos.h" |
34 |
#include "gridalt_mapping.h" |
#include "gridalt_mapping.h" |
35 |
#include "GRID.h" |
#include "GRID.h" |
41 |
integer nymdb,nhmsb |
integer nymdb,nhmsb |
42 |
character*40 vegdata |
character*40 vegdata |
43 |
_RL pressure(Nrphys) |
_RL pressure(Nrphys) |
44 |
real lats(nSx,nSy,sNx,sNy), lons(nSx,nSy,sNx,sNy) |
_RL lats(sNx,sNy,Nsx,Nsy), lons(sNx,sNy,Nsx,Nsy) |
45 |
|
_RL fracland(sNx,sNy,Nsx,Nsy) |
46 |
|
|
47 |
im1 = 1-OLx |
idim1 = 1-OLx |
48 |
im2 = sNx+OLx |
idim2 = sNx+OLx |
49 |
jm1 = 1-OLy |
jdim1 = 1-OLy |
50 |
jm2 = sNy+OLy |
jdim2 = sNy+OLy |
51 |
idim1 = 1 |
im1 = 1 |
52 |
idim2 = sNx |
im2 = sNx |
53 |
jdim1 = 1 |
jm1 = 1 |
54 |
jdim2 = sNy |
jm2 = sNy |
55 |
nymdb = nymd0 |
nymdb = nymd0 |
56 |
nhmsb = nhms0 |
nhmsb = nhms0 |
57 |
|
|
59 |
|
|
60 |
do bj = myByLo(myThid), myByHi(myThid) |
do bj = myByLo(myThid), myByHi(myThid) |
61 |
do bi = myBxLo(myThid), myBxHi(myThid) |
do bi = myBxLo(myThid), myBxHi(myThid) |
62 |
do j = 1,nSy |
do j = jm1,jm2 |
63 |
do i = 1,nSx |
do i = im1,im2 |
64 |
lons(i,j,bi,bj) = xC(i,j,bi,bj) |
lons(i,j,bi,bj) = xC(i,j,bi,bj) |
65 |
lats(i,j,bi,bj) = yC(i,j,bi,bj) |
lats(i,j,bi,bj) = yC(i,j,bi,bj) |
66 |
enddo |
enddo |
71 |
. nSx*nPx,nSy*nPy,maxtyp,nchp,lons,lats, |
. nSx*nPx,nSy*nPy,maxtyp,nchp,lons,lats, |
72 |
. surftype,tilefrac,igrd,ityp,chfr,chlt,chlon) |
. surftype,tilefrac,igrd,ityp,chfr,chlt,chlon) |
73 |
|
|
74 |
|
C And now fill the earth export landtype |
75 |
|
do bj = myByLo(myThid), myByHi(myThid) |
76 |
|
do bi = myBxLo(myThid), myBxHi(myThid) |
77 |
|
call get_landfrac(im2,jm2,Nsx,Nsy,bi,bj,maxtyp, |
78 |
|
. surftype,tilefrac,fracland) |
79 |
|
do j=jm1,jm2 |
80 |
|
do i=im1,im2 |
81 |
|
landtype(i,j,bi,bj) = surftype(i,j,1,bi,bj) |
82 |
|
if(fracland(i,j).ge.0.3.and.surftype(i,j,1,bi,bj).ge.100) |
83 |
|
. landtype(i,j,bi,bj) = surftype(i,j,2,bi,bj) |
84 |
|
if(sice(i,j,bi,bj).ne.0.0)landtype(i,j,bi,bj) = 101 |
85 |
|
enddo |
86 |
|
enddo |
87 |
|
enddo |
88 |
|
enddo |
89 |
|
|
90 |
C Compute pressure profile to get methane and n2o values (bottom-up) |
C Compute pressure profile to get methane and n2o values (bottom-up) |
91 |
|
|
92 |
pressure(1)=1000. |
pressure(1)=1000. |