Skip to content

Commit ab4b7f6

Browse files
committed
Working v3 test cfg
1 parent 528b31f commit ab4b7f6

File tree

5 files changed

+37
-31
lines changed

5 files changed

+37
-31
lines changed

tests/integration/generated/test_weekly_comprehensive_v3_chrysalis.cfg

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ infer_section_parameters = False
99
input = /lcrc/group/e3sm2/ac.wlin//E3SMv3/v3.LR.historical_0051
1010
input_subdir = archive/atm/hist
1111
mapping_file = "map_ne30pg2_to_cmip6_180x360_aave.20200201.nc"
12-
output = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051"
12+
output = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051"
1313
partition = "debug"
1414
qos = "regular"
15-
www = "/lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_comprehensive_v3_www/unique_id_pcmdi_diags_20250925_try4"
15+
www = "/lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_comprehensive_v3_www/unique_id_pcmdi_diags_20250926"
1616
years = "1985:1989:2",
1717

1818
[climo]
@@ -48,6 +48,7 @@ walltime = "00:30:00"
4848
frequency = "monthly"
4949
input_files = "eam.h0"
5050
input_subdir = "archive/atm/hist"
51+
years = "1985:1995:2", # Need 10 years for pcmdi_diags task
5152

5253
[[ atm_daily_180x360_aave ]]
5354
active = False
@@ -100,6 +101,7 @@ walltime = "00:30:00"
100101
[[ atm_monthly_180x360_aave ]]
101102
input_files = "eam.h0"
102103
ts_subsection = "atm_monthly_180x360_aave"
104+
years = "1985:1995:2", # Need 10 years for pcmdi_diags task
103105

104106
[[ land_monthly ]]
105107
input_files = "elm.h0"
@@ -167,16 +169,16 @@ tc_obs = "/lcrc/group/e3sm/diagnostics/observations/Atm/tc-analysis/"
167169
tag = "model_vs_model"
168170
ts_num_years_ref = 2
169171
# Reference paths
170-
reference_data_path = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/atm/180x360_aave/clim"
172+
reference_data_path = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/atm/180x360_aave/clim"
171173
# mvm streamflow only
172174
gauges_path = "/lcrc/group/e3sm/diagnostics/observations/Atm/time-series/GSIM/GSIM_catchment_characteristics_all_1km2.csv"
173-
reference_data_path_ts_rof = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/rof/native/ts/monthly"
175+
reference_data_path_ts_rof = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/rof/native/ts/monthly"
174176
# mvm diurnal_cycle only
175-
reference_data_path_climo_diurnal = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/atm/180x360_aave/clim_diurnal_8xdaily"
177+
reference_data_path_climo_diurnal = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/atm/180x360_aave/clim_diurnal_8xdaily"
176178
# mvm "enso_diags", "qbo", "area_mean_time_series"
177-
reference_data_path_ts = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/atm/180x360_aave/ts/monthly"
179+
reference_data_path_ts = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/atm/180x360_aave/ts/monthly"
178180
# mvm tropical_subseasonal only
179-
reference_data_path_ts_daily = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/atm/180x360_aave/ts/daily"
181+
reference_data_path_ts_daily = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/atm/180x360_aave/ts/daily"
180182

181183
[[ lnd_monthly_mvm_lnd ]]
182184
# Test model-vs-model using the same files as the reference
@@ -192,7 +194,7 @@ tc_obs = "/lcrc/group/e3sm/diagnostics/observations/Atm/tc-analysis/"
192194
tag = "model_vs_model"
193195
ts_num_years_ref = 2
194196
# Reference paths
195-
reference_data_path = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/lnd/180x360_aave/clim"
197+
reference_data_path = "/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/lnd/180x360_aave/clim"
196198

197199
[mpas_analysis]
198200
active = False
@@ -251,16 +253,16 @@ num_workers = 24
251253
obs_ts = '/lcrc/soft/climate/e3sm_diags_data/obs_for_e3sm_diags/time-series'
252254
pcmdi_debug = False
253255
ts_num_years = 2
254-
ts_years = "1985-1986",
256+
ts_years = "1985-1994",
255257

