Exemplo n.º 1
0
machine_path_prefix = '/compyfs/e3sm_diags_data/'
#For cori
#machine_path_prefix = '/global/project/projectdirs/acme/acme_diags'

param.reference_data_path = os.path.join(machine_path_prefix,
                                         'obs_for_e3sm_diags/time-series/')
param.test_data_path = os.path.join(
    machine_path_prefix, 'test_model_data_for_acme_diags/time-series/E3SM_v1/')

param.test_name = 'e3sm_v1'
#param.seasons = ["ANN"]  #seasons shouldn't be a parameter for area_mean_time_series, need to investigate while uncomment this line won't work
param.test_timeseries_input = True
param.test_start_yr = '2002'
param.test_end_yr = '2008'
param.ref_timeseries_input = True
param.ref_start_yr = '1002'
param.ref_end_yr = '2008'
prefix = '/compyfs/www/zhan429/run_with_api/'
param.results_dir = os.path.join(prefix, 'area_mean_bad_ref_year')
print(param.results_dir)
attrs_core = vars(param)
print(', '.join("%s: %s" % item for item in attrs_core.items()))

print('-------------------------------')

#ts_param = AreaMeanTimeSeriesParameter()
#ts_param.ref_names = ['']
#attrs = vars(ts_param)
#print (', '.join("%s: %s" % item for item in attrs.items()))

#param.multiprocessing = True
Exemplo n.º 2
0
# Location of the data.
param.test_data_path = "/global/cfs/cdirs/e3sm/acme_diags/test_model_data_for_acme_diags/time-series/CESM1-CAM5_cmip/"
param.reference_data_path = "/global/cfs/cdirs/e3sm/acme_diags/test_model_data_for_acme_diags/time-series/CESM1-CAM5_cmip"

# Set this parameter to True.
# By default, e3sm_diags expects the test data to be climo data.
param.test_timeseries_input = True
# Years to slice the test data, base this off the years in the filenames.
param.test_start_yr = "2001"
param.test_end_yr = "2003"

# Set this parameter to True.
# By default, e3sm_diags expects the ref data to be climo data.
param.ref_timeseries_input = True
# Years to slice the ref data, base this off the years in the filenames.
param.ref_start_yr = "1850"
param.ref_end_yr = "1852"

# When running with time-series data, you don't need to specify the name of the data.
# But you should, otherwise nothing is displayed when the test/ref name is needed.
param.short_test_name = "CESM1-CAM5-historical"
param.short_ref_name = "CESM1-CAM5-historical"

# 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"
# Name of the folder where the results are stored.
# Change `prefix` to use your directory.
prefix = "/global/cfs/cdirs/e3sm/www/<your directory>/examples"
param.results_dir = os.path.join(prefix, "ex2_modTS_vs_modTS_CMIP_3years")
Exemplo n.º 3
0
param.reference_data_path = (
    "/global/cfs/cdirs/e3sm/acme_diags/obs_for_e3sm_diags/time-series/"
)

# Set this parameter to True.
# By default, e3sm_diags expects the test data to be climo data.
param.test_timeseries_input = True
# Years to slice the test data, base this off the years in the filenames.
param.test_start_yr = "2003"
param.test_end_yr = "2004"

# Set this parameter to True.
# By default, e3sm_diags expects the ref data to be climo data.
param.ref_timeseries_input = True
# Years to slice the ref data, base this off the years in the filenames.
param.ref_start_yr = "2003"
param.ref_end_yr = "2004"

# When running with time-series data, you don't need to specify the name of the data.
# But you should, otherwise nothing is displayed when the test/ref name is needed.
param.short_test_name = "CESM1-CAM5-historical"
# param.short_ref_name = ''

# 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'
# Name of the folder where the results are stored.
# Change `prefix` to use your directory.
prefix = "/global/cfs/cdirs/e3sm/www/<your directory>/examples"
param.results_dir = os.path.join(prefix, "ex3_modTS_CMIP_vs_obs_2years")
#machine_path_prefix = '/global/project/projectdirs/acme/acme_diags'

