@@ -81,14 +81,15 @@ def main():
8181 lfilter_oro = config .get ('lfilter_oro' , False )
8282 lurban = config .get ('lurban' , False )
8383 lradtopo = config .get ('lradtopo' , False )
84+ nhori = config .get ('nhori' , 24 )
8485 radtopo_radius = config .get ('radtopo_radius' , 40000.0 )
8586
8687 generate_external_parameters (
8788 igrid_type , args .input_grid , iaot_type , ilu_type , ialb_type ,
8889 isoil_type , itopo_type , it_cl_type , iera_type , iemiss_type ,
89- enable_cdnc , enable_edgar , enable_art , use_array_cache , radtopo_radius ,
90- args .raw_data_path , args .run_dir , args .account , args . host ,
91- args .no_batch_job , lurban , lsgsl , lfilter_oro , lradtopo )
90+ enable_cdnc , enable_edgar , enable_art , use_array_cache , nhori ,
91+ radtopo_radius , args .raw_data_path , args .run_dir , args .account ,
92+ args .host , args . no_batch_job , lurban , lsgsl , lfilter_oro , lradtopo )
9293
9394
9495def generate_external_parameters (igrid_type ,
@@ -105,6 +106,7 @@ def generate_external_parameters(igrid_type,
105106 enable_edgar ,
106107 enable_art ,
107108 use_array_cache ,
109+ nhori ,
108110 radtopo_radius ,
109111 raw_data_path ,
110112 run_dir ,
@@ -140,6 +142,7 @@ def generate_external_parameters(igrid_type,
140142 'enable_art' : enable_art ,
141143 'use_array_cache' : use_array_cache ,
142144 'lradtopo' : lradtopo ,
145+ 'nhori' : nhori ,
143146 'radtopo_radius' : radtopo_radius ,
144147 'lsgsl' : lsgsl ,
145148 'lfilter_oro' : lfilter_oro ,
@@ -362,7 +365,7 @@ def setup_oro_namelist_cosmo(args):
362365 namelist .update (orography_smoothing_params ())
363366
364367 # &radtopo
365- namelist ['nhori' ] = 24
368+ namelist ['nhori' ] = args [ 'nhori' ]
366369 if args ['lradtopo' ]:
367370 namelist ['lradtopo' ] = ".TRUE."
368371 else :
@@ -466,7 +469,7 @@ def setup_oro_namelist_icon(args, lonmax, lonmin, latmax, latmin):
466469 namelist ['lradtopo' ] = ".FALSE."
467470
468471 # only relevant if lradtopo=.TRUE., but needed for namelist
469- namelist ['nhori' ] = 24
472+ namelist ['nhori' ] = args [ 'nhori' ]
470473 namelist ['max_missing' ] = 0.95
471474 namelist ['min_circ_cov' ] = 1
472475 namelist ['radius' ] = args ['radtopo_radius' ]
0 commit comments