Skip to content

Commit 47d0a0a

Browse files
committed
Add testing scripts
1 parent e53ee2b commit 47d0a0a

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[#]
2+
sets = ["lat_lon"]
3+
case_id = "ERA5"
4+
variables = ["U"]
5+
ref_name = "ERA5"
6+
reference_name = "ERA5 Reanalysis"
7+
seasons = ["ANN", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "DJF", "MAM", "JJA", "SON"]
8+
plevs = [850.0]
9+
test_colormap = "PiYG_r"
10+
reference_colormap = "PiYG_r"
11+
contour_levels = [-20, -15, -10, -8, -5, -3, -1, 1, 3, 5, 8, 10, 15, 20]
12+
diff_levels = [-8, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 8]
13+
regrid_method = "bilinear"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import os
2+
from e3sm_diags.parameter.core_parameter import CoreParameter
3+
from e3sm_diags.run import runner
4+
5+
param = CoreParameter()
6+
7+
8+
param.reference_data_path = (
9+
"/global/cfs/cdirs/e3sm/diagnostics/observations/Atm/time-series"
10+
)
11+
param.test_data_path = "/global/cfs/cdirs/e3sm/chengzhu/eamxx/post/data/rgr"
12+
param.test_name = "eamxx_decadal"
13+
param.seasons = ["ANN"]
14+
# param.save_netcdf = True
15+
16+
param.ref_timeseries_input = True
17+
# Years to slice the ref data, base this off the years in the filenames.
18+
param.ref_start_yr = "1996"
19+
param.ref_end_yr = "1996"
20+
21+
prefix = "/global/cfs/cdirs/e3sm/www/cdat-migration-fy24/877-attr-err"
22+
param.results_dir = os.path.join(prefix, "eamxx_decadal_1996_1107_edv3")
23+
24+
runner.sets_to_run = [
25+
"lat_lon",
26+
"zonal_mean_xy",
27+
"zonal_mean_2d",
28+
"zonal_mean_2d_stratosphere",
29+
"polar",
30+
"cosp_histogram",
31+
"meridional_mean_2d",
32+
"annual_cycle_zonal_mean",
33+
]
34+
35+
runner.run_diags([param])

0 commit comments

Comments
 (0)