param.reference_data_path = os.path.join(machine_path_prefix,
                                         'obs_for_e3sm_diags/time-series/')
param.test_data_path = os.path.join(
    machine_path_prefix, 'test_model_data_for_acme_diags/time-series/E3SM_v1/')

param.test_name = 'e3sm_v1'
#param.seasons = ["ANN"]  #seasons shouldn't be a parameter for area_mean_time_series, need to investigate while uncomment this line won't work
param.test_timeseries_input = True
param.test_start_yr = '2002'
param.test_end_yr = '2004'

# if the time range is invalid for reference datasets, only model results will be plotted
param.ref_timeseries_input = True
param.ref_start_yr = '2002'
param.ref_end_yr = '2004'
prefix = '/compyfs/www/zhan429/run_with_api/'
param.results_dir = os.path.join(prefix, 'area_mean')
attrs_core = vars(param)
#print (', '.join("%s: %s" % item for item in attrs_core.items()))

print('-------------------------------')

ts_param = AreaMeanTimeSeriesParameter()
ts_param.ref_names = ['none']

#param.multiprocessing = True
#param.num_workers =  40

# We're passing in this new object as well, in
Exemplo n.º 5
0
# Location of the data.
param.test_data_path = '/global/cfs/cdirs/e3sm/acme_diags/test_model_data_for_acme_diags/time-series/E3SM_v1'
param.reference_data_path = '/global/cfs/cdirs/e3sm/acme_diags/test_model_data_for_acme_diags/time-series/E3SM_v1'

# Set this parameter to True.
# By default, e3sm_diags expects the test data to be climo data.
param.test_timeseries_input = True
# Years to slice the test data, base this off the years in the filenames.
param.test_start_yr = '2011'
param.test_end_yr = '2013'

# Set this parameter to True.
# By default, e3sm_diags expects the ref data to be climo data.
param.ref_timeseries_input = True
# Years to slice the ref data, base this off the years in the filenames.
param.ref_start_yr = '1850'
param.ref_end_yr = '1852'

# When running with time-series data, you don't need to specify the name of the data.
# But you should, otherwise nothing is displayed when the test/ref name is needed.
param.short_test_name = 'historical_H1'
param.short_ref_name = 'historical_H1'

# 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'
# Name of the folder where the results are stored.
# Change `prefix` to use your directory.
#prefix = '/global/cfs/cdirs/e3sm/www/<your directory>/examples'
param.results_dir = os.path.join(prefix, 'ex1_modTS_vs_modTS_3years')
Exemplo n.º 6
0
param = CoreParameter()

param.reference_data_path = '/compyfs/e3sm_diags_data/obs_for_e3sm_diags/time-series/'
param.test_data_path = '/compyfs/e3sm_diags_data/test_model_data_for_acme_diags/time-series/E3SM_v1/'

param.test_name = 'e3sm_v1'
param.seasons = [
    "ANN"
]  #seasons shouldn't be a parameter for area_mean_time_series, need to investigate while uncomment this line won't work
#param.seasons = []  #seasons shouldn't be a parameter for area_mean_time_series, need to investigate while uncomment this line won't work
param.test_timeseries_input = True
param.test_start_yr = '1998'
param.test_end_yr = '2004'
param.ref_timeseries_input = True
param.ref_start_yr = '1998'
param.ref_end_yr = '2004'

param.multiprocessing = True
param.num_workers = 40
prefix = '/compyfs/www/zhan429/tests'
param.results_dir = os.path.join(prefix, 'multiple_sets_2ts')

# Set specific parameters for new sets
ts_param = AreaMeanTimeSeriesParameter()
ts_param.reference_data_path = '/compyfs/e3sm_diags_data/obs_for_e3sm_diags/time-series/'
ts_param.test_data_path = '/compyfs/e3sm_diags_data/test_model_data_for_acme_diags/time-series/E3SM_v1/'
ts_param.test_name = 'e3sm_v1'
#ts_param.ref_names = ['none']
ts_param.start_yr = '1998'
ts_param.end_yr = '2008'