-
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.
Co-authored-by: Tom Vo <tomvothecoder@gmail.com>
- Loading branch information
1 parent
aa1a900
commit 55d4b5a
Showing
23 changed files
with
4,048 additions
and
309 deletions.
There are no files selected for viewing
1,442 changes: 1,442 additions & 0 deletions
1,442
..._regression_testing/654-zonal_mean_xy/654-zonal_mean_xy_cdat_regression_test_netcdf.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
auxiliary_tools/cdat_regression_testing/654-zonal_mean_xy/654-zonal_mean_xy_run_script.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,6 @@ | ||
from auxiliary_tools.cdat_regression_testing.base_run_script import run_set | ||
|
||
SET_NAME = "zonal_mean_xy" | ||
SET_DIR = "654-zonal_mean_xy" | ||
|
||
run_set(SET_NAME, SET_DIR) |
1,889 changes: 1,889 additions & 0 deletions
1,889
...testing/654-zonal_mean_xy/debug_654-zonal_mean_xy_cdat_regression_test_netcdf_debug.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...ary_tools/cdat_regression_testing/654-zonal_mean_xy/debug_654-zonal_mean_xy_run_script.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,8 @@ | ||
from auxiliary_tools.cdat_regression_testing.base_run_script import run_set | ||
|
||
SET_NAME = "zonal_mean_xy" | ||
SET_DIR = "debug-654-zonal_mean_xy" | ||
# CFG_PATH = "auxiliary_tools/cdat_regression_testing/654-zonal_mean_xy/debug_zonal_mean_xy_model_vs_obs.cfg" | ||
|
||
run_set(SET_NAME, SET_DIR) | ||
# run_set(SET_NAME, SET_DIR, CFG_PATH, multiprocessing=False) |
64 changes: 64 additions & 0 deletions
64
...iary_tools/cdat_regression_testing/654-zonal_mean_xy/debug_zonal_mean_xy_model_vs_obs.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,64 @@ | ||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud ISCCP" | ||
variables = ["CLDTOT_TAU1.3_ISCCP"] | ||
ref_name = "ISCCPCOSP" | ||
reference_name = "ISCCP" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud ISCCP" | ||
variables = ["CLDTOT_TAU1.3_9.4_ISCCP"] | ||
ref_name = "ISCCPCOSP" | ||
reference_name = "ISCCP" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud ISCCP" | ||
variables = ["CLDTOT_TAU9.4_ISCCP"] | ||
ref_name = "ISCCPCOSP" | ||
reference_name = "ISCCP" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud MODIS" | ||
variables = ["CLDTOT_TAU1.3_MODIS"] | ||
ref_name = "MODISCOSP" | ||
reference_name = "MODIS Simulator" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud MODIS" | ||
variables = ["CLDTOT_TAU1.3_9.4_MODIS"] | ||
ref_name = "MODISCOSP" | ||
reference_name = "MODIS Simulator" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud MODIS" | ||
variables = ["CLDTOT_TAU9.4_MODIS"] | ||
ref_name = "MODISCOSP" | ||
reference_name = "MODIS Simulator" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud MODIS" | ||
variables = ["CLDHGH_TAU1.3_MODIS"] | ||
ref_name = "MODISCOSP" | ||
reference_name = "MODIS Simulator" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "Cloud MODIS" | ||
variables = ["CLDHGH_TAU1.3_9.4_MODIS"] | ||
ref_name = "MODISCOSP" | ||
reference_name = "MODIS Simulator" | ||
seasons = ["ANN", "DJF", "MAM", "JJA", "SON"] |
58 changes: 58 additions & 0 deletions
58
auxiliary_tools/cdat_regression_testing/654-zonal_mean_xy/test_refactor/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,58 @@ | ||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "CERES-EBAF-surface-v4.1" | ||
variables = ["FLNS"] | ||
ref_name = "ceres_ebaf_surface_v4.1" | ||
reference_name = "CERES-EBAF v4.1" | ||
seasons = ["ANN"] | ||
|
||
[#] | ||
sets = ["zonal_mean_xy"] | ||
case_id = "MERRA2" | ||
variables = ["TMQ"] | ||
ref_name = "MERRA2" | ||
reference_name = "MERRA2 Reanalysis" | ||
seasons = ["ANN"] | ||
|
||
#[#] | ||
#sets = ["zonal_mean_xy"] | ||
#case_id = "MERRA2" | ||
#variables = ["TREFHT"] | ||
#regions = ["global"] | ||
#ref_name = "MERRA2" | ||
#reference_name = "MERRA2 Reanalysis" | ||
#seasons = ["ANN"] | ||
#[#] | ||
#sets = ["zonal_mean_xy"] | ||
#case_id = "GPCP_OAFLux" | ||
#variables = ["PminusE"] | ||
#ref_name = "GPCP_OAFLux" | ||
#reference_name = "PRECT(GPCP) minus QFLX(OAFLux)" | ||
#seasons = ["ANN"] | ||
## | ||
#[#] | ||
#sets = ["zonal_mean_xy"] | ||
#case_id = "COREv2_Flux" | ||
#variables = ["PminusE"] | ||
#ref_name = "COREv2_Flux" | ||
#reference_name = "COREv2_Flux" | ||
#seasons = ["ANN"] | ||
# | ||
# | ||
#[#] | ||
#sets = ["zonal_mean_xy"] | ||
#case_id = "GPCP_v3.2" | ||
#variables = ["PRECT"] | ||
#ref_name = "GPCP_v3.2" | ||
#reference_name = "GPCP v3.2" | ||
#seasons = ["ANN"] | ||
#regions = ["global"] | ||
# | ||
#[#] | ||
#sets = ["zonal_mean_xy"] | ||
#case_id = "ERA5" | ||
#variables = ["T"] | ||
#ref_name = "ERA5" | ||
#reference_name = "ERA5 Reanalysis" | ||
#seasons = ["ANN"] | ||
#plevs = [850.0] |
42 changes: 42 additions & 0 deletions
42
auxiliary_tools/cdat_regression_testing/654-zonal_mean_xy/test_refactor/run_zonal_mean_xy.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,42 @@ | ||
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.reference_data_path = ( | ||
"/global/cfs/cdirs/e3sm/e3sm_diags/obs_for_e3sm_diags/climatology/" | ||
) | ||
param.test_data_path = ( | ||
"/global/cfs/cdirs/e3sm/e3sm_diags/postprocessed_e3sm_v2_data_for_e3sm_diags/20210528.v2rc3e.piControl.ne30pg2_EC30to60E2r2.chrysalis/climatology/rgr" | ||
) | ||
# Name of the test model data, used to find the climo files. | ||
param.test_name = "20210528.v2rc3e.piControl.ne30pg2_EC30to60E2r2.chrysalis" | ||
# An optional, shorter name to be used instead of the test_name. | ||
param.short_test_name = "v2rc3e" | ||
|
||
# What plotsets to run the diags on. | ||
#param.sets = ["lat_lon"] | ||
# Name of the folder where the results are stored. | ||
# Change `prefix` to use your directory. | ||
prefix = "/global/cfs/cdirs/e3sm/www/chengzhu/test_e3sm_refactor" | ||
param.results_dir = os.path.join(prefix, "ex5_model_to_obs") | ||
|
||
# Below are more optional arguments. | ||
|
||
# Title of the difference plots. | ||
param.diff_title = "Model - Obs." | ||
# Save the netcdf files for each of the ref, test, and diff plot. | ||
param.save_netcdf = True | ||
# For running with multiprocessing. | ||
# param.multiprocessing = True | ||
# param.num_workers = 32 | ||
# Use the specified `.cfg` file for debugging | ||
CFG_PATH = "examples/test_refactor/diags.cfg" | ||
sys.argv.extend(["-d", CFG_PATH]) | ||
|
||
runner.sets_to_run = ["zonal_mean_xy"] | ||
runner.run_diags([param]) |
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
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
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
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
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
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
Oops, something went wrong.