forked from NordicESMhub/OsloCTM3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmn_met.f90
129 lines (104 loc) · 4.81 KB
/
cmn_met.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
!//=========================================================================
!// Oslo CTM3
!//=========================================================================
!// Based on UCI CTM core p-7.1 (1/2013).
!//
!// Ole Amund Sovde, April 2015
!//=========================================================================
!// Meteorological variables and parameters.
!//=========================================================================
module CMN_MET
!//-----------------------------------------------------------------------
!// MODULE: CMN_MET
!//
!// DESCRIPTION: Contains meteorological variables for CTM.
!//-----------------------------------------------------------------------
use cmn_precision, only: r8
use cmn_size, only: IPAR, JPAR, LPAR, NPAR, IPARW, JPARW, LPARW, &
LWEPAR, LWDPAR, LDPAR, IDBLK, JDBLK, MPBLK
!//-----------------------------------------------------------------------
implicit none
!//-----------------------------------------------------------------------
public
save
!//-----------------------------------------------------------------------
!// Met-file names
character(len=80) :: MET_ROOT !// Root where metdata resides
character(len=80) :: MPATH1, MPATH2, MFILE3, PPFDFILE
character(len=120):: PPFDPATH
!// Metdata type (e.g. ECMWF_IFS/ECMWF_oIFS/ECMWF_oIFSnc4),
!// cycle and revision number
character(len=16) :: metTYPE
integer :: metCYCLE
integer :: metREVNR
!// Meteorological year
integer :: MYEAR
!// Resolution as strings
character(len=3) :: VRES, VRESW !// Vertical resolution
character(len=4) :: HnativeRES !// Horizontal resolution metdata
!// Winds(U & V), water(Q), temperature(T), surf press(P)
real(r8), dimension(IPAR,JPAR,LPAR) :: U, V, Q, T
!//real(r8), dimension(LPAR,IPAR,JPAR) :: Q_LIJ, T_LIJ
real(r8), dimension(IPAR,JPAR) :: P, MSLP
!// Annual mean surface pressure (hPa)
real(r8), dimension(IPAR,JPAR) :: PMEAN
real(r8), dimension(IPARW,JPARW) :: PMEANW
!// Convective fluxes & cloud properties
real(r8), dimension(IPAR,JPAR,LWEPAR) :: &
CWETN, & !// Convective non-entraining updraft flux [kg/s] (not used)
CWETE, & !// Convective updraft flux [kg/s] (also covers non-entr.)
CENTU, & !// Convective entrainment into updrafts [kg/s]
PRECLS, & !// Precipitation, large scale [kg/s]
PRECCNV, & !// Precipitation, convective [kg/s]
CLDFR, & !// Cloud fraction [0,1]
CLDLWC, &
CLDIWC
!// Convective fluxes & cloud properties
!real(r8), dimension(LWEPAR,IPAR,JPAR) :: &
! PRECLS_LIJ, & !// Precipitation, large scale [kg/s]
! PRECCNV_LIJ, & !// Precipitation, convective [kg/s]
!// Downdrafts
real(r8), dimension(IPAR,JPAR,LWDPAR) :: &
CWETD, & !// Convective downdraft flux [kg/s]
CENTD !// Convective entrainment into downdrafts [kg/s]
!// 3D fields set up for column treatment (LPAR,IPAR,JPAR)
real(r8), dimension(LPAR,IPAR,JPAR) :: &
PVU, & !// Potential vorticity
UMS, & !// Winds [m/s] (used in physics routines, not in transport)
VMS !// Winds [m/s] (used in physics routines, not in transport)
!// Surface meteorology
real(r8), dimension(IPAR,JPAR) :: &
SA, & !// Surface albedo [0,1] (forecast albedo)
SLH, &
SHF, &
SMF, &
SFT, &
SFQ, &
SFU, &
SFV, &
!SPRECLS, & !// Surface value of PRECLS_LIJ [kg/s]
BLH, & !// Boundary layer height [m], see LBLH for model level.
BLH_CUR, & !// Boundary layer height [m] for current time step
BLH_NEXT, & !// Boundary layer height [m] for next time step
USTR, &
CI, & !// Sea ice cover [0,1]
SD, & !// Snow depth [m water equivalent]
PhotActRad, & !// Photosynthetically active radiation [W/m2]
PPFD, & !// Photosynthetically active radiation - deaccumulated [W/m2]
SWVL1, & !// Soil volumetric water level 1 0-7 cm [m3/m3]
SWVL3, & !// Soil volumetric water level 3 28-100 cm [m3/m3]
STL1 !// Soil temperature level 1 [K]
integer, dimension(IPAR,JPAR) :: &
LBLH !// Uppermost model level for PBL
real(r8), dimension(IDBLK,JDBLK,MPBLK) :: &
SMLT, & !// Snow melt [m water equivalent per seconds]
ES, & !// Snow evaporation [m water equivalent per seconds]
SNFL, & !// Snow fall [m water equivalent per seconds]
PBL_KEDDY, & !// KEDDY (KH) for PBL
MO_LENGTH, & !// Monin-Obukhov (MO_LENGTH) from PBL
PRANDTLL1 !// Prandtl for surface layer
!// Altitudes
real(r8), dimension(LPAR+1,IPAR,JPAR) :: ZOFLE
!//-----------------------------------------------------------------------
end module CMN_MET
!//=========================================================================