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

param = CoreParameter()

# Location of the ref data.
param.reference_data_path = '/global/cscratch1/sd/mkwitte/shocmf_climo_fv129x256/'
# Name of the ref model data, used to find the climo files.
param.ref_name = 'scream_mkw.SHOC.001.ne30_ne30.cori-knl'
# An optional, shorter name to be used instead of the ref_name.
param.short_ref_name = 'Ref: SHOC+ZM'

# Location of the test data.
param.test_data_path = '/global/cscratch1/sd/mkwitte/shocmf_climo_fv129x256/'
# Name of the test model data, used to find the climo files.
param.test_name = 'scream_mkw.SHOCMF_dry.001.ne30_ne30.cori-knl'
# An optional, shorter name to be used instead of the test_name.
param.short_test_name = 'Test: SHOC+dryMF+ZM'

# What plotsets to run the diags on.
param.sets = ['zonal_mean_xy','lat_lon']
param.season = ["ANN"]
# Name of the folder where the results are stored.
# Change `prefix` to use your directory.
prefix = '/global/cfs/cdirs/e3sm/www/mkwitte/shocmf_test3/'
param.results_dir = os.path.join(prefix, 'yr1')
# This parameter modifies the software to accommodate model vs model runs.
# The default setting for run_type is 'model_vs_obs'.
param.run_type = 'model_vs_model'

# Below are more optional arguments.

# 'mpl' is to create matplotlib plots, 'vcs' is for vcs plots.
param.backend = 'mpl'
# Title of the difference plots.
param.diff_title = 'Test Model - Ref Model'
# For running with multiprocessing.
#multiprocessing = True
#num_workers = 32

runner.sets_to_run = ['zonal_mean_xy','lat_lon']
runner.run_diags([param])
