64 CHARACTER(LEN=*),
DIMENSION(:),
INTENT(IN) :: HSELECT
68 CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
69 LOGICAL,
INTENT(IN) :: OWRITE
75 CHARACTER(LEN=12) :: YRECFM
76 CHARACTER(LEN=100):: YCOMMENT
79 REAL(KIND=JPRB) :: ZHOOK_HANDLE
88 IF (
lhook)
CALL dr_hook(
'WRITESURF_SSO_CANOPY_N',0,zhook_handle)
90 ycomment=
'flag to use canopy levels' 91 CALL write_surf(hselect,hprogram,yrecfm,owrite,iresp,hcomment=ycomment)
93 IF (.NOT. owrite .AND.
lhook)
CALL dr_hook(
'WRITESURF_SSO_CANOPY_N',1,zhook_handle
94 IF (.NOT. owrite)
RETURN 99 ycomment=
'number of canopy levels' 100 CALL write_surf(hselect,hprogram,yrecfm,sb%NLVL,iresp,hcomment=ycomment
105 WRITE(yrecfm,
'(A9,I2.2,A1)')
'SSO_CAN_Z',jlayer,
' ' 106 ycomment=
'altitudes of canopy levels (m)' 107 CALL write_surf(hselect,hprogram,yrecfm,sb%XZ(:,jlayer),iresp,hcomment
113 WRITE(yrecfm,
'(A9,I2.2,A1)')
'SSO_CAN_U',jlayer,
' ' 114 ycomment=
'wind at canopy levels (m/s)' 115 CALL write_surf(hselect,hprogram,yrecfm,sb%XU(:,jlayer),iresp,hcomment
121 WRITE(yrecfm,
'(A9,I2.2,A1)')
'SSO_CAN_E',jlayer,
' ' 122 ycomment=
'Tke at canopy levels (m2/s2)' 123 CALL write_surf(hselect,hprogram,yrecfm,sb%XTKE(:,jlayer),iresp,hcomment
126 IF (
lhook)
CALL dr_hook(
'WRITESURF_SSO_CANOPY_N',1,zhook_handle)
subroutine writesurf_sso_canopy_n(HSELECT, SB, HPROGRAM, OWRITE)