-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df10271
commit a84b860
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
auxiliary_tools/cdat_regression_testing/906-v3_complete_run/12_11_24_lat-lon_diffs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
""" | ||
QA diffs | ||
""" | ||
# %% | ||
import os | ||
import sys | ||
|
||
from e3sm_diags.parameter.core_parameter import CoreParameter | ||
from e3sm_diags.run import runner | ||
|
||
param = CoreParameter() | ||
|
||
# Location of the data. | ||
param.test_data_path = "/global/cfs/cdirs/e3sm/chengzhu/tutorial2024/v3.LR.historical_0101/post/atm/180x360_aave/clim/15yr" | ||
param.reference_data_path = '/global/cfs/cdirs/e3sm/diagnostics/observations/Atm/climatology/' | ||
|
||
|
||
# Set this parameter to True. | ||
# By default, e3sm_diags expects the test data to be climo data. | ||
|
||
# Set this parameter to True. | ||
# By default, e3sm_diags expects the ref data to be climo data. | ||
|
||
# When running with time-series data, you don't need to specify the name of the data. | ||
# But you should, otherwise nothing is displayed when the test/ref name is needed. | ||
|
||
# This parameter modifies the software to accommodate model vs model runs. | ||
# The default setting for run_type is 'model_vs_obs'. | ||
param.run_type = "model_vs_obs" | ||
# Name of the folder where the results are stored. | ||
# Change `prefix` to use your directory. | ||
prefix = "/global/cfs/cdirs/e3sm/www/chengzhu/e3sm_diags_tests/'" | ||
param.results_dir = os.path.join(prefix, "12-11-v3-main") | ||
|
||
# Below are more optional arguments. | ||
|
||
# What plotsets to run the diags on. | ||
# If not defined, then all available sets are used. | ||
param.sets = ["lat_lon"] | ||
# What seasons to run the diags on. | ||
# If not defined, diags are run on ['ANN', 'DJF', 'MAM', 'JJA', 'SON']. | ||
param.seasons = ["ANN"] | ||
|
||
# For running with multiprocessing. | ||
param.multiprocessing = False | ||
# param.num_workers = 24 | ||
|
||
# %% | ||
DIR_PATH = "/global/u2/c/chengzhu/e3sm_diags/auxiliary_tools/cdat_regression_testing/906-v3_complete_run" | ||
CFG_PATH = os.path.join(DIR_PATH, "906-diags.cfg") | ||
sys.argv.extend(["-d", CFG_PATH]) | ||
runner.run_diags([param]) |
10 changes: 10 additions & 0 deletions
10
auxiliary_tools/cdat_regression_testing/906-v3_complete_run/906-diags.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[#] | ||
sets = ["lat_lon"] | ||
case_id = "ERA5" | ||
variables = ["TREFHT"] | ||
regions = ["global"] | ||
ref_name = "ERA5" | ||
reference_name = "ERA5 Reanalysis" | ||
seasons = ["ANN"] | ||
contour_levels = [-35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40] | ||
diff_levels = [-12, -8, -4, -2, -1, -0.5, 0.5, 1, 2, 4, 8, 12] |