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
Showing
7 changed files
with
143 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# TODO: Remove before merging | ||
# pip install . && python run.py | ||
import os | ||
from acme_diags.parameter.core_parameter import CoreParameter | ||
from acme_diags.parameter.enso_diags_parameter import EnsoDiagsParameter | ||
from acme_diags.run import runner | ||
|
||
param = CoreParameter() | ||
# Mac | ||
param.test_data_path = '/Users/forsyth2/projectAIMS/data/test_model_data_for_acme_diags/time-series/E3SM_v1_amip' | ||
param.reference_data_path = '/Users/forsyth2/projectAIMS/data/obs_for_e3sm_diags/time-series/ERA-Interim' | ||
param.test_name = 'E3SM v1 amip' | ||
param.reference_name = 'ERA-Interim' | ||
prefix = '' | ||
param.results_dir = os.path.join(prefix, 'enso_reg_diags_model_to_model_local') | ||
param.run_type = 'model_vs_model' | ||
param.diff_title = 'Model vs Model' | ||
param.output_format = ['png'] | ||
param.output_format_subplot = ['png'] | ||
param.save_netcdf = True | ||
param.test_start_yr = '2000' | ||
param.ref_start_yr = '2000' | ||
# param.end_yr = '2004' | ||
|
||
# We're passing in this object as well as the CoreParameter object | ||
enso_param = EnsoDiagsParameter() | ||
#enso_param.start_yr = '2000' | ||
# enso_param.test_start_yr = '2000' | ||
# enso_param.ref_start_yr = '2000' | ||
enso_param.end_yr = '2004' | ||
|
||
runner.sets_to_run = ['enso_diags'] | ||
runner.run_diags([param, enso_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[#] | ||
sets = ["enso_diags"] | ||
case_id = "PRECT-response" | ||
variables = ["PRECT"] | ||
ref_name = "GPCP_v2.3" | ||
reference_name = "GPCP_v2.3" | ||
regions = ["20S20N"] | ||
seasons = ["ANN"] | ||
reference_colormap = "diverging_bwr.rgb" | ||
test_colormap = "diverging_bwr.rgb" | ||
diff_colormap = "BrBG" | ||
contour_levels = [-5,-3,-2,-1,-0.5,-0.2,0.2,0.5,1,2,3,5] | ||
diff_levels = [-5,-3,-2,-1,-0.5,-0.2,0.2,0.5,1,2,3,5] |
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