Skip to content

Commit

Permalink
Further work on prepare_data
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaehn committed Oct 19, 2023
1 parent bb23e92 commit 15eaf53
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 2 additions & 0 deletions cases/icon-test/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ restart_step: 6
startdate: 2018-01-01T00:00:00Z
hstart: 0
hstop: 12

eccodes_dir: ./input/eccodes_definitions
iconremap_bin: iconremap
iconsub_bin: iconsub
lateral_boundary_grid_order: lateral_boundary

meteo:
dir: ./input/meteo
Expand Down
2 changes: 1 addition & 1 deletion cases/icon-test/icontools_remap_00_lbc_runjob.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ for datafilename in {datafile_list} ; do
in_grid_filename = '{cfg.meteo_dir}/{cfg.meteo_prefix}{cfg.inidate_yyyymmddhh}{cfg.meteo_suffix}'
in_filename = '{cfg.meteo_dir}/${{datafile}}'
in_type = 1
out_grid_filename = '{cfg.lateral_boundary_grid_scratch}'
out_grid_filename = '{cfg.input_files_scratch_lateral_boundary_grid}'
out_filename = '{cfg.icon_input_icbc}/${{outdatafile}}_lbc.nc'
out_type = 2
out_filetype = 4
Expand Down
2 changes: 1 addition & 1 deletion cases/icon-test/icontools_remap_lbc_rest_runjob.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ for datafilename in {datafile_list_rest} ; do
in_grid_filename = '{cfg.meteo_dir}/{cfg.meteo_prefix}{cfg.inidate_yyyymmddhh}{cfg.meteo_suffix}'
in_filename = '{cfg.meteo_dir}/${{datafile}}'
in_type = 1
out_grid_filename = '{cfg.lateral_boundary_grid_scratch}'
out_grid_filename = '{cfg.input_files_scratch_lateral_boundary_grid}'
out_filename = '{cfg.icon_input_icbc}/${{outdatafile}}_lbc.nc'
out_type = 2
out_filetype = 4
Expand Down
12 changes: 1 addition & 11 deletions jobs/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ def set_cfg_variables(cfg, starttime, hstart, hstop):
'input'))
setattr(cfg, 'icon_input_icbc',
os.path.join(cfg.chain_root, 'icon', 'input', 'icbc'))
setattr(cfg, 'icon_input_oae',
os.path.join(cfg.chain_root, 'icon', 'input', 'OEM'))
setattr(cfg, 'icon_input_grid',
os.path.join(cfg.chain_root, 'icon', 'input', 'grid'))
setattr(cfg, 'icon_input_mapping',
os.path.join(cfg.chain_root, 'icon', 'input', 'mapping'))
setattr(cfg, 'icon_input_rad',
os.path.join(cfg.chain_root, 'icon', 'input', 'rad'))
setattr(cfg, 'icon_input_xml',
os.path.join(cfg.chain_root, 'icon', 'input', 'XML'))
setattr(cfg, 'icon_work', os.path.join(cfg.chain_root, 'icon', 'run'))
setattr(cfg, 'icon_output',
os.path.join(cfg.chain_root, 'icon', 'output'))
Expand Down Expand Up @@ -321,7 +311,7 @@ def main(starttime, hstart, hstop, cfg, model_cfg):

else: # non-global ICON-ART
#-----------------------------------------------------
# Get datafile lists for LBC (each at 00 UTC and others)
# Create LBC datafile lists (each at 00 UTC and others)
#-----------------------------------------------------
datafile_list = []
datafile_list_rest = []
Expand Down

0 comments on commit 15eaf53

Please sign in to comment.