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

param = CoreParameter()

param.reference_data_path = '/global/project/projectdirs/acme/acme_diags/obs_for_e3sm_diags/time-series/'
#param.reference_data_path = '/global/homes/c/chengzhu/acme_diags_parameters/acme_diags/'
param.test_data_path = '/global/project/projectdirs/acme/acme_diags/test_model_data_for_acme_diags/time-series/CESM1-CAM5_cmip/'
#param.test_name = '20161118.beta0.FC5COSP.ne30_ne30.edison'
#You have to set test name in python file in order to print it out in viewer in case of 'time series' run
param.test_name = 'CESM1-CAM5_cmip'
param.seasons = ["ANN"]
param.multiprocessing = False
param.test_timeseries_input = True
param.test_start_yr = '2004'
param.test_end_yr = '2004'
param.ref_timeseries_input = True
param.ref_start_yr = '2004'
param.ref_end_yr = '2004'

#param.num_workers =  16
prefix = '/global/project/projectdirs/acme/www/zhang40/arm_diags'
param.results_dir = os.path.join(prefix, 'initial_test')

# We're passing in this new object as well, in
# addtion to the CoreParameter object.

runner.sets_to_run = ['arm_diags_annual_cycle']
#runner.sets_to_run = ['area_mean_time_series']
runner.run_diags([param])