256258
[[ mean_climate ]]
257259
active = True
258260
current_set = "mean_climate" # Can be inferred if needed
259261
# Default for all variables or specify source for each variable separately.
260262
obs_sets = "default"
261-
ref_final_yr = 1986
263+
ref_final_yr = 1994
262264
ref_start_yr = 1985
263-
ref_years = "1985-1986",
265+
ref_years = "1985-1994",
264266
# Variables in current pcmdi-cmip list
265267
# rltcre and rstcre are derived variables as they are not included in cmip_ts
266268
vars = "pr,rlut,rtmt,tas,tauu,tauv,ts"
@@ -276,9 +278,9 @@ ts_years = "1985-1986",
276278
current_set = "variability_modes_cpl" # Can be inferred if needed
277279
# See zppy/templates/pcmdi_diags/reference_alias.json for options
278280
obs_sets = "alternate1" #"default"
279-
ref_final_yr = 1986
281+
ref_final_yr = 1994
280282
ref_start_yr = 1985
281-
ref_years = "1985-1986",
283+
ref_years = "1985-1994",
282284
vars = "ts"
283285
# Name of modes varibility
284286
cpl_modes = "PDO,NPGO,AMO"
@@ -294,12 +296,12 @@ ts_years = "1985-1986",
294296
# See zppy/templates/pcmdi_diags/reference_alias.json for options
295297
# Default for all variables
296298
obs_sets = "alternate2" # "default"
297-
ref_final_yr = 1986
299+
ref_final_yr = 1994
298300
ref_start_yr = 1985
299-
ref_years = "1985-1986",
301+
ref_years = "1985-1994",
300302
vars = "psl"
301303
# Varibility modes
302-
atm_modes = "NAM,NAO,PNA,NPO,SAM,PSA1" # PSA2 requires 3 years of data
304+
atm_modes = "NAM,NAO,PNA,NPO,SAM,PSA1,PSA2"
303305
frequency = 'mo'
304306
landmask = False
305307
ModUnitsAdjust = '(True,"divide",100.0)'
@@ -309,7 +311,8 @@ ts_years = "1985-1986",
309311
[[ synthetic_plots ]]
310312
active = True
311313
current_set = "synthetic_plots" # Can be inferred if needed
314+
vars = "pr,rlut,rtmt,tas,tauu,tauv,ts" # MUST match mean_climate's vars
312315
# clim_period, emov_period, enso_period:
313-
figure_sets_period = "1985-1986,1985-1986,1985-1986"
316+
figure_sets_period = "1985-1994,1985-1994,1985-1994"
314317
cmip_clim_dir = /lcrc/group/e3sm/diagnostics/pcmdi_data/metrics_data/mean_climate
315318
cmip_movs_dir = /lcrc/group/e3sm/diagnostics/pcmdi_data/metrics_data/variability_modes

tests/integration/generated/update_weekly_expected_files_chrysalis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ do
3535
# Copy output so you don't have to rerun zppy to generate the output.
3636
if [[ "${test_name,,}" =~ "v2" ]]; then
3737
# We need the v2 case name
38-
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_${test_name}_www/unique_id_pcmdi_diags_20250925_try4/v2.LR.historical_0201 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_${test_name}
38+
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_${test_name}_www/unique_id_pcmdi_diags_20250926/v2.LR.historical_0201 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_${test_name}
3939
else
4040
# We need the v3 case name
41-
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_${test_name}_www/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_${test_name}
41+
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_weekly_${test_name}_www/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_${test_name}
4242
fi
4343

4444
# test_bundles.py also needs the bash files transferred.
4545
# Note that for legacy cfgs, we're only testing test_images.py
4646
if [[ "${test_name,,}" == "bundles" ]]; then
4747
mkdir -p /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles/bundle_files
48-
cp -r /lcrc/group/e3sm/ac.forsyth2/zppy_weekly_bundles_output/unique_id_pcmdi_diags_20250925_try4/v3.LR.historical_0051/post/scripts/bundle*.bash /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles/bundle_files
48+
cp -r /lcrc/group/e3sm/ac.forsyth2/zppy_weekly_bundles_output/unique_id_pcmdi_diags_20250926/v3.LR.historical_0051/post/scripts/bundle*.bash /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles/bundle_files
4949
fi
5050

5151
zppy_top_level=$(pwd)

tests/integration/template_weekly_comprehensive_v3.cfg

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ walltime = "00:30:00"
4848
frequency = "monthly"
4949
input_files = "eam.h0"
5050
input_subdir = "archive/atm/hist"
51+
years = "1985:1995:2", # Need 10 years for pcmdi_diags task
5152

5253
[[ atm_daily_180x360_aave ]]
5354
active = #expand active_e3sm_diags#
@@ -100,6 +101,7 @@ walltime = "00:30:00"
100101
[[ atm_monthly_180x360_aave ]]
101102
input_files = "eam.h0"
102103
ts_subsection = "atm_monthly_180x360_aave"
104+
years = "1985:1995:2", # Need 10 years for pcmdi_diags task
103105

