@@ -33,7 +33,13 @@ module rmTinyCatchParaMod
3333
3434 logical :: preserve_soiltype = .false.
3535
36- real * 8 , parameter :: Target_mean_land_elev = 614.649D0 ! *8 not used, but keep to avoid non-0-diff changes, reichle, 20 Dec 2024
36+ ! Bugfix for Target_mean_land_elev:
37+ ! Previously, the hardcoded value 614.649 m was used as the target mean land elevation.
38+ ! This was incorrect because it did not account for the proper cosine-lat-weighted mean over land.
39+ ! The correct value, 656.83 m, is derived from NCAR GMTED TOPO 30arcsec dataset.
40+ ! This ensures that land elevation adjustment is based on the correct reference mean land elevation.
41+
42+ real * 8 , parameter :: Target_mean_land_elev = 656.83D0 ! cosine-lat-weighted mean land elev from NCAR GMTED TOPO 30arcsec
3743
3844 private
3945
@@ -108,7 +114,7 @@ SUBROUTINE init_bcs_config(LBCSV)
108114 character (* ), intent (in ) :: LBCSV ! land BCs version
109115
110116 select case (trim (LBCSV))
111-
117+
112118 case (" F25" )
113119 LAIBCS = ' GSWP2'
114120 SOILBCS = ' NGDC'
@@ -118,7 +124,7 @@ SUBROUTINE init_bcs_config(LBCSV)
118124 GNU = 2.17
119125 use_PEATMAP = .false.
120126 jpl_height = .false.
121-
127+
122128 case (" GM4" , " ICA" )
123129 LAIBCS = ' GSWP2'
124130 SOILBCS = ' NGDC'
@@ -139,7 +145,7 @@ SUBROUTINE init_bcs_config(LBCSV)
139145 use_PEATMAP = .false.
140146 jpl_height = .false.
141147
142- case (" NL4" )
148+ case (" NL4" )
143149 LAIBCS = ' MODGEO'
144150 SOILBCS = ' HWSD'
145151 MODALB = ' MODIS2'
@@ -149,7 +155,7 @@ SUBROUTINE init_bcs_config(LBCSV)
149155 use_PEATMAP = .false.
150156 jpl_height = .true.
151157
152- case (" NL5" )
158+ case (" NL5" )
153159 LAIBCS = ' MODGEO'
154160 SOILBCS = ' HWSD'
155161 MODALB = ' MODIS2'
@@ -159,7 +165,7 @@ SUBROUTINE init_bcs_config(LBCSV)
159165 use_PEATMAP = .true.
160166 jpl_height = .true.
161167
162- case (" v06" )
168+ case (" v06" )
163169 LAIBCS = ' MODGEO'
164170 SOILBCS = ' HWSD'
165171 MODALB = ' MODIS2'
@@ -169,7 +175,7 @@ SUBROUTINE init_bcs_config(LBCSV)
169175 use_PEATMAP = .true.
170176 jpl_height = .true.
171177
172- case (" v07" )
178+ case (" v07" )
173179 LAIBCS = ' MODGEO'
174180 SOILBCS = ' HWSD'
175181 MODALB = ' MODIS2'
@@ -178,8 +184,8 @@ SUBROUTINE init_bcs_config(LBCSV)
178184 GNU = 1.0
179185 use_PEATMAP = .true.
180186 jpl_height = .false.
181-
182- case (" v08" )
187+
188+ case (" v08" )
183189 LAIBCS = ' MODGEO'
184190 SOILBCS = ' HWSD'
185191 MODALB = ' MODIS2'
@@ -189,7 +195,7 @@ SUBROUTINE init_bcs_config(LBCSV)
189195 use_PEATMAP = .false.
190196 jpl_height = .false.
191197
192- case (" v09" )
198+ case (" v09" )
193199 LAIBCS = ' MODGEO'
194200 SOILBCS = ' HWSD'
195201 MODALB = ' MODIS2'
@@ -199,7 +205,7 @@ SUBROUTINE init_bcs_config(LBCSV)
199205 use_PEATMAP = .true.
200206 jpl_height = .false.
201207
202- case (" v10" )
208+ case (" v10" )
203209 LAIBCS = ' MODGEO'
204210 SOILBCS = ' HWSD'
205211 MODALB = ' MODIS2'
@@ -209,7 +215,7 @@ SUBROUTINE init_bcs_config(LBCSV)
209215 use_PEATMAP = .true.
210216 jpl_height = .false.
211217
212- case (" v11" )
218+ case (" v11" )
213219 LAIBCS = ' MODGEO'
214220 SOILBCS = ' HWSD'
215221 MODALB = ' MODIS2'
@@ -219,7 +225,13 @@ SUBROUTINE init_bcs_config(LBCSV)
219225 use_PEATMAP = .true.
220226 jpl_height = .true.
221227
222- case (" v12" )
228+ case (" v12" ," v13" )
229+
230+ ! "v12" and "v13" are identical except for:
231+ ! - topography used for the atm (processed outside of make_bcs)
232+ ! - bug fix for land elevation in catchment.def file
233+ ! - generation of nc4-formatted tile file
234+
223235 LAIBCS = ' MODGEO'
224236 SOILBCS = ' HWSD_b'
225237 MODALB = ' MODIS2'
@@ -230,16 +242,16 @@ SUBROUTINE init_bcs_config(LBCSV)
230242 jpl_height = .true.
231243
232244 case default
233-
245+
234246 print * ,' init_bcs_config(): unknown land boundary conditions version (LBCSV)'
235247 stop
236-
248+
237249 end select
238-
250+
239251 END SUBROUTINE init_bcs_config
240-
252+
241253 ! --------------------------------------------------------------------------------------------
242-
254+
243255 SUBROUTINE Get_MidTime ( &
244256 yr1 ,mn1 ,dy1 ,yr2 ,mn2 ,dy2 , &
245257 MIDT )
0 commit comments