Skip to content

Commit

Permalink
Update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 committed Dec 12, 2024
1 parent 5812010 commit 44c93e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ years = "1985:2014:30"

[[ land_monthly ]]
input_files = "elm.h0"
mapping_file = "map_r05_to_cmip6_180x360_aave.20231110.nc"

[ilamb]
active = True
Expand Down
1 change: 1 addition & 0 deletions tests/integration/template_min_case_ilamb.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ years = "1985:2014:30"

[[ land_monthly ]]
input_files = "elm.h0"
mapping_file = "map_r05_to_cmip6_180x360_aave.20231110.nc"

[ilamb]
active = True
Expand Down
6 changes: 6 additions & 0 deletions zppy/e3sm_to_cmip.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
get_years,
initialize_template,
make_executable,
set_component_and_prc_typ,
set_grid,
set_mapping_file,
submit_script,
write_settings_file,
)
Expand All @@ -31,6 +34,9 @@ def e3sm_to_cmip(config: ConfigObj, script_dir: str, existing_bundles, job_ids_f
# --- Generate and submit e3sm_to_cmip scripts ---
for c in tasks:
dependencies: List[str] = []
set_mapping_file(c)
set_grid(c)
set_component_and_prc_typ(c)
c["cmor_tables_prefix"] = c["diagnostics_base_path"]
year_sets: List[Tuple[int, int]] = get_years(c["years"])
# Loop over year sets
Expand Down
2 changes: 1 addition & 1 deletion zppy/templates/e3sm_to_cmip.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EOF
${dest_cmip}/${tmp_dir} \
{% if input_files.split(".")[0] == 'clm2' or input_files.split(".")[0] == 'elm' -%}
--var-list \
'{{ cmip_var_lnd }}' \
'{{ cmip_var_land }}' \
--realm \
lnd \
{% endif -%}
Expand Down

0 comments on commit 44c93e0

Please sign in to comment.