49 USE modi_init_io_surf_n
51 USE modi_write_pgd_sea_n
52 USE modi_write_pgd_inland_water_n
53 USE modi_write_pgd_nature_n
54 USE modi_write_pgd_town_n
55 USE modi_end_io_surf_n
59 USE modi_writesurf_cover_n
60 USE modi_writesurf_sso_n
61 USE modi_writesurf_dummy_n
62 USE modi_writesurf_snap_n
63 USE modi_writesurf_ch_emis_n
66 USE modi_write_ecoclimap2_data
68 USE yomhook
,ONLY : lhook, dr_hook
69 USE parkind1
,ONLY : jprb
79 CHARACTER(LEN=6),
INTENT(IN) :: hprogram
84 CHARACTER(LEN=3) :: ywrite
85 CHARACTER(LEN=100) :: ycomment
87 REAL(KIND=JPRB) :: zhook_handle
90 IF (lhook) CALL dr_hook(
'WRITE_PGD_SURF_ATM_N',0,zhook_handle)
98 .false.,.true.,.false.,.false.)
107 hprogram,
'FULL ',
'SURF ',
'WRITE')
112 hprogram,
'VERSION',nversion,iresp,ycomment)
114 hprogram,
'BUG ',nbugfix ,iresp,ycomment)
116 hprogram,
'STORAGETYPE',ywrite,iresp,ycomment)
119 hprogram,
'SEA ',ysc%U%CSEA ,iresp,ycomment)
121 hprogram,
'WATER ',ysc%U%CWATER ,iresp,ycomment)
123 hprogram,
'NATURE',ysc%U%CNATURE,iresp,ycomment)
125 hprogram,
'TOWN ',ysc%U%CTOWN ,iresp,ycomment)
128 hprogram,
'DIM_FULL ',ysc%U%NDIM_FULL, iresp,hcomment=ycomment)
130 hprogram,
'DIM_SEA ',ysc%U%NDIM_SEA, iresp,hcomment=ycomment)
132 hprogram,
'DIM_NATURE',ysc%U%NDIM_NATURE,iresp,hcomment=ycomment)
134 hprogram,
'DIM_WATER ',ysc%U%NDIM_WATER, iresp,hcomment=ycomment)
136 hprogram,
'DIM_TOWN ',ysc%U%NDIM_TOWN, iresp,hcomment=ycomment)
138 hprogram,
'ECOCLIMAP ',ysc%U%LECOCLIMAP ,iresp,ycomment)
140 hprogram,
'WATER_TO_NAT',ysc%U%LWATER_TO_NATURE,iresp,ycomment)
142 hprogram,
'TOWN_TO_ROCK',ysc%U%LTOWN_TO_ROCK,iresp,ycomment)
144 hprogram,
'GARDEN',ysc%U%LGARDEN,iresp,ycomment)
145 IF (hprogram.NE.
'BINARY' .AND. hprogram.NE.
'TEXTE ')
THEN
151 hprogram,ysc%UG%CGRID,ysc%UG%XGRID_PAR,ysc%UG%XLAT,ysc%UG%XLON,&
152 ysc%UG%XMESH_SIZE,iresp,ysc%USS%XZ0EFFJPDIR)
166 hprogram,
'CH_EMIS',ysc%CHU%LCH_EMIS,iresp,hcomment=ycomment)
168 IF (ysc%CHU%LCH_EMIS)
THEN
169 ycomment=
'CH_EMIS_OPT'
171 hprogram,
'CH_EMIS_OPT',ysc%CHU%CCH_EMIS,iresp,hcomment=ycomment)
174 IF (ysc%CHU%LCH_EMIS)
THEN
175 IF (ysc%CHU%CCH_EMIS==
'AGGR')
THEN
179 ELSE IF (ysc%CHU%CCH_EMIS==
'SNAP')
THEN
195 ysc%SM%DTS, ysc%SM%SG, ysc%SM%S, &
203 ysc%WM%WG, ysc%WM%W, ysc%FM%FG, ysc%FM%F, &
211 ysc%IM%DTI, ysc%DTZ, ysc%IM%IG, ysc%IM%I, &
219 ysc%TM, ysc%GDM, ysc%GRM, &
223 IF (lhook) CALL dr_hook(
'WRITE_PGD_SURF_ATM_N',1,zhook_handle)
subroutine init_io_surf_n(DTCO, DGU, U, HPROGRAM, HMASK, HSCHEME, HACTION)
subroutine write_pgd_sea_n(DTCO, DGU, U, DTS, SG, S, HPROGRAM)
subroutine writesurf_dummy_n(DGU, U, DUU, HPROGRAM)
subroutine write_grid(DGU, U, HPROGRAM, HGRID, PGRID_PAR, PLAT, PLON, PMESH_SIZE, KRESP, PDIR, HDIR)
subroutine write_ecoclimap2_data(DGU, U, HPROGRAM)
subroutine write_pgd_surf_atm_n(YSC, HPROGRAM)
subroutine writesurf_cover_n(DGU, U, HPROGRAM)
subroutine writesurf_ch_emis_n(DGU, U, CHE, HPROGRAM)
subroutine write_pgd_nature_n(DTCO, DGU, U, DTI, DTZ, IG, I, HPROGRAM)
subroutine flag_update(DGI, DGU, ONOWRITE_CANOPY, OPGD, OPROVAR_TO_DIAG, OSELECT)
subroutine writesurf_sso_n(DGU, U, USS, HPROGRAM)
subroutine writesurf_snap_n(DGU, U, CHN, HPROGRAM)
subroutine end_io_surf_n(HPROGRAM)
subroutine write_pgd_inland_water_n(DTCO, DGU, U, WG, W, FG, F, HPROGRAM)
subroutine write_pgd_town_n(DTCO, DGU, U, TM, GDM, GRM, HPROGRAM)