import os
from e3sm_diags.parameter.core_parameter import CoreParameter
from e3sm_diags.run import runner

param = CoreParameter()

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/test_model_data_for_acme_diags/climatology/diurnal_cycle_climatology/'
#param.test_name = '20180215.DECKv1b_H1.ne30_oEC.edison.cam.h4'
param.test_data_path = '/global/cscratch1/sd/tao4/E3SM_Diags/test_model_data_for_acme_diags/climatology/diurnal_cycle_climatology/'
param.test_name = 'CMCGEM_exp2a_pr_org_grid_1x1'
#param.test_name = 'ECMWF_exp2a_pr_org_grid_1x1'
param.seasons = ["ANN","JJA"]   #all seasons ["ANN","DJF", "MAM", "JJA", "SON"] will run,if comment out"

prefix = '/global/cfs/cdirs/e3sm/www/tao4/doc_examples/'
param.results_dir = os.path.join(prefix, 'diurnal_cycle')
# Use the following if running in parallel:
#param.multiprocessing = True
#param.num_workers = 32

# Use below to run all core sets of diags:
#runner.sets_to_run = ['lat_lon','zonal_mean_xy', 'zonal_mean_2d', 'polar', 'cosp_histogram', 'meridional_mean_2d']
# Use below to run lat_lon map only:
runner.sets_to_run = ['diurnal_cycle']
runner.run_diags([param])

