|
| 1 | +import os |
| 2 | +from e3sm_diags.parameter.core_parameter import CoreParameter |
| 3 | +from e3sm_diags.parameter.tc_analysis_parameter import TCAnalysisParameter |
| 4 | +from e3sm_diags.run import Run, runner |
| 5 | + |
| 6 | +simulations = [ |
| 7 | + "tc-v1.HR.0026_0035", |
| 8 | + "tc-v2.LR.2000_2014", |
| 9 | + "tc-v3.HR.0006_0025", |
| 10 | + "tc-v3.LR.2000_2014", |
| 11 | +] |
| 12 | +sim_names = [ |
| 13 | + "theta.20180906.branch_noCNT.A_WCYCL1950S_CMIP6_HR.ne120_oRRS18v3_ICG", |
| 14 | + "v2.LR.historical_0101", |
| 15 | + "20240609.piCtl.ne120pg2_r025_RRSwISC6to18E3r5.chrysalis.test1", |
| 16 | + "extendedOutput.v3.LR.historical_0101", |
| 17 | +] |
| 18 | + |
| 19 | +data_path = "/global/homes/c/chengzhu/tests/tc_analysis/" |
| 20 | + |
| 21 | +for idx, sim in enumerate(simulations): |
| 22 | + print(sim) |
| 23 | + # runner = Run() |
| 24 | + |
| 25 | + param = CoreParameter() |
| 26 | + param.multiprocessing = True |
| 27 | + param.test_data_path = data_path + sim |
| 28 | + param.test_name = sim_names[idx] |
| 29 | + param.test_start_yr = sim.split(".")[-1][0:4] |
| 30 | + param.test_end_yr = sim.split(".")[-1][5:9] |
| 31 | + |
| 32 | + param.reference_data_path = ( |
| 33 | + "/global/cfs/cdirs/e3sm/diagnostics/observations/Atm/tc-analysis" |
| 34 | + ) |
| 35 | + param.ref_start_yr = "1979" |
| 36 | + param.ref_end_yr = "2018" |
| 37 | + |
| 38 | + prefix = "/global/cfs/cdirs/e3sm/www/vo13/tc_analysis_test/" |
| 39 | + param.results_dir = os.path.join(prefix, sim) |
| 40 | + runner.sets_to_run = ["tc_analysis"] |
| 41 | + runner.run_diags([param]) |
0 commit comments