Skip to content

Commit dd2e357

Browse files
committed
Add LIVVkit fixes and test setup
1 parent f654090 commit dd2e357

File tree

8 files changed

+252
-85
lines changed

8 files changed

+252
-85
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# This is an example zppy v3.1.0 configuration file for Perlmutter.
2-
# zppy v3.1.0 is included in E3SM Unified 1.12.
3-
#
4-
# NOTE: This configuration generates 8 tasks/jobs when fully enabled.
5-
# Users should only enable the tasks and time periods they need based on their specific
6-
# analysis requirements to reduce computational load and queue time.
7-
81
[default]
92
# Change these two paths to include your username instead
103
# You can also change these to match your preferred directory structure
@@ -13,102 +6,71 @@ www = /global/cfs/cdirs/e3sm/www/mek/zppy_out
136
# Other paths
147
input = /pscratch/sd/m/mek/e3sm_scratch/pm-cpu/archive/v2.1.r05.BGWCYCL20TR-steve_2005_2014
158

16-
# zppy auto-determines and sources latest e3sm-unified on each supported machine with environment_commands commented out.
17-
#environment_commands = "source /lcrc/soft/climate/e3sm-unified/load_latest_e3sm_unified_chrysalis.sh"
18-
# For testing Unified rc:
19-
#environment_commands = "source /lcrc/soft/climate/e3sm-unified/test_e3sm_unified_1.12.0rc2_chrysalis.sh"
20-
environment_commands = "source /global/common/software/e3sm/anaconda_envs/load_latest_e3sm_unified_pm-cpu.sh"
21-
22-
# Other parameters:
9+
account = e3sm
2310
campaign = "water_cycle"
2411
case = v2.1.r05.BGWCYCL20TR-steve_2005_2014
25-
account = e3sm
2612
dry_run = False
13+
environment_commands = "source /global/common/software/e3sm/anaconda_envs/load_latest_e3sm_unified_pm-cpu.sh"
2714

2815
[climo]
2916
active = True
17+
climo_jobs = 12
18+
frequency = "monthly"
19+
input_files = "elm.h0"
20+
input_subdir = lnd/hist
21+
nodes = 1
3022
walltime = "0:10:00"
3123
years = "2005:2014:10"
32-
nodes = 1
3324

3425
[[ land_monthly_climo ]]
35-
frequency = "monthly"
36-
climo_jobs = 12
37-
input_files = "elm.h0"
38-
input_subdir = lnd/hist
3926
mapping_file = /global/cfs/cdirs/e3sm/zender/maps/map_r05_to_cmip6_180x360_traave.20240901.nc
4027
vars = "" # Setting this as "" will tell zppy to use ALL variables
4128

4229
[[ land_monthly_climo_native ]]
43-
frequency = "monthly"
44-
climo_jobs = 12
45-
input_files = "elm.h0"
46-
input_subdir = lnd/hist
4730
vars = ""
4831

4932
[[ land_monthly_climo_racmo_gis ]]
50-
frequency = "monthly"
51-
climo_jobs = 12
5233
climo_subsection = "racmo_gis"
5334
grid = "racmo_gis"
54-
input_files = "elm.h0"
55-
input_subdir = lnd/hist
5635
mapping_file = /global/cfs/cdirs/e3sm/zender/maps/map_r05_to_racmo_gis_566x438_traave.20240801.nc
5736
vars = ""
5837

5938
[[ land_monthly_climo_racmo_ais ]]
60-
frequency = "monthly"
61-
climo_jobs = 12
62-
input_files = "elm.h0"
6339
climo_subsection = "racmo_ais"
6440
grid = "racmo_ais"
65-
input_subdir = lnd/hist
6641
mapping_file = /global/cfs/cdirs/e3sm/livvkit/maps/map_r05_to_racmo_ais_591x726.nc
6742
vars = ""
6843

6944
[[ land_monthly_climo_merra2 ]]
70-
frequency = "monthly"
71-
climo_jobs = 12
72-
input_files = "elm.h0"
7345
climo_subsection = "merra2"
7446
grid = "merra2"
75-
input_subdir = lnd/hist
7647
mapping_file = /global/cfs/cdirs/e3sm/livvkit/maps/map_r05_to_merra2_traave.20250124.nc
7748
vars = ""
7849

7950
[[ land_monthly_climo_era5 ]]
80-
frequency = "monthly"
81-
climo_jobs = 12
82-
input_files = "elm.h0"
8351
climo_subsection = "era5"
8452
grid = "era5"
85-
input_subdir = lnd/hist
8653
mapping_file = /global/cfs/cdirs/e3sm/livvkit/maps/map_r05_to_era5_s2n_721x1440.traave.20240124.nc
8754
vars = ""
8855