104106
[[ land_monthly ]]
105107
input_files = "elm.h0"
@@ -251,16 +253,16 @@ num_workers = 24
251253
obs_ts = '/lcrc/soft/climate/e3sm_diags_data/obs_for_e3sm_diags/time-series'
252254
pcmdi_debug = False
253255
ts_num_years = 2
254-
ts_years = "1985-1986",
256+
ts_years = "1985-1994",
255257

256258
[[ mean_climate ]]
257259
active = True
258260
current_set = "mean_climate" # Can be inferred if needed
259261
# Default for all variables or specify source for each variable separately.
260262
obs_sets = "default"
261-
ref_final_yr = 1986
263+
ref_final_yr = 1994
262264
ref_start_yr = 1985
263-
ref_years = "1985-1986",
265+
ref_years = "1985-1994",
264266
# Variables in current pcmdi-cmip list
265267
# rltcre and rstcre are derived variables as they are not included in cmip_ts
266268
vars = "pr,rlut,rtmt,tas,tauu,tauv,ts"
@@ -276,9 +278,9 @@ ts_years = "1985-1986",
276278
current_set = "variability_modes_cpl" # Can be inferred if needed
277279
# See zppy/templates/pcmdi_diags/reference_alias.json for options
278280
obs_sets = "alternate1" #"default"
279-
ref_final_yr = 1986
281+
ref_final_yr = 1994
280282
ref_start_yr = 1985
281-
ref_years = "1985-1986",
283+
ref_years = "1985-1994",
282284
vars = "ts"
283285
# Name of modes varibility
284286
cpl_modes = "PDO,NPGO,AMO"
@@ -294,12 +296,12 @@ ts_years = "1985-1986",
294296
# See zppy/templates/pcmdi_diags/reference_alias.json for options
295297
# Default for all variables
296298
obs_sets = "alternate2" # "default"
297-
ref_final_yr = 1986
299+
ref_final_yr = 1994
298300
ref_start_yr = 1985
299-
ref_years = "1985-1986",
301+
ref_years = "1985-1994",
300302
vars = "psl"
301303
# Varibility modes
302-
atm_modes = "NAM,NAO,PNA,NPO,SAM,PSA1" # PSA2 requires 3 years of data
304+
atm_modes = "NAM,NAO,PNA,NPO,SAM,PSA1,PSA2"
303305
frequency = 'mo'
304306
landmask = False
305307
ModUnitsAdjust = '(True,"divide",100.0)'
@@ -309,7 +311,8 @@ ts_years = "1985-1986",
309311
[[ synthetic_plots ]]
310312
active = True
311313
current_set = "synthetic_plots" # Can be inferred if needed
314+
vars = "pr,rlut,rtmt,tas,tauu,tauv,ts" # MUST match mean_climate's vars
312315
# clim_period, emov_period, enso_period:
313-
figure_sets_period = "1985-1986,1985-1986,1985-1986"
316+
figure_sets_period = "1985-1994,1985-1994,1985-1994"
314317
cmip_clim_dir = #expand diagnostics_base_path#/pcmdi_data/metrics_data/mean_climate
315318
cmip_movs_dir = #expand diagnostics_base_path#/pcmdi_data/metrics_data/variability_modes

tests/integration/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tasks_to_run": [
2222
"pcmdi_diags",
2323
],
24-
"unique_id": "unique_id_pcmdi_diags_20250925_try4",
24+
"unique_id": "unique_id_pcmdi_diags_20250926",
2525
}
2626

2727
# Multi-machine testing #########################################################

zppy/defaults/default.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ ref_start_yr = string(default="")
432432
# For other plots, zppy will set it to match `years`, if not specified
433433
ref_years = string_list(default=list(""))
434434
# Variables to be used by the pcmdi diagnostics
435-
# mean_climate: vars = "pr,prw,psl,rlds,rldscs,rltcre,rstcre,rlut,rlutcs,rsds,rsdscs,rsdt,rsus,rsuscs,rlus,rsut,rtmt,sfcWind,tas,tauu,tauv,ts,ta-200,ta-850,ua-200,ua-850,va-200,va-850,zg-500"
435+
# mean_climate AND synthetic_plots: vars = "pr,prw,psl,rlds,rldscs,rltcre,rstcre,rlut,rlutcs,rsds,rsdscs,rsdt,rsus,rsuscs,rlus,rsut,rtmt,sfcWind,tas,tauu,tauv,ts,ta-200,ta-850,ua-200,ua-850,va-200,va-850,zg-500"
436436
# variability_modes_atm: vars = "psl"
437437
# variability_modes_cpl: vars = "ts"
438438
# enso: vars = "psl,pr,prsn,ts,tas,tauu,tauv,hflx,hfss,rlds,rsds,rlus,rlut,rsdt"

0 commit comments

Comments
 (0)