mesmer.create_emulations.gather_gt_data#
- mesmer.create_emulations.gather_gt_data(params_gt, preds_gt, cfg, concat_h_f=False, save_emus=True)#
Create global trend (emissions + volcanoes) emulations for specified ensemble type and method.
- Parameters:
params_gt (dict) – Parameters dictionary
[“targ”] (emulated variable, str)
[“esm”] (Earth System Model, str)
[“method”] (applied method, str)
[“preds”] (predictors, list of strs)
[“scenarios”] (scenarios which are used for training, list of strs)
[“time”] (1d array of years, np.ndarray)
[xx] (additional keys depend on employed method and are listed in train_gt_T_method() function)
preds_gt (dict) – nested dictionary of predictors for global trend with keys
[pred][scen] (1d/2d arrays (time)/(run, time) of predictor for specific scenario)
cfg (module) – config file containing metadata
concat_h_f (bool, optional) – determines if historical and future time period is concatenated into a single emulation or not, default = False (must be set to false if no historical data provided)
save_emus (bool, optional) – determines if emulation is saved or not, default = True
- Returns:
emus_gt (dict) – global trend emulations dictionary with keys
[scen] (1d array of global trend emulation time series)
Notes
- Assumptions:
if no preds_gt needed, pass time as predictor instead to know which scenarios to emulate