89-
90-
[livvkit]
91-
active = True
92-
nodes = 1
93-
walltime = "0:30:00"
94-
# qos = "debug"
95-
icesheets = "gis,ais"
96-
sets = "cmb,smb,energy_racmo,energy_era5,energy_merra2,energy_ceres"
97-
cfg = "inclusions/livvkit/livvkit_r05.jinja"
98-
years = "2005:2014:10"
99-
10056
[ts]
101-
# 2 DEPRECATED PARAMETERS in zppy v3.0.0 (the new e3sm_to_cmip task renders these obsolete):
102-
# e3sm_to_cmip_environment_commands
103-
# ts_fmt (e.g., `ts_fmt = "cmip"`)
10457
active = True
58+
frequency = "monthly"
59+
input_files = "elm.h0"
60+
input_subdir = "lnd/hist"
10561
walltime = "00:05:00"
10662
years = "2005:2014:10",
10763

10864
[[ land_monthly ]]
109-
# This subtask is a dependency for the e3sm_to_cmip task's land_monthly subtask.
110-
frequency = "monthly"
111-
input_files = "elm.h0"
112-
input_subdir = "lnd/hist"
113-
# Variables:
11465
vars = "EFLX_LH_TOT,FIRA,FLDS,FSA,FSDS,FSRND,FSRVD,FSDSND,FSDSVD,FSH,QICE,QICE_MELT,QRUNOFF,QSNOFRZ,QSNOMELT,QSOIL,RAIN,SNOW,TSA"
66+
67+
[livvkit]
68+
active = True
69+
cfg = "inclusions/livvkit/livvkit_r05.jinja"
70+
# Once LIVVkit is included in E3SM Unified, this won't be necessary:
71+
environment_commands = "source /global/cfs/projectdirs/e3sm/livvkit/envs/load_e3sm_unified_pm-cpu_lex_test.sh"
72+
icesheets = "gis,ais"
73+
nodes = 1
74+
sets = "cmb,smb,energy_racmo,energy_era5,energy_merra2,energy_ceres"
75+
walltime = "0:30:00"
76+
years = "2005:2014:10"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ zppy = [
5656
"**/*.ini",
5757
"**/*.sh",
5858
"**/*.json",
59+
"**/*.jinja",
5960
]
6061

6162
[tool.black]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def package_files(directory, prefixes, extensions):
1818

1919

2020
data_files = package_files(
21-
"zppy", prefixes=[], extensions=["bash", "csh", "cfg", "ini", "sh", "json"]
21+
"zppy", prefixes=[], extensions=["bash", "csh", "cfg", "ini", "sh", "json", "jinja"]
2222
)
2323

2424
setup(

tests/integration/generated/test_weekly_comprehensive_v3_chrysalis.cfg

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ years = "1985:1989:2",
1717

1818
[climo]
1919
active = True
20+
frequency = "monthly"
2021
walltime = "00:30:00"
2122

2223
[[ atm_monthly_180x360_aave ]]
23-
frequency = "monthly"
2424
input_files = "eam.h0"
2525
input_subdir = "archive/atm/hist"
2626
vars = ""
@@ -34,12 +34,72 @@ walltime = "00:30:00"
3434

3535
[[ land_monthly_climo ]]
3636
active = True
37-
frequency = "monthly"
3837
input_files = "elm.h0"
3938
input_subdir = "archive/lnd/hist"
4039
mapping_file = "map_r05_to_cmip6_180x360_aave.20231110.nc"
4140
vars = ""
4241

42+
[[ land_monthly_180x360_traave ]]
43+
active = True
44+
input_files = "elm.h0"
45+
input_subdir = "archive/lnd/hist"
46+
mapping_file = "/lcrc/group/e3sm/ac.forsyth2/maps/map_r05_to_cmip6_180x360_traave.20240901.nc"
47+
vars = ""
48+
years = "1985:1994:10",
49+
50+
[[ land_monthly_climo_native ]]
51+
active = True
52+
climo_jobs = 12
53+
input_files = "elm.h0"
54+
input_subdir = "archive/lnd/hist"
55+
mapping_file = ""
56+
vars = ""
57+
years = "1985:1994:10"
58+
59+
[[ land_monthly_climo_racmo_gis ]]
60+
active = True
61+
climo_jobs = 12
62+
climo_subsection = "racmo_gis"
63+
grid = "racmo_gis"
64+
input_files = "elm.h0"
65+
input_subdir = "archive/lnd/hist"
66+
mapping_file = /lcrc/group/e3sm/ac.forsyth2/maps/map_r05_to_racmo_gis_566x438_traave.20240801.nc
67+
vars = ""
68+
years = "1985:1994:10"
69+
70+
[[ land_monthly_climo_racmo_ais ]]
71+
active = True
72+
climo_jobs = 12
73+
input_files = "elm.h0"
74+
climo_subsection = "racmo_ais"
75+
grid = "racmo_ais"
76+
input_subdir = "archive/lnd/hist"
77+
mapping_file = /lcrc/group/e3sm/public_html/diagnostics/maps/map_r05_to_racmo_ais_591x726.nc
78+
vars = ""
79+
years = "1985:1994:10"
80+
81+
[[ land_monthly_climo_merra2 ]]
82+
active = True
83+
climo_jobs = 12
84+
input_files = "elm.h0"
85+
climo_subsection = "merra2"
86+
grid = "merra2"
87+
input_subdir = "archive/lnd/hist"
88+
mapping_file = /lcrc/group/e3sm/public_html/diagnostics/maps/map_r05_to_merra2_traave.20250124.nc
89+
vars = ""
90+
years = "1985:1994:10"
91+
92+
[[ land_monthly_climo_era5 ]]
93+
active = True
94+
climo_jobs = 12
95+
input_files = "elm.h0"
96+
climo_subsection = "era5"
97+
grid = "era5"
98+
input_subdir = "archive/lnd/hist"
99+
mapping_file = /lcrc/group/e3sm/public_html/diagnostics/maps/map_r05_to_era5_s2n_721x1440.traave.20240124.nc
100+
vars = ""
101+
years = "1985:1994:10"
102+
43103
[ts]
44104
active = True
45105
walltime = "00:30:00"
@@ -92,6 +152,25 @@ walltime = "00:30:00"
92152
mapping_file = "map_r05_to_cmip6_180x360_aave.20231110.nc"
93153
vars = "FSH,RH2M,LAISHA,LAISUN,QINTR,QOVER,QRUNOFF,QSOIL,QVEGE,QVEGT,SOILICE,SOILLIQ,SOILWATER_10CM,TSA,TSOI,H2OSNO,TOTLITC,CWDC,SOIL1C,SOIL2C,SOIL3C,SOIL4C,WOOD_HARVESTC,TOTVEGC,NBP,GPP,AR,HR"
94154

155+
[[ land_monthly_energy ]]
156+
active = True
157+
frequency = "monthly"
158+
input_files = "elm.h0"
159+
input_subdir = "archive/lnd/hist"
160+
mapping_file = ""
161+
vars = "EFLX_LH_TOT,FIRA,FLDS,FSA,FSDS,FSRND,FSRVD,FSDSND,FSDSVD,FSH,TSA"
162+
years = "1985:1994:10"
163+
164+
[[ land_monthly_smb ]]
165+
# The data necessary for this is not found in the data input path.
166+
active = False
167+
frequency = "monthly"
168+
input_files = "elm.h0"
169+
input_subdir = "archive/lnd/hist"
170+
mapping_file = ""
171+
vars = "QICE,QICE_MELT,QRUNOFF,QSNOFRZ,QSNOMELT,QSOIL,RAIN,SNOW"
172+
years = "1985:1994:10"
173+
95174
[e3sm_to_cmip]
96175
active = True
97176
frequency = "monthly"
@@ -312,6 +391,20 @@ ts_num_years = 2
312391
walltime = "2:00:00"
313392
years = "1985:1989:4"
314393

394+
[livvkit]
395+
active = True
396+
climo_subsections = "land_monthly_180x360_traave","land_monthly_climo_native","land_monthly_climo_racmo_gis","land_monthly_climo_racmo_ais","land_monthly_climo_merra2","land_monthly_climo_era5"
397+
cfg = "inclusions/livvkit/livvkit_r05.jinja"
398+
debug = True
399+
environment_commands = "source <INSERT PATH TO CONDA>/conda.sh; conda activate <INSERT ENV NAME>"
400+
icesheets = "gis,ais"
401+
nodes = 1
402+
sets = "energy_racmo,energy_era5,energy_merra2,energy_ceres"
403+
ts_land_subsection = "land_monthly_energy"
404+
walltime = "0:30:00"
405+
years = "1985:1994:10"
406+
407+
315408
[pcmdi_diags]
316409
active = True
317410
environment_commands_secondary = "source <INSERT PATH TO CONDA>/conda.sh; conda activate <INSERT ENV NAME>"

0 commit comments

Comments
 (0)