Skip to content

Commit

Permalink
Remove climo_diurnal_input_files internal parameter (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 authored Jul 22, 2024
1 parent 59e7b69 commit 602698c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions zppy/e3sm_diags.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ def e3sm_diags(config, scriptDir, existing_bundles, job_ids_file): # noqa: C901
if "diurnal_cycle" in c["sets"]:
if c["dc_obs_climo"] == "":
c["dc_obs_climo"] = c["reference_data_path"]
diurnal_cycle_subtask_name = c["climo_diurnal_subsection"]
if diurnal_cycle_subtask_name in config["climo"].keys():
if (
"input_files"
in config["climo"][diurnal_cycle_subtask_name].keys()
):
diurnal_cycle_input_files = config["climo"][
diurnal_cycle_subtask_name
]["input_files"]
c["climo_diurnal_input_files"] = diurnal_cycle_input_files
if ("streamflow" in c["sets"]) and (c["streamflow_obs_ts"] == ""):
c["streamflow_obs_ts"] = c["obs_ts"]
print(prefix)
Expand Down
1 change: 0 additions & 1 deletion zppy/templates/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ backend = string(default="mpl")
cfg = string(default="")
# Name of the frequency from `[climo]` to use for "diurnal_cycle" runs
climo_diurnal_frequency = string(default="")
# climo_diurnal_input_files -- NOTE: this parameter is created internally
# Name of the subsection of `[climo]` to use for "diurnal_cycle" runs
climo_diurnal_subsection = string(default="")
# Name of the `[climo]` subtask
Expand Down
2 changes: 1 addition & 1 deletion zppy/templates/e3sm_diags.bash
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ create_links_climo_diurnal()
error_num=$6
mkdir -p ${climo_diurnal_dir_destination}
cd ${climo_diurnal_dir_destination}
cp -s ${climo_diurnal_dir_source}/${nc_prefix}.{{ climo_diurnal_input_files }}_*_${begin_year}??_${end_year}??_climo.nc .
cp -s ${climo_diurnal_dir_source}/${nc_prefix}.*_*_${begin_year}??_${end_year}??_climo.nc .
if [ $? != 0 ]; then
cd {{ scriptDir }}
echo "ERROR (${error_num})" > {{ prefix }}.status
Expand Down

0 comments on commit 602698c

Please sign in to comment.