@@ -52,6 +52,10 @@ module LISlsmTEFF_obsMod
52
52
character * 20 :: data_category
53
53
character * 20 :: area_of_data
54
54
character * 20 :: write_interval
55
+ ! EMK
56
+ integer :: num_ens
57
+ integer :: num_tiles
58
+ integer :: ntiles_pergrid
55
59
!- -------------------------------------------------------
56
60
! interpolation/upscaling weights
57
61
!- -------------------------------------------------------
@@ -127,6 +131,38 @@ subroutine LISlsmTEFF_obsInit()
127
131
label= " LIS soil temperature output directory:" ,rc= rc)
128
132
call LDT_verify(rc,' LIS soil temperature output directory: not defined' )
129
133
134
+ ! EMK Add LIS ensemble information
135
+ call ESMF_ConfigGetAttribute(LDT_config, lsmteffobs% num_ens, &
136
+ label= " LIS ensemble size:" , rc= rc)
137
+ call LDT_verify(rc,' LIS ensemble size: not defined' )
138
+ if (lsmteffobs% num_ens < 1 ) then
139
+ write (LDT_logunit,* )' [ERR] LIS ensemble size must be at least 1!'
140
+ write (LDT_logunit,* )' [ERR] Read in ' , lsmteffobs% num_ens
141
+ call LDT_endrun()
142
+ end if
143
+
144
+ call ESMF_ConfigGetAttribute(LDT_config, lsmteffobs% num_tiles, &
145
+ label= " LIS total number of tiles (including ensembles):" , rc= rc)
146
+ call LDT_verify(rc,' LIS total number of tiles (including ensembles): ' // &
147
+ ' not defined' )
148
+ if (lsmteffobs% num_tiles < 1 ) then
149
+ write (LDT_logunit,* ) &
150
+ ' [ERR] LIS total number of tiles (including ensembles) must be' &
151
+ // ' at least 1!'
152
+ write (LDT_logunit,* )' [ERR] Read in ' , lsmteffobs% num_tiles
153
+ call LDT_endrun()
154
+ end if
155
+
156
+ call ESMF_ConfigGetAttribute(LDT_config, lsmteffobs% ntiles_pergrid, &
157
+ label= " LIS number of tiles per grid point:" , rc= rc)
158
+ call LDT_verify(rc,' LIS number of tiles per grid point: not defined' )
159
+ if (lsmteffobs% num_tiles < 1 ) then
160
+ write (LDT_logunit,* ) &
161
+ ' [ERR] LIS number of tiles per grid point must be at least 1!'
162
+ write (LDT_logunit,* )' [ERR] Read in ' , lsmteffobs% ntiles_pergrid
163
+ call LDT_endrun()
164
+ end if
165
+
130
166
! WMO-convention specific identifiers
131
167
if ( lsmteffobs% wstyle == " WMO convention" ) then
132
168
call ESMF_ConfigGetAttribute(LDT_config,lsmteffobs% security_class, &
0 commit